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
| #include <iostream> | |
| #include <fstream> | |
| #include <sstream> | |
| #include <map> | |
| #include <list> | |
| #include <utility> | |
| #include <stdlib.h> // for exit() | |
| #include <vector> | |
| template <typename T, typename U> class create_map { |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <sys/types.h> | |
| #include <errno.h> | |
| #include <unistd.h> | |
| #include <stdarg.h> | |
| #include <stdbool.h> | |
| // Link this with a libselinux.so from your Android device |
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
| use std::error::Error; | |
| use std::fs::File; | |
| use std::io::Read; | |
| use std::io::Write; | |
| use std::io; | |
| use std::env; | |
| fn write_u8<T: io::Write>(mut obj: &mut T, x: u8) { | |
| let mut a: [u8; 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/env python2 | |
| import sys | |
| def multstr(n,st): | |
| o = "" | |
| for i in range(0,n): | |
| o += st | |
| return o | |
| def unpack_opts(s, t): |
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 -e | |
| CRF=21 | |
| ABITRATE=256k | |
| FILENAME=recording`date +%d-%m-%Y_%H.%M`.mp4 | |
| CMD=`xwininfo | awk '/Width/{printf"ffmpeg -f x11grab -s "$2"x"}/Height/{printf$2" -i '$DISPLAY'"}/Corners/{gsub(/\+/,",",$2);sub(/,/,"+",$2);print$2" -f alsa -i pulse -c:v libx264 -preset ultrafast -crf 0 -c:a copy"}'` | |
| CMD="${CMD} -vf scale='iw+mod(iw,2):ih+mod(ih,2)' _tmp_record.nut" | |
| # -vf scale='iw+mod(iw,2):ih+mod(ih,2)' makes sure the width and height are diviseable by 2 (needed for libx264) | |
| echo "Press ^C to stop recording" |
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
| --- desmume-0.9.10/src/sndsdl.cpp.orig 2013-11-28 01:37:18.797021001 +0100 | |
| +++ desmume-0.9.10/src/sndsdl.cpp 2015-03-14 22:24:04.184578448 +0100 | |
| @@ -16,6 +16,7 @@ | |
| along with the this software. If not, see <http://www.gnu.org/licenses/>. | |
| */ | |
| +#include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.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
| What you need: | |
| * nginx | |
| * dependencies to build CutyCapt (http://cutycapt.sourceforge.net/) | |
| Steps: | |
| * build CutyCapt with CutyCapt.patch applied and copy the executable somewhere | |
| * install nginx and edit the config as outlined in nginx.conf | |
| * change the paths to nginx, the nginx config and the patched cutycapt in renewcf.sh | |
| * start nginx | |
| * ensure that renewcf.sh runs every 55 minutes |
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 -e | |
| CORES=4 | |
| OUTDIR=/tmp/cubicsdr_install | |
| CUBICSDR_STABLE=1 # 1 for latest tagged version or 0 for git HEAD | |
| [ -d CubicSDR ] && (cd CubicSDR && git pull) || git clone https://github.com/cjcliffe/CubicSDR | |
| [ -d liquid-dsp ] && (cd liquid-dsp && git pull) || git clone https://github.com/jgaeddert/liquid-dsp | |
| cd liquid-dsp |
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/env python2 | |
| # SOCKS 5 server | |
| # -*- coding: utf-8 -*- | |
| import socket, struct, time, select, os | |
| from thread import start_new_thread, allocate_lock | |
| # Address to listen on | |
| HOST = "" | |
| # Port to listen on | |
| PORT = 12345 |
OlderNewer