Skip to content

Instantly share code, notes, and snippets.

<?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
@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
<!DOCTYPE html>
<!--
_ _____ _
\`,"" ,'7"r-..__/ \
,'\ `, ,',',' _/ \
/ \ 7 / / ( \ |
groups:
default:
default: true
permissions:
- modifyworld.*
- lwc.protect
- worldguard.region.list.own
- worldguard.region.info.*
- worldguard.region.select.own.*
@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! */
@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
<?php
foreach ($array as $item):
?>
<li>Item: <?=$item;?></li>
<?php
endforeach;
?>
mysql> show profile;
+--------------------------------+----------+
| Status | Duration |
+--------------------------------+----------+
| starting | 0.000014 |
| Waiting for query cache lock | 0.000002 |
| checking query cache for query | 0.000068 |
| checking permissions | 0.000002 |
| checking permissions | 0.000001 |
| checking permissions | 0.000001 |
@Cameron-D
Cameron-D / generated_query.sql
Created June 6, 2013 02:55
This is the query that MySQL generates when querying against the view.
select `p`.`nid` AS `nid`,`h`.`hid` AS `hid`,`h`.`name` AS `hookname`,`h`.`type` AS `type`,`p`.`dateline` AS `dateline`,`bau_forum`.`u`.`uid` AS `uid`,`bau_forum`.`u`.`username` AS `username`,`bau_forum`.`u`.`usergroup` AS `usergroup`,`bau_forum`.`u`.`displaygroup` AS `displaygroup`,`bau_forum`.`u`.`avatar` AS `avatar`,`post`.`fid` AS `fid`,`post`.`tid` AS `tid`,`t`.`subject` AS `thread_subject`,`post`.`pid` AS `post_id`,`post`.`subject` AS `post_subject` from `bau_forum`.`mybb_proactivity_log` `p` join `bau_forum`.`mybb_proactivity_hooks` `h` join `bau_forum`.`mybb_users` `u` join `bau_forum`.`mybb_posts` `post` join `bau_forum`.`mybb_threads` `t` left join `bau_forum`.`mybb_proactivity_hidden` `hide` on(((`bau_forum`.`hide`.`hid` = `h`.`hid`) and (`bau_forum`.`hide`.`uid` = '297'))) left join `bau_forum`.`mybb_proactivity_hide_threads` `hide_thread` on(((`bau_forum`.`hide_thread`.`tid` = `post`.`tid`) and (`bau_forum`.`hide_thread`.`uid` = '297'))) left join `bau_forum`.`mybb_proactivity_hide_forums` `hide_
@Cameron-D
Cameron-D / xanga.sh
Last active December 18, 2015 16:29
Script for running xanga-grab on an instantserver.io instance.
#!/bin/bash
sudo apt-get update
sudo apt-get install -y build-essential lua5.1 liblua5.1-0-dev python python-setuptools python-dev git-core openssl libssl-dev python-pip rsync gcc make git tmux htop
pip install --user seesaw
git clone https://github.com/ArchiveTeam/xanga-grab.git
cd xanga-grab
./get-wget-lua.sh
# Start downloading with: