User Controls

  1. 1
  2. 2
  3. 3

Thanked Posts by Merlin

  1. Merlin Houston
    Here is a shitty script I wrote to help automate my backup process. It's meant to be used in conjunction with rsync. Say you have a folder backup it will make a copy of it called backup_MM_YY for versioning. If it sees that there is no version for the current month one will be created. You specify how many versions and it will trim the old ones.

    I did not realize bash functions couldn't handle named parameters and I can't bring myself to care enough to make the pieces more portable.

    sortByTimeStampAndPurge () {
    dir="/home/macfag/" # dir to work in
    folder="gaypr0n" # file / folder base name to work with: baseName_mm_yy
    curMonth=$(date +"%m")
    curYear=$(date +"%y")
    versions=3 # how many revisions to keep
    lastMonth=""
    lastYear=""

    cd $dir

    # firsts make array of folder names
    i=0
    files[0]=""
    for f in ${folder}_*
    do
    files[i]=$f
    ((i++))
    done
    # sort them by actual timestamp
    for (( i = (${#files[@]}-1); i >= 0; i-- )); do
    for (( j = 1; j <= $i; j++ )); do
    if [ $(stat -c %Y ${files[$j-1]}) -gt $(stat -c %Y ${files[$j]}) ]
    then
    tmp=${files[$j-1]}
    files[$j-1]=${files[$j]}
    files[$j]=$tmp
    fi
    done
    done

    # check there is an old copy
    if [ ${files[${#files[@]}-1]} != "${folder}_*" ]
    then
    # if the last copy is labelled more than a month old: copy it
    lastMonth=${files[${#files[@]}-1]:${#folder}+1:2}
    lastYear=${files[${#files[@]}-1]:${#folder}+4:2}
    if [ $curYear -gt $lastYear ]
    then
    cp -r $folder ${folder}_${curMonth}_${curYear}
    files[${#files}]=${folder}_${curMonth}_${curYear}
    elif [ $curMonth -gt $lastMonth ] && [ $curYear -eq $lastYear ]
    then
    cp -r $folder ${folder}_${curMonth}_${curYear}
    files[${#files}]=${folder}_${curMonth}_${curYear}
    fi
    else
    # there only exists the main backup, no versioning yet, create one
    cp -r $folder ${folder}_${curMonth}_${curYear}
    files[${#files}]=${folder}_${curMonth}_${curYear}
    fi

    # trim extra files that might exist
    for (( i = ${#files[@]}-1; i >=0; i--)); do
    if [ $versions -le 0 ]
    then
    rm -r ${files[$i]}
    fi
    ((versions--))
    done
    }

    sortByTimeStampAndPurge

    The following users say it would be alright if the author of this post didn't die in a fire!
  2. Merlin Houston
    You're making a big mistake man, major in "Hot Dog Slingin'". People have ACs nobody has Bill Krozby dogs, knaw'm sayin?
    The following users say it would be alright if the author of this post didn't die in a fire!
  3. Merlin Houston
    Originally posted by Lanny What the hell are you people even going to sell that isn't drugs anyway?

    Bonsai fertilizer
    The following users say it would be alright if the author of this post didn't die in a fire!
  4. Merlin Houston
    bullet proof coffee
    Coffee and butter? This is a thing to promote weight loss? Tha fuck why not just drink black coffee. That's Homer Simpson tier.
    The following users say it would be alright if the author of this post didn't die in a fire!
  5. Merlin Houston
    When I was a kid I didn't value being in shape then you lose it and realize that doing 50 pushups is hard. Anyway I don't really respect anyone that isn't capable of throwing around their own body weight. Also sitting all day is terrible for you, worse than smoking, so bad that no amount of exercise can compensate for sitting throughout an 8 hour work day (which is almost always more than 8 hours and accompanied by more sitting at home). If you do sit all day you should fidget as much as possible.
    The following users say it would be alright if the author of this post didn't die in a fire!
  6. Merlin Houston
    Originally posted by Malice What I mean by that is that if you do things that are so utterly idiotic, regardless of your qualities as a person, imo you are deserving if it leads to death, such as choosing to drive drunk. Casper is a fucking mess, he knows this.

    Judge not lest ye be judged faggot. You live because the state of California allows you to.
    The following users say it would be alright if the author of this post didn't die in a fire!
  7. Merlin Houston
    Originally posted by reject That's a good point, unless you're a native indian you ARE an immigrant to America. White people didn't just magically appear there, it's where we sent our rejects.

    I mean, before we found Australia

    Funny how we killed all the Natives. But oh I don't want to be a hypocrite, we're all just habitants of the planet earth, now let us go sing kumbaya and the camp fire, brother.
    The following users say it would be alright if the author of this post didn't die in a fire!
  8. Merlin Houston
    Originally posted by snab_snib Syrian refugees, no fucking way. they're even worse. you might have to report those to homeland security as well.

    'deserve' has nothing to fucking do with it. we will allow people in, only on the condition that we consider it to be in the interest of america and Americans.

    furthermore, there is absolutely nothing wrong with careful treatment to our demographic future. there is absolutely no contraindicating the fact that the whiter a nation is, the more prosperous a nation is. we are nation founded on essentially and fundamentally european values, and that is a heritage which we should continue, and be proud of. white humans are a very small global minority and it's important that our home is respected, and that we don't wind up genocided through immigration and demographic shift. there's nothing wrong with that!

    I'm being facetious. It's a way to short circuit the morons proposing we grant citizenship to illegal immigrants already in the country because of [insert reason].
    The following users say it would be alright if the author of this post didn't die in a fire!
  9. Merlin Houston
    Misread "when" as "why", wew. The holocaust starts on Christmas

    Deus Vult!
    The following users say it would be alright if the author of this post didn't die in a fire!
  10. Merlin Houston
    Re-reading your post, are you suggesting that Sprint is doing MITM proxy to those addresses? I don't think so, that would break HTTPS. Also If the address was unreachable and you were hitting a last hop somewhere in ISP land I think there would be some indication, you wouldn't be able to 'GET' anything. I suppose you could ping it to be certain and see what it responds with.

    It's CalDSL, not Sprint (unless they are somehow affiliated). And those addresses are going to be an assortment of their customers.

    192.0.10.213 for example is a "PowerBeam 5AC 400" which is Ubiquity brand and looks like a commercial router. Residential routers should have saner defaults that don't open themselves to the Internet, but you never know. Ubiquity and Windows server would suggest to me it's commercial space, probably what they have allocated for customer that bought a static IP.
    The following users say it would be alright if the author of this post didn't die in a fire!
  11. Merlin Houston
    192.0.0.0/16 (192.0.*.*) is public internet space, so it could be anyone, likely not Sprint. 192.168.0.0/16 is the private space (among others).

    Though sometimes ISPs will use private space the way you are thinking. Your uplink will route you to it as it just pushes the request through the default route and it just so happens there's a machine with that address between you and the Internet. Even though it's their LAN you are able to route to it, of course you could also use the same LAN space, just the default route wouldn't be hit and traffic wouldn't get routed out to the ISP side.

    I wouldn't expect that on the 192.168.0.0/16 space though, it would be on 10.0.0.0/8 or 172.whatever.

    Post last edited by Merlin at 2017-01-19T02:56:46.683799+00:00
    The following users say it would be alright if the author of this post didn't die in a fire!
  12. Merlin Houston
    As for what it's used for whois is always handy:


    $ whois 192.0.10.1
    ...
    NetRange: 192.0.8.0 - 192.0.15.255
    CIDR: 192.0.8.0/21
    NetName: ZINNIA
    NetHandle: NET-192-0-8-0-1
    Parent: NET192 (NET-192-0-0-0-0)
    NetType: Direct Allocation
    OriginAS: AS4323, AS6939
    Organization: CalDSL (ZINNI-1)
    RegDate: 2012-11-05
    Updated: 2015-04-05
    Comment: Zinnia Networks Inc dba CalDSL
    Ref: https://whois.arin.net/rest/net/NET-192-0-8-0-1


    OrgName: CalDSL
    OrgId: ZINNI-1
    Address: 1660 W Linne Road, Suite H
    City: Tracy
    StateProv: CA
    PostalCode: 95377
    Country: US
    RegDate: 2004-08-02
    Updated: 2012-11-30
    Ref: https://whois.arin.net/rest/org/ZINNI-1
    The following users say it would be alright if the author of this post didn't die in a fire!
  13. Merlin Houston
    What's the saying again... around juden you losen.

    Of course they do, not only do they do so, but they are completely open about it.

    http://arstechnica.com/business/2013/12/facebook-collects-conducts-research-on-status-updates-you-never-post/
    http://www.slate.com/articles/technology/future_tense/2013/12/facebook_self_censorship_what_happens_to_the_posts_you_don_t_publish.html

    Adam Kramer, a data scientist at Facebook, and Sauvik Das, a summer Facebook intern, tracked two things for the study: the HTML form element where users enter original status updates or upload content and the comment box that allows them to add to the discussion of things other people have posted. A “self-censored” update counted as an entry into either of those boxes of more than five characters that was typed out but not submitted for at least the next 10 minutes.

    It's also cheaper to store data forever than it is to determine what data should be deleted and what data should be kept.
    The following users say it would be alright if the author of this post didn't die in a fire!
  14. Merlin Houston
    From the age of 2 years old my dad made work sun up to sun down harvesting fish oil
    The following users say it would be alright if the author of this post didn't die in a fire!
  15. Merlin Houston
    I use OpenShot, if all you want to do is string a few clips together I don't see any point bothering with cracked software. Nothing morally against it I'd just rather type one command and have it installed.
    The following users say it would be alright if the author of this post didn't die in a fire!
  16. Merlin Houston
    Delete C:\System32 it's were the NSA hides malware on your computer.
    The following users say it would be alright if the author of this post didn't die in a fire!
  17. Merlin Houston
    The syntax is correct. Note that the command only updates the path in the current context. What I bet is happening is that when you run the bot python opens in a new shell which will not have your local modification to PATH.

    Open either .bash_profile or .bashrc and either add the "export PATH=..." line or such a line should already exist so you can append ":/home/Sophie/geckodriver" as well.

    Oh it could also be that you are trying to point the path to a file, I've only ever added directories to PATH. If "/home/Sophie/geckodriver" is a file try placing it in a directory and direct the path to the dir instead of the file.

    Also keep in mind that PATH won't search recursively.
    The following users say it would be alright if the author of this post didn't die in a fire!
  18. Merlin Houston
    It's over heating if the fans are going crazy. You'll have to take it apart to clean it. Cat hair, smoke, dust, and syncan plastic have no doubt formed a rock solid clump where the fans are.

    Guessing it's a laptop?
    The following users say it would be alright if the author of this post didn't die in a fire!
  19. Merlin Houston
    Originally posted by Open Your Mind What do you mean?

    Gibs
    The following users say it would be alright if the author of this post didn't die in a fire!
  20. Merlin Houston
    Well the lord helps those who help themselves.
    The following users say it would be alright if the author of this post didn't die in a fire!
  1. 1
  2. 2
  3. 3
Jump to Top