Skip to content

Instantly share code, notes, and snippets.

View thykka's full-sized avatar
🛠️

Moses Holmström thykka

🛠️
View GitHub Profile
@thykka
thykka / config
Created September 20, 2014 13:35
laptop i3 config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@thykka
thykka / i3status.config
Created September 20, 2014 13:36
laptop i3-status config
general {
colors = true
interval = 1
}
# order += "ipv6"
# order += "disk /"
# order += "run_watch DHCP"
@thykka
thykka / autostarts.sh
Created September 20, 2014 13:37
laptop i3 autostarts
#!/bin/bash
# Settings
xset -dpms; xset s off ;
# Custom scripts
/home/thykka/local/bin/mount-drives.sh ;
/home/thykka/local/bin/caps_is_brace.sh &
# /home/thykka/local/bin/dropbox.py start &
#!/bin/bash
# This script combines multiple pdf-files into one,
# then compresses it to fit two pages into one.
# pdfjam must be installed.
pdfjoin --outfile /tmp/pdfs-joined.pdf $@
pdfnup --landscape --nup 2x1 --paper a4paper --outfile ./$1-merged.pdf /tmp/pdfs-joined.pdf
rm /tmp/pdfs-joined.pdf
@thykka
thykka / saymyip.sh
Created January 22, 2015 13:56
Speak your external IP out loud (OS X)
#!/bin/bash
myip () {
ip=$(curl -s ip.appspot.com)
echo "$ip"
say "$ip"
}
@thykka
thykka / .bash_aliases
Last active August 29, 2015 14:13
My OS X dotfiles
alias l="ls"
alias ll="ls -FGlAhp"
alias la="ls -a"
alias lla="ls -la"
alias ~="cd ~"
alias c="clear"
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
@thykka
thykka / _mixins.scss
Last active August 29, 2015 14:14
Some useful scss mixins
@mixin longShadow ($length: 4, $color: rgba(0,0,0,0.3)){
$shadow: "";
@for $i from 1 to $length {
$shadow: $shadow + $i + "px " + $i + "px 0 " + $color;
@if $i < $length - 1 {
$shadow: $shadow + ", "
}
}
$shadow: unquote($shadow);
box-shadow: $shadow;
@thykka
thykka / Sample of Atom Helper.txt
Created April 20, 2015 08:05
Atom Helper high CPU usage sample
Sampling process 20060 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling Atom Helper (pid 20060) every 1 millisecond
Process: Atom Helper [20060]
Path: /Applications/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/Atom Helper
Load Address: 0x107397000
Identifier: com.github.atom.helper
Version: 0.190.0 (0.190.0)
Code Type: X86-64
Parent Process: Atom [20057]
@thykka
thykka / .guardfile
Last active August 29, 2015 14:21 — forked from dvessel/README.mdown
Boilerscoop
notification :off
puts "Using default guard file."
group :development do
if File.exists?("./config.rb")
# Time to compile!
puts `compass compile --time --quiet`
# https://github.com/guard/guard-compass
guard :compass do
watch(%r{(.*)\.s[ac]ss$})
end
@thykka
thykka / README.md
Last active September 4, 2015 11:43
Gulp Compass & Minify with notification on error (OS X)

You might need this: brew install terminal-notify

..and you might might need this: brew linkapps terminal-notify

gulp.png can be found at http://i.imgur.com/pBxLy8j.png

...you'll need to install the deps: npm install --save-dev gulp gulp-compass gulp-autoprefixer gulp-minify-css gulp-uglify gulp-rename gulp-concat gulp-notify gulp-livereload gulp-plumber path

...and obviously, you're gonna want to install a livereload browser plugin. You're on your own with this one!