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
#!/usr/bin/env bash | |
# URLs to the source directories | |
export SOURCE_OPENSSL=https://www.openssl.org/source/ | |
export SOURCE_PCRE=ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ | |
export SOURCE_NGINX=http://nginx.org/download/ | |
# ensure that we have the required software to compile our own nginx | |
apt-get -y install curl wget build-essential |
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
set limit = 100000 | |
while true | |
do | |
set fsize = `du -b "$(ls | tail -1)" | cut -f 1` | |
if test $fsize -gt $limit | |
then | |
touch hooks/stop_record | |
touch hooks/start_record | |
fi | |
sleep 1 |
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
58029 silly gunzTarPerm extractEntry node_modules/fstream-npm/.npmignore | |
58030 silly gunzTarPerm extractEntry node_modules/fstream-npm/README.md | |
58031 silly gunzTarPerm extractEntry node_modules/fstream-npm/LICENSE | |
58032 silly gunzTarPerm extractEntry node_modules/fstream-npm/fstream-npm.js | |
58033 silly gunzTarPerm extractEntry node_modules/fstream-npm/example/bundle.js | |
58034 silly gunzTarPerm extractEntry node_modules/fstream-npm/example/dir-tar.js | |
58035 silly gunzTarPerm extractEntry node_modules/fstream-npm/example/dir.js | |
58036 silly gunzTarPerm extractEntry node_modules/fstream-npm/example/example.js | |
58037 silly gunzTarPerm extractEntry node_modules/fstream-npm/example/ig-tar.js | |
58038 silly gunzTarPerm extractEntry node_modules/fstream-npm/example/tar.js |
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
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#define MAX 1000000 | |
void permute(unsigned int **result, char *a, int l, int r, int *len); | |
int main() { | |
int i, k, j, len; |
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
#include <iostream> | |
#include <cstring> | |
#include <vector> | |
#include <string> | |
int main () | |
{ | |
std::vector<std::string> tokens; | |
std::vector<std::string>::iterator it; | |
std::string str ("homework! my do Please"); |
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
#include <NewPing.h> | |
#define MAX_TIME 17202 | |
#define TRIGGER_PIN 10 // Arduino pin tied to trigger pin on ping sensor. | |
#define ECHO_PIN 9 // Arduino pin tied to echo pin on ping sensor. | |
#define MAX_DISTANCE 200 // Maximum distance we want to ping for (in centimeters). Maximum sensor distance is rated at 400-500cm. | |
NewPing sonar(TRIGGER_PIN, ECHO_PIN, MAX_DISTANCE); // NewPing setup of pins and maximum distance. |
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
avconv -i tcp://127.0.0.1:8181?listen -c:v copy -c:a aac -strict -2 -ar 44100 -ab 40000 -f flv rtmp://1.21550888.fme.ustream.tv/ustreamVideo/21550888/mPqsDH2dWMqVmSptpfRytBGeETLc3DxQ |
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
#!/bin/sh | |
# Try to bring picam up when an interface comes up. | |
# Don't bother to do anything for lo. | |
if [ "$IFACE" = lo ]; then | |
exit 0 | |
fi | |
# Only run from ifup. | |
if [ "$MODE" != start ]; then |
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
#include <stdio.h> | |
int main(void) { | |
printf("Hello, World!\n"); | |
return 0; | |
} |
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
print "Hello, World!" |
OlderNewer