Skip to content

Instantly share code, notes, and snippets.

@f000
f000 / exim.conf
Created August 5, 2016 22:24
Exim4 incoming relay
######################################################################
# Runtime configuration file for Exim #
######################################################################
# This is a default configuration file which will operate correctly in
# uncomplicated installations. Please see the manual for a complete list
# of all the runtime configuration options that can be included in a
# configuration file. There are many more than are mentioned here. The
# manual is in the file doc/spec.txt in the Exim distribution as a plain
@f000
f000 / rules-both.iptables
Created March 7, 2016 23:31 — forked from jirutka/rules-both.iptables
Basic iptables template for ordinary servers (both IPv4 and IPv6)
###############################################################################
# The MIT License
#
# Copyright 2012-2014 Jakub Jirutka <jakub@jirutka.cz>.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
@f000
f000 / .gitconfig
Last active November 4, 2015 11:15
Aliases for ~/.gitconfig
[alias]
# Edit global config in your favourite editor
ec = config --global -e
# Common shortcuts
co = checkout
c = commit
st = status
br = branch
adjust
adn
align-center
align-justify
align-left
align-right
ambulance
anchor
android
angellist
@f000
f000 / .gitignore
Created September 23, 2015 12:31
Umbraco .gitignore with uSync
#################
## Umbraco
#################
# Ignore Umbraco sources
[Bb]in
aspnet_client
App_Browsers
Umbraco
Umbraco_Client
@f000
f000 / .tm_properties
Created August 5, 2015 16:34
Textmate 2 ~/.tm_properties
# Basic Settings
fontName = "Courier New"
fontSize = 16
# JS Lint
projectDirectory = "$CWD"
TM_PROJECT_DIRECTORY = "$projectDirectory"
# Variables
TM_FULLNAME = "Lukas Vorlicek"
@f000
f000 / Copy Current File Path.tmCommand
Created January 26, 2015 21:05
TextMate 2 – Copy current file path to clipboard
#!/usr/bin/env bash
[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] && . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
echo -n "$TM_FILEPATH" | pbcopy
echo "Path $TM_FILEPATH copied to clipboard."
opkg install transmission-remote transmission-web
mkdir -p /data/torrents/torrents-completed /data/torrents/torrents-incomplete /data/torrents/torrents /data/torrents/config
uci set transmission.@transmission[-1].enabled=1
uci set transmission.@transmission[-1].config_dir=/data/torrents/config
uci set transmission.@transmission[-1].download_dir=/data/torrents/torrents-completed
uci set transmission.@transmission[-1].incomplete_dir_enabled=true
uci set transmission.@transmission[-1].incomplete_dir=/data/torrents/torrents-incomplete
uci set transmission.@transmission[-1].blocklist_enabled=1