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
# 1) install dropbox in a shell using the instructions provided here | |
# https://www.dropbox.com/install?os=linux | |
# 2) install the cli script as ~/bin/dropbox | |
# https://www.dropbox.com/download?dl=packages/dropbox.py | |
# 3) add the following to your .bash_profile | |
# start dropbox on login if it's not running | |
if [ -f ~/bin/dropbox ]; then | |
~/bin/dropbox running | |
if [ $? -ne 0 ]; 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
# screen compatibility stuff | |
set-option -g prefix C-a | |
unbind-key C-b | |
bind-key a send-prefix | |
bind-key C-a last-window | |
bind-key C-d detach-client | |
bind-key BSpace previous-window | |
# colors | |
# http://ytaniike.posterous.com/256-colors-with-tmuxs-colour-numbers |
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
from bs4 import BeautifulSoup | |
import urllib3 | |
import json | |
from datetime import datetime | |
import PyRSS2Gen | |
url = "http://www.hankintailmoitukset.fi/fi/notice/search/?_s%5B_sent%5D=1&_s%5Bphrase%5D=&_s%5Bcpv%5D=72-5&_s%5Borganisation%5D=&_s%5Bnuts%5D=&_s%5Bpublished_start%5D=&_s%5Bpublished_end%5D=&_s%5Bform_number%5D%5B%5D=domestic_contract&_s%5Bform_number%5D%5B%5D=contract&_s%5Bform_number%5D%5B%5D=contract_utilities" | |
http = urllib3.PoolManager() |
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/python | |
import logging | |
import os | |
from glob import glob | |
import subprocess | |
logging.basicConfig(level=logging.DEBUG) | |
def unrar(directory, outdir='.'): |
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-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force | |
Add-Type @" | |
using System; | |
using System.Runtime.InteropServices; | |
using Microsoft.Win32; | |
namespace Wallpaper | |
{ | |
public enum Style : int | |
{ |
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
user = "nobody" | |
group = "plugdev" | |
ignoreControllerConfirmation = "false" | |
device { | |
id = 1 | |
name = "Desk light" | |
protocol = "arctech" | |
model = "selflearning-switch" | |
parameters { | |
house = "29478" |
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 python | |
from __future__ import with_statement | |
import os | |
import re | |
import shutil | |
import subprocess | |
import sys | |
import tempfile | |
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
nyaa-anime: | |
discover: | |
what: | |
- emit_series: yes | |
from: | |
- nyaa: anime | |
preset: [basic, anime, trakt_tv, notify, limit_ratio] | |
series: | |
- Kill la Kill: | |
from_group: horriblesubs |
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
# Keep postfix running | |
service { "postfix": | |
ensure => 'running', | |
enable => 'true', | |
} | |
# Allow connections from localhost only | |
augeas { "postfix_localhost_only": | |
context => "/files/etc/postfix/main.cf/", | |
changes => [ | |
"set inet_interfaces 127.0.0.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
#/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# ascii megaman by HeGeXa | |
_sini = "\x1b[0m\x1b[44;34m" | |
_cyan = "\x1b[0m\x1b[46;36m" | |
_valko = "\x1b[0m\x1b[47;37m" | |
_kelta = "\x1b[0m\x1b[43;33m" | |
_musta = "\x1b[0m\x1b[40;30m" | |
bold = "\x1b[1m" |
OlderNewer