Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
nymphony said:Linuxgeek, do you have php lore?
linuxgeek said:only know a little PHP at this point, and that is primarly because I do good bit of PERL. It is a lang I've been intending to pickup but just haven't gotten the motivation yet (i.e. haven't found a project that held my attention enough to make me sit down with the handfull of books I've picked up and monkey out some code).
linuxgeek said:only know a little PHP at this point, and that is primarly because I do good bit of PERL. It is a lang I've been intending to pickup but just haven't gotten the motivation yet (i.e. haven't found a project that held my attention enough to make me sit down with the handfull of books I've picked up and monkey out some code).
Joaquin1975 said:If you know PERL, PHP should not be difficult at all. The only thing is, PHP pretends to be OO when it is not really there yet.
Hardly anyone has any idea what the fuck you are talking about!linuxgeek said:I've had to do some PHP code mods for work. Wasn't much trouble. I have things I think would be neat to do in PHP. But it mainly the aspect of maintaining the motivation to get started. I'm hoping a project will come up at work I can throw PHP at. Since the job is still primarily sysadm stuff, the heaviest coding I've done so far was making up a set of PERL scripts to hook into LOGDOG so when people started throwing invalid users at SSH on our two internet facing systems, It would automatically add the IP or Class C to out blacklist and update the firewalls to drop their packets. Sadly it had been a while since I had needed to do a script more than a few lines, so it actually took me a few days to pound it out.
nymphony said:Well you may very well know the answer to this. I want to know how a message board trick was done. I assumed it was php-related but it might not be.
Someone bumped a whole bunch of threads without ever posting in them. I saw their name in the GB front page thread list as the last poster. I clicked their name, but did not get their profile, I got the profile of the actual last poster(s) in the bumped threads, many months ago. I then looked inside several threads. None of them had posts at the end by the person who bumped the threads. And the bumped threads went away very quickly--they didn't stay on the front page more than a few minutes, unless someone else who saw them posted to them.
linuxgeek said:I've had to do some PHP code mods for work. Wasn't much trouble. I have things I think would be neat to do in PHP. But it mainly the aspect of maintaining the motivation to get started. I'm hoping a project will come up at work I can throw PHP at. Since the job is still primarily sysadm stuff, the heaviest coding I've done so far was making up a set of PERL scripts to hook into LOGDOG so when people started throwing invalid users at SSH on our two internet facing systems, It would automatically add the IP or Class C to out blacklist and update the firewalls to drop their packets. Sadly it had been a while since I had needed to do a script more than a few lines, so it actually took me a few days to pound it out.
nymphony said:Well you may very well know the answer to this. I want to know how a message board trick was done. I assumed it was php-related but it might not be.
Someone bumped a whole bunch of threads without ever posting in them. I saw their name in the GB front page thread list as the last poster. I clicked their name, but did not get their profile, I got the profile of the actual last poster(s) in the bumped threads, many months ago. I then looked inside several threads. None of them had posts at the end by the person who bumped the threads. And the bumped threads went away very quickly--they didn't stay on the front page more than a few minutes, unless someone else who saw them posted to them.
Joaquin1975 said:There must of been a shitload of regex.
linuxgeek said:Sounds like one of the site owners were online and was killing off the offending poster's posts. I haven't had an opprotunity to play in the guts of vBulletin, so not sure how it's mechanics work. Have noticed the version they started using last spring seems to do its database indexing in intervals instead of near realtime like the previous. May have caused a delay from when the offending post was killed until the SQL query was done to display the threads reflected the change in thread ordering.
linuxgeek said:actually, not too bad. Since I was letting logdog do the hard work of identifying when an invalid user login attempt was made, the only regex I was having to do in any of my progs was to extract the IP address from the line to pass to the program on the internet facing systems to add to their blacklists.
fluffPE said:Hardly anyone has any idea what the fuck you are talking about!
linuxgeek said:as long as the person I was responding to does, there isn't a problem with that.
nymphony said:Yeah, that makes sense. But from what I understand, the Lit site owners almost never interfere with the unmoderated general board posting? I've seen a few bad cases of bumpage here before that never were policed. Why would they suddenly start unbumping someone's bumpage?
I know. Just giving you shit.linuxgeek said:as long as the person I was responding to does, there isn't a problem with that.
Joaquin1975 said:Now did you have a whitelist and make some kind of control structure to reject everything else?
linuxgeek said:I think it has to do with whether they are around and the quantity of bumpage being done. When we has a handful (or may have been a single with lots of alts) of brats here before Katrina hit, they liked bumping old threads of a person so to flood the first screen or two hoping people would add the person;s threads being bumped to their iggy lists. I don't remember how long after that time period I noticed they had updated the board's rule list making flooding a fourm by bumping old threads an offense.
However, like most of the rules, they don't really hold a lot of meaning on the GB since the owners are basically the only ones with any authority to enforce them on the GB and since the forums are not their primary focus any more, they aren't around much be involved in enforcement.
Joaquin1975 said:I am not familiar with PERL itself, but the control structures and other things resemble PHP/C a lot...
Actually, that kind of program would be really useful. Is it closed or open source?
linuxgeek said:The two internet facing servers are for mail & our access to the internet. The mechanism I found when I started was they just blacklisted trouble makers. So far, haven't had any reason to alter the mechanism being used.
Since the internet facing boxes only have the proceses which are needed with ports open, we just black listed the offenders for those specific ports. They are generally interested in ssh since they think we will actually leave root so it can be sshed into or we'll have some other common userid name as one they can try and dictionarycrack into. Hell, mostly blacklist them to keep our email traffic lower since logdog is setup to email us each time a bad login attempt happens.
linuxgeek said:which one .. logdog or the one I wrote up?
nymphony said:Ah, Ok. That all makes a lot of sense. Well, except for one thing. How did all the brats get to be located in Katrina's path?![]()
Joaquin1975 said:The one you wrote up for logdog. However, it sounds like it was very specific for your own needs, so never mind, heh.
linuxgeek said:I don't see any reason the code couldn't be given out. Hell, with the openvpns I put in place, the code doesn't even have any non-private addreses in it. The way I set it up, it should be useable with any setup using the linux kernel firewall to block unwanted incoming traffic. Its just still beta/RC quality as far as I'm concerned. I'm fairly sure there are bugs I haven't spotted yet.