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 | |
cd ~ | |
apt-get update | |
apt-get upgrade | |
apt-get install nodejs-legacy deluged deluge-console | |
deluged | |
deluge-console add "magnet:?xt=urn:btih:25c01def1549048b301f40ab533913154c08d5d8&dn=bcoin.chain.tar.gz&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337&tr=udp%3A%2F%2Fexplodie.org%3A6969&tr=udp%3A%2F%2Ftracker.empire-js.us%3A1337" |
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
pkgbase = bcoin-git | |
pkgdesc = An alternative implementation of the bitcoin protocol, written in node.js. | |
pkgver = 1.0.0.beta.12.100.gf0b43764 | |
pkgrel = 1 | |
url = http://bcoin.io/ | |
arch = i686 | |
arch = x86_64 | |
license = MIT | |
makedepends = git | |
makedepends = npm |
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
/* thann */ | |
.info-well { | |
background-color: #272727; | |
border-color: #555; | |
color: #777; | |
} | |
.well-segment { | |
border-bottom-color: #555 !important; | |
} | |
.count, |
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 node | |
// SouthPark random expisode generator | |
// Comment out seasons to exlude them =] | |
const num_episodes = Object.entries({ | |
1: 13, | |
2: 18, | |
3: 17, | |
4: 17, | |
5: 14, |
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
# HSD docker-miner setup | |
### Install docker | |
sudo apt-get update | |
sudo apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
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
## Mostly taken from https://github.com/pika/pika/blob/03542ef616a2a849e8bfb0845427f50e741ea0c6/docs/examples/tornado_consumer.rst | |
# -*- coding: utf-8 -*- | |
import json | |
import pika | |
import uuid | |
from tornado import gen | |
from tornado.log import app_log | |
from tornado.ioloop import IOLoop | |
from tornado.concurrent import Future |
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 enchant | |
import itertools | |
sample = "atlas shrugged" | |
d = enchant.Dict("en_US") | |
for s in itertools.permutations(sample, len(sample)): | |
s = ''.join(s) | |
if all(d.check(p) for p in s.split(' ') if len(p)): | |
print('--->', s) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# Note: use following to determine "ID_MODEL" and replace "Micromax_A74" with it | |
# udevadm monitor --environment --udev | |
cat << EOF | sudo tee /etc/udev/rules.d/busKill.rules | |
ACTION=="remove", SUBSYSTEM=="usb", ENV{ID_MODEL}=="Micromax_A74", RUN+="DISPLAY=:0 xscreensaver-command -lock" | |
EOF | |
sudo udevadm control --reload |
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 bash | |
# Runs a command, then kills it after a specified amount of time. | |
# USAGE: run4 10m watch date | |
${@:2} & PIDD=$!; | |
sleep "$1"; | |
# echo "==== STOPPED ===="; | |
kill -INT $PIDD; |