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
#!/bin/sh -e | |
# Create a new journal directory in ~/journal Specify a journal slug (short | |
# non-space description). A new directory will be created with todays date as a | |
# prefix. | |
if [ -z $1 ]; then | |
echo "Specify journal slug as argument" | |
exit 1 | |
fi |
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
#!/bin/sh | |
# This script requires 'xinput'. The speed is set to -0.8. Adjust this to your | |
# own preference. | |
xinput --set-prop "MADCATZ Mad Catz RAT1" "libinput Accel Speed" -0.8 |
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
du: https://duckduckgo.com/?q=test Duckduck | |
go: https://www.google.se/search?q=%s Google search | |
gi: https://www.google.se/search?q=%s&tbm=isch Google image search | |
yt: https://www.youtube.com/results?search_query=%s Youtube | |
gh: https://github.com/search?q=%s Github search | |
maps: https://www.google.se/maps?q=%s&=S%F6k%20i%20Google%20Maps Google maps | |
gist: https://gist.github.com/search?q=%s Github gist | |
# Development | |
npm: https://www.npmjs.com/search?q=%s Javascript NPM |
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
defmodule Sup do | |
use Supervisor | |
def start_link, do: Supervisor.start_link(__MODULE__, [], name: __MODULE__) | |
def init(_) do | |
agent_spec = Supervisor.child_spec(Child, start: {Child, :start_link, []}) | |
Supervisor.init([agent_spec], strategy: :simple_one_for_one) | |
end |
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
cmake_minimum_required(VERSION 2.6) | |
# If you want a bin and lib output directory | |
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin) | |
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin) | |
add_definitions("-Wall -O2 -std=gnu11") | |
# Version | |
# ======= | |
set(MAJOR 0) |
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
git config --global alias.ci "commit" | |
git config --global alias.cia "commit --amend" | |
git config --global alias.ciane "commit --amend --no-edit" | |
git config --global alias.fe "fetch -v --all" | |
git config --global alias.rb "rebase -v --autostash" | |
git config --global alias.me "merge" | |
git config --global alias.meff "merge --no-edit --ff" | |
git config --global alias.menff "merge --no-ff" | |
git config --global alias.co "checkout" | |
git config --global alias.st "status -s -b" |
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/cdtoday.sh | |
DATE=$(date "+%F") | |
mkdir -p ~/journal/$DATE | |
cd ~/journal/$DATE | |
# .bashrc | |
alias cdtoday='source /usr/bin/cdtoday.sh' |
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
# Lines configured by zsh-newuser-install | |
HISTFILE=~/.histfile | |
HISTSIZE=1000 | |
SAVEHIST=1000 | |
bindkey -v | |
# End of lines configured by zsh-newuser-install | |
# The following lines were added by compinstall | |
zstyle :compinstall filename '/home/freze/.zshrc' | |
autoload -Uz compinit |
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
# Save as .i3/config | |
# Using windows key | |
set $mod Mod4 | |
font -misc-fixed-medium-r-normal--10-100-75-75-c-60-iso8859-1 | |
floating_modifier $mod | |
hide_edge_borders both | |
force_focus_wrapping no | |
new_window none |
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
PS1=' \[\e[1;33m\][ \[\e[2;30m\]\W \[\e[1;33m\]] # \[\e[0m' | |
alias sshc='ssh -C -c arcfour' | |
alias scpc='scp -C -c arcfour' | |
alias antq='ant -q' | |
alias youtube-dl='youtube-dl --no-part' | |
alias py3='python3' | |
alias cmake-clear='rm -rf CMakeCache.txt CMakeFiles' |
NewerOlder