Skip to content

Instantly share code, notes, and snippets.

@Anachron
Anachron / gist:3230835feb95373740b1
Last active August 29, 2015 14:04
Backbone.Radio
@Anachron
Anachron / gist:368ca675766c3c292c53
Created September 2, 2014 19:32
Firewall Rules
# Reset all rules
sudo ufw reset --force
# DNS Requests
sudo ufw allow out 53/udp
# HTTP, HTTPS, SMTP, IMAP
sudo ufw allow out 80,443,587,993/tcp
# Instant Messaging
@Anachron
Anachron / Sources.list
Created September 3, 2014 19:42
Elementary OS Freya Sources
#############################################################
################### OFFICIAL UBUNTU REPOS ###################
#############################################################
###### Ubuntu Main Repos
deb http://de.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse
###### Ubuntu Update Repos
deb http://de.archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://de.archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse
@Anachron
Anachron / Programs.sh
Last active August 16, 2016 13:43
Elementary OS Freya Programs
sudo apt-get remove file-roller
sudo apt-get install atom # UI-Theme: White, Syntax Theme: Winter
sudo apt-get install audience
sudo apt-get install brasero
#sudo apt-get install gnome-calculator
#sudo apt-get install maya-calendar
sudo apt-get install chromium-browser
sudo apt-get install gconf-editor
sudo apt-get install conky
@Anachron
Anachron / install.sh
Last active August 29, 2015 14:06
Installation Script for my ElementaryOS 0.3 setup (WIP)
##############################################################################
# PREPERATION
##############################################################################
# gdebi - Package Manager with Dependency Awareness
sudo apt-get install gdebi
##############################################################################
# INSTALLATION
##############################################################################
# ----------------------------------------------------------------------------
@Anachron
Anachron / .display.sh
Created September 25, 2014 09:35
Display Script
#/bin/bash
oldDisplays=""
while [[ 1 ]]
do
displays=$(xrandr | grep " connected" | sed -e "s/\([A-Z0-9]\+\) connected.*/\1/")
if [[ $displays == $oldDisplays ]]
then
sleep 1
@Anachron
Anachron / .startup.sh
Created September 25, 2014 09:36
Startup Script
#/bin/bash
#killall conky 2&> /dev/null
#pkill -9 -f gnome-settings-daemon
wait=$1
if [[ $wait -ne 0 ]]
then
sleep $wait
fi
@Anachron
Anachron / GitterIM-Paths.json
Created October 17, 2014 20:31
Gitter.im JSON Paths
paths: {
"log": "utils/logrjs",
"hbs": "../repo/hbs/hbs",
"i18nprecompile": "../repo/hbs/i18nprecompile",
"json2": "../repo/hbs/json2",
"handlebars": "../repo/hbs/Handlebars",
"hbs/underscore": "../repo/underscore/underscore",
"underscore": "../repo/underscore/underscore",
"assert": "../repo/assert/assert",
  • Fork the other repository that you want to change (https://github.com/Hackademic/hackademic/fork)
  • Clone your forked repository git clone -b next-dev https://github.com/NullArgument/hackademic
  • Add the original repository url git remote add source https://github.com/Hackademic/hackademic
  • Make changes and commit them git add . (add . to add all changes)
  • Commit the changes git commit -m <MESSAGE>
  • Push the changes back to github (so far only local) git push
  • Visit github and create a PR if all is okay https://github.com/NullArgument/hackademic/compare
  • If you want to update your local repository with the Hackademic changes, you type git pull source.
@Anachron
Anachron / gistbook.json
Created November 30, 2014 21:21
Anonymous Gistbook
{"title":"Anonymous Gistbook","author":"Anachron","pages":[{"pageName":"","sections":[{"type":"text","source":"Welcome to Gistbook!"},{"type":"html","source":"<h2>test</h2>"}]}],"public":true}