Skip to content

Instantly share code, notes, and snippets.

<?php
foreach ($array as $item):
?>
<li>Item: <?=$item;?></li>
<?php
endforeach;
?>
@Cameron-D
Cameron-D / checkblock.sh
Last active December 16, 2015 16:59
Makes my modem fetch a new IP when I'm blocked from Posterous. Install `sl` for burning trains. Choo choo.
#!/bin/bash
while :
do
curl -o /dev/null --url http://posterous.com/ >/dev/null 2>&1
rc=$?
T="$(date +%H:%M:%S)"
if [[ $rc != 0 ]] ; then
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("broniesaustralia.com.au") {
/* Only affects admin panel */
#template {
font-family: monospace !important;
font-size: 13px !important;
}
/* MUFFINS! */
groups:
default:
default: true
permissions:
- modifyworld.*
- lwc.protect
- worldguard.region.list.own
- worldguard.region.info.*
- worldguard.region.select.own.*
<!DOCTYPE html>
<!--
_ _____ _
\`,"" ,'7"r-..__/ \
,'\ `, ,',',' _/ \
/ \ 7 / / ( \ |
@Cameron-D
Cameron-D / gist:5149811
Last active December 14, 2015 21:18
Really long Posterous usernames
$ grep '.\{140\}' posterous-hostname-list.txt
abilify-without-a-prescription-online-with-overnight-delivery---prescription-abilify-cod---buy-generic-abilify-without-prescription-4.posterous.com
abilify-without-prescription-overnight-shipping---order-abilify-no-visa-without-rx---buy-abilify-online-without-prescription-9.posterous.com
abilify-without-rx-medications---purchase-abilify-without-prescription-to-ship-overnight---generic-abilify-without-prescription-2.posterous.com
asdjfh9pu823498uoahsdfiouh289734yrt9h2i34uthfkjhsdivfh9784368901-9584yuuthoi1uh42kjrthoiaugsefo8723y8975602873t650uy1g23o4iuthiujhaskjdfh93847096213409785y0918y4iouhkjahsd.posterous.com
blognosebannedatnmkbvetubannedfrgoszawyxbanneduhvlpvcliybannedvtikodjdrcbannedkbngeudavzbannedrymeiwfczebannedddifbjhgbr-bannedqjuwikehnb.posterous.com
cheap-abilify-next-day-delivery---order-abilify-without-prescription-from-us-pharmacy---buy-abilify-online-without-prescription-5.posterous.com
clubbing-did-girl-girl-girl-i-in-licking-life-little-little-lit
<?php
$hooks = array(
//Members
'member_do_register_end' => array('type' => 'user', 'get' => 'signup', 'isallowed' => '', 'friendlyname' => 'New member registration'),
'member_activate_accountactivated' => array('type' => '', 'isallowed' => '', 'friendlyname' => 'New member activated'),
'member_do_login_end' => array('type' => 'login', 'get' => 'last', 'isallowed' => '', 'friendlyname' => 'User logged in'), //TODO: Is user hidden?
'member_logout_end' => array('type' => '', 'isallowed' => '', 'friendlyname' => 'User logged out'), //TODO: Is user hidden?
//Reputation
bouncer@fluttershy:~$ dig ns ponyconau.com
; <<>> DiG 9.7.3 <<>> ns ponyconau.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11812
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;ponyconau.com. IN NS
luna = {}
luna.hair_fill = "#1f46c6"
luna.hair_stroke = "#5e46c1"
luna.hair_outer = "#ada1df"
luna.body_fill = "#1d376f"
luna.body_stroke = "#051d42"
luna.cutie_mark = "#141414"
luna.cutie_mark2 = "#ffffff"
luna.armor = "#5d6ecd"
luna.crown = "#5d6ecd"