Skip to content

Instantly share code, notes, and snippets.

@dmnobunaga
dmnobunaga / example.py
Last active January 4, 2016 02:09
Example of usage ByteHand.com service
# -*- coding: utf-8 -*-
# License CC BY
__author__ = '[email protected]'
import requests
url = "http://bytehand.com:3800/send"
bytehandId = 0000
bytehandKey = "XXXXXXXXXXXXXXXX"
bytehandFrom = "SMS-Info"
@dmnobunaga
dmnobunaga / test.py
Created September 30, 2015 16:44
Test fabric
from fabric.api import *
env.user = 'root'
env.password = 'password'
env.hosts = ['8.8.8.8']
@task
def test_ls():
sudo('ls -a')
Here query
EXPLAIN (ANALYZE, BUFFERS) SELECT
date_trunc('day', install_time) AS d,
COUNT (*) AS agg
FROM
application_events
WHERE
application_id = 9
AND event_type = 'install'
First run
EXPLAIN (ANALYZE, BUFFERS) SELECT
date_trunc('day', install_time) AS d,
COUNT (*) AS agg
FROM
application_events
WHERE
application_id = 9
@dmnobunaga
dmnobunaga / nginx.conf
Created November 27, 2015 14:21
Test config
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
@dmnobunaga
dmnobunaga / diriger.html
Created October 5, 2016 12:59
diriger.html
<html>
<head>
<script>
var _0x5079=["\x75\x6E\x64\x65\x66\x69\x6E\x65\x64","\x65\x78\x70\x6F\x72\x74\x73","\x66\x75\x6E\x63\x74\x69\x6F\x6E","\x61\x6D\x64","\x4D\x6F\x62\x69\x6C\x65\x44\x65\x74\x65\x63\x74","\x75\x6E\x6B\x6E\x6F\x77\x6E\x20\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x6C\x65\x6E\x67\x74\x68","\x63\x61\x6C\x6C","\x69","\x75\x61","","\x5F\x63\x61\x63\x68\x65","\x6D\x61\x78\x50\x68\x6F\x6E\x65\x57\x69\x64\x74\x68","\x6D\x6F\x62\x69\x6C\x65\x44\x65\x74\x65\x63\x74\x52\x75\x6C\x65\x73","\x5C\x62\x69\x50\x68\x6F\x6E\x65\x5C\x62\x7C\x5C\x62\x69\x50\x6F\x64\x5C\x62","\x42\x6C\x61\x63\x6B\x42\x65\x72\x72\x79\x7C\x5C\x62\x42\x42\x31\x30\x5C\x62\x7C\x72\x69\x6D\x5B\x30\x2D\x39\x5D\x2B","\x48\x54\x43\x7C\x48\x54\x43\x2E\x2A\x28\x53\x65\x6E\x73\x61\x74\x69\x6F\x6E\x7C\x45\x76\x6F\x7C\x56\x69\x73\x69\x6F\x6E\x7C\x45\x78\x70\x6C\x6F\x72\x65\x72\x7C\x36\x38\x30\x30\x7C\x38\x31\x30\x30\x7C\x38\x39\x30\x30\x7C\x41\x37\
@dmnobunaga
dmnobunaga / diriger.html
Created October 5, 2016 12:59
diriger.html
<html>
<head>
<script>
var _0x5079=["\x75\x6E\x64\x65\x66\x69\x6E\x65\x64","\x65\x78\x70\x6F\x72\x74\x73","\x66\x75\x6E\x63\x74\x69\x6F\x6E","\x61\x6D\x64","\x4D\x6F\x62\x69\x6C\x65\x44\x65\x74\x65\x63\x74","\x75\x6E\x6B\x6E\x6F\x77\x6E\x20\x65\x6E\x76\x69\x72\x6F\x6E\x6D\x65\x6E\x74","\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x74\x6F\x4C\x6F\x77\x65\x72\x43\x61\x73\x65","\x6C\x65\x6E\x67\x74\x68","\x63\x61\x6C\x6C","\x69","\x75\x61","","\x5F\x63\x61\x63\x68\x65","\x6D\x61\x78\x50\x68\x6F\x6E\x65\x57\x69\x64\x74\x68","\x6D\x6F\x62\x69\x6C\x65\x44\x65\x74\x65\x63\x74\x52\x75\x6C\x65\x73","\x5C\x62\x69\x50\x68\x6F\x6E\x65\x5C\x62\x7C\x5C\x62\x69\x50\x6F\x64\x5C\x62","\x42\x6C\x61\x63\x6B\x42\x65\x72\x72\x79\x7C\x5C\x62\x42\x42\x31\x30\x5C\x62\x7C\x72\x69\x6D\x5B\x30\x2D\x39\x5D\x2B","\x48\x54\x43\x7C\x48\x54\x43\x2E\x2A\x28\x53\x65\x6E\x73\x61\x74\x69\x6F\x6E\x7C\x45\x76\x6F\x7C\x56\x69\x73\x69\x6F\x6E\x7C\x45\x78\x70\x6C\x6F\x72\x65\x72\x7C\x36\x38\x30\x30\x7C\x38\x31\x30\x30\x7C\x38\x39\x30\x30\x7C\x41\x37\