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
/bind meta-1 change_window 1 | |
/bind meta-2 change_window 2 | |
/bind meta-4 change_window 4 | |
/bind meta-3 change_window 3 | |
/bind meta-5 change_window 5 | |
/bind meta-6 change_window 6 | |
/bind meta-7 change_window 7 | |
/bind meta-8 change_window 8 | |
/bind meta-9 change_window 9 | |
/bind meta-0 change_window 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
import requests | |
from datetime import datetime | |
from dateutil import parser | |
from dateutil.relativedelta import relativedelta | |
host = 'localhost' | |
port = 9090 | |
token = 'LOL' | |
get_movies_endpoint = '/api/series/?in_config=all&page=1&number_of_shows=100&sort_by=show_name&order=desc' |
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-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
# Development | |
cinst -y powershell | |
cinst -y githubforwindows | |
cinst -y python3 | |
cinst -y git.commandline | |
cinst -y sublimetext3 | |
# Media |
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
shrike@lakka:~$ curl asenna.gentoo.fi | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html lang="fi"> | |
<head> | |
<meta content="text/html; charset=utf-8" http-equiv="content-type" /> | |
<link media="screen" href="screen.css" type="text/css" rel="stylesheet" /> | |
<link media="all" href="content.css" type="text/css" rel="stylesheet" /> | |
<link media="all" href="form.css" type="text/css" rel="stylesheet" /> | |
<title>Kapsi Internet-käyttäjät ry - Lakka</title> |
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
tv-series: | |
series: | |
settings: | |
# HD only preferred | |
hdgroup: | |
timeframe: 6 hours | |
target: sdtv+ 720p | |
# HD ok, not required | |
normalgroup: | |
target: sdtv+ <=720p |
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 | |
# link: http://www.emacswiki.org/emacs/PythonMode#toc7 | |
# | |
# This is a script which runs and parses the output of various Python code | |
# checking programs to work with flymake. It has lots of issues, one being that | |
# flymake does not seem to show more than one error message per line of code, | |
# meaning that an error or warning which is intentionally left unfixed can mask | |
# an error or warning that would get more attention. | |
# | |
# Additionally, the scripts which check python code are either rather anemic, |
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" |
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
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
#!/usr/bin/env python | |
from __future__ import with_statement | |
import os | |
import re | |
import shutil | |
import subprocess | |
import sys | |
import tempfile | |