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/bash | |
die() { | |
echo "EDIT YOUR ~/telegram_bot.rc AND RE-RUN!" 1>&2 | |
exit 1 | |
} | |
if [ ! -f $HOME/telegram_bot.rc ]; then | |
cat >$HOME/telegram_bot.rc <<_EOF_ | |
# |
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/bash | |
die() { | |
echo "EDIT YOUR ~/telegram_bot.rc AND RE-RUN!" 1>&2 | |
exit 1 | |
} | |
if [ ! -f $HOME/telegram_bot.rc ]; then | |
cat >$HOME/telegram_bot.rc <<_EOF_ | |
# |
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
// stacktrace.h (c) 2008, Timo Bingmann from http://idlebox.net/ | |
// published under the WTFPL v2.0 | |
#ifndef _STACKTRACE_H_ | |
#define _STACKTRACE_H_ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <execinfo.h> | |
#include <cxxabi.h> |
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/bash | |
set -e | |
set -x | |
THISDIR=$(dirname $(readlink -f "$0")) | |
CV_GIT="https://github.com/Itseez/opencv.git" | |
# CV_GIT_BRANCH="3.0.0" | |
# CV_VERSION="2.4.10" |
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
// test new bot api | |
// start it as: | |
// gourbot "token:forBot" | |
// or | |
// BOT_TOKEN="token:forBot" gourbot | |
// | |
package main | |
import ( |
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/bash | |
# prepumdu.sh -- # prepare usermodded debootstapped ubuntu | |
# using debootstrap, fakeroot, fakechroot | |
# | |
# usage: | |
# arch=amd64 \ | |
# suite="trusty" \ | |
# mirror="http://ru.archive.ubuntu.com/ubuntu" \ | |
# proxy="http://proxy.mine:3128/" \ |
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
package main | |
import ( | |
"bytes" | |
"fmt" | |
"io" | |
"net/http" | |
"time" | |
) |
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/bash | |
master_container="$HOME/Dropbox/.safe" | |
master_mountpoint="$HOME/safe" | |
keyfile="$HOME/.keys/encfs-safe" | |
mount_master() { | |
echo "* mounting master cryptocontainer..." | |
if [ ! -d "$master_container" ] |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="description" content="80x24 screen editor" /> | |
<title>80x24 screen editor</title> | |
<style type="text/css"> | |
@font-face { | |
font-family: "webfix"; |
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
// ==UserScript== | |
// @name FBCBot | |
// @namespace https://localhost/fbcbot | |
// @description freebitco.in bot | |
// @include https://freebitco.in/* | |
// @version 1 | |
// @grant none | |
// @noframes | |
// @run-at document-idle | |
// ==/UserScript== |
OlderNewer