Allows you to send sms-es with custom source number from android using Tasker application and this script.
This file contains hidden or 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
#!/bin/sh | |
WORDPRESS_ROOT=/usr/share/ | |
WORDPRESS_NAME=$1 | |
PASSWORD=$2 | |
DOMAIN=$3 | |
if [ $# -ne 3 ] | |
then | |
echo "Syntax: `basename $0` wordpress_name password domain" | |
exit |
This file contains hidden or 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
#!/bin/sh | |
if [ $# -ne 1 ] | |
then | |
echo "Syntax: `basename $0` [email protected]" | |
exit | |
fi | |
IP=$1 | |
cmd="ssh $IP -f -n /bin/ping -i 20 localhost" |
This file contains hidden or 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
#!/bin/bash | |
################################################## | |
# Get application's window ID | |
# Input: | |
# $1: application's process ID | |
# Output: | |
# $1: application's window ID | |
# Return value: | |
# success: 0 | |
# failed: 1 |
This file contains hidden or 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/python | |
import re | |
import sys | |
import urllib | |
import urllib2 | |
command=" ".join(sys.argv[1:]) | |
srv="http://IP:8082/script" | |
script="def command = \"\"\""+command+"\"\"\"\ndef proc = command.execute()\nproc.waitFor()\nprintln \"stdout: ${proc.in.text}\"" | |
data= urllib.urlencode({'script': script, 'json':'{"script": "' + script + '", "": "'+script+'"}', 'Submit': 'Run'}) |
This file contains hidden or 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
#define _LARGEFILE64_SOURCE | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <errno.h> | |
#include <time.h> | |
#include <signal.h> | |
#include <sys/fcntl.h> | |
#include <sys/ioctl.h> |
This file contains hidden or 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 hidden or 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 os | |
import sys | |
import Image, ImageSequence | |
import numpy as np | |
from images2gif import writeGif | |
filename = sys.argv[1] | |
im = Image.open(filename) | |
original_duration = im.info['duration'] |
This file contains hidden or 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
LD_LIBRARY_PATH=../lib64/ ./glc-capture --start -v 3 --disable-audio --uncompressed=1M -z none -o /dev/stdout -l /dev/stderr etracer | LD_LIBRARY_PATH=../lib64/ ./glc-play /dev/stdin -t -v 3 -y 1 --uncompressed=1M -o /dev/stdout | ffmpeg -i /dev/stdin -f yuv4mpegpipe -pix_fmt yuv420p -vcodec libx264 -vprofile baseline -preset ultrafast -tune zerolatency -x264opts "intra-refresh:vbv-maxrate=5000:vbv-bufsize=200:slice-max-size=1500:sliced-threads" -threads auto -f yuv4mpegpipe -o /dev/stdout | ../../scripts/video/example | |
gcc -g -std=gnu99 -Wall -I/usr/include -L/usr/lib -L/usr/lib/x86_64-linux-gnu/ test.c aveasy.c -lglut -lGL -lGLU -lGLEW -lglfw `pkg-config --cflags --libs libavcodec libavformat libavdevice libswscale` -o example |
OlderNewer