Allows you to send sms-es with custom source number from android using Tasker application and this script.
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 random | |
from multiprocessing import Pool,TimeoutError | |
from time import sleep | |
servers=["s1","s2","s3","s4","s5","s6","s7","s8","s9","s10","s11","s12","s13","s14","s15","s16","s17","s18","s19","s20","s21","s22","s23","s24","s25","s26","s27","s28","s29","s30"] | |
blah = "no callback" | |
def f(x): | |
print("start f(" + x + ")") |
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
# initialization file (not found) |
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
# -*- coding: utf-8 -*- | |
import sys | |
import time | |
import string | |
import socket | |
import requests | |
import urllib3 | |
from urllib3 import HTTPConnectionPool |
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
class overridable_property(property): | |
""" | |
Property where you can override return value by setting _name | |
>>> class test(object): | |
... @overridable_property | |
... def test(self): | |
... return "abcd" | |
... | |
>>> a = test() |
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
/* This file defines the builds that constitute the Nixpkgs. | |
Everything defined here ends up in the Nixpkgs channel. Individual | |
jobs can be tested by running: | |
$ nix-build pkgs/top-level/release.nix -A <jobname>.<system> | |
e.g. | |
$ nix-build pkgs/top-level/release.nix -A coreutils.x86_64-linux | |
*/ |
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
// npm install hapijs/joi#issue-577 | |
'use strict'; | |
var Joi = require('joi'); | |
class TypableObject extends Object { | |
constructor(value, type) { | |
super(value); | |
Object.defineProperty(this, '_type', {value: type}); |
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
'use strict'; | |
const amqp = require('amqplib-easy')('amqp://localhost'); | |
const exchangeOptions = { | |
exchange: 'amq.headers', | |
exchangeType: 'headers' | |
}; | |
// takes a default connection for handling errors |
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 ./default.nix # The root nixpkgs default.nix | |
{ | |
crossSystem = { | |
# That's the triplet they use in the mingw-w64 docs, | |
# and it's relevant for nixpkgs conditions. | |
config = "x86_64-w64-mingw32"; | |
arch = "x86"; # Irrelevant | |
libc = "msvcrt"; # This distinguishes the mingw (non posix) toolchain | |
platform = {}; | |
openssl.system = "mingw64"; |