This file contains hidden or 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
| # bonus: sexy logfile ;) | |
| sudo su | |
| printf "#\!/usr/bin/env sh\n(date;docker rmi \$(docker images -q);echo +++++;) \ | |
| >> /var/log/docker_rmi_cron.log 2>&1\n" > /etc/cron.weekly/docker-rmi | |
| chmod +x /etc/cron.weekly/docker-rmi |
This file contains hidden or 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
| # Switch to the master(or dev) branch and make sure you are up to date. | |
| # Taken from http://makandracards.com/makandra/527-squash-several-git-commits-into-a-single-commit | |
| # =================================================================================================== | |
| # ------ basically ggpull 1st; | |
| git checkout dev | |
| git fetch upstream # eller `git fetch origin` HVIS gatekeeper | |
| git merge upstream/dev # eller `git pull` HVIS gatekeeper | |
| # start here ; |
This file contains hidden or 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 | |
| #function for yo .bashrc/.zshrc | |
| inotify_delay_cmd() { | |
| while true; do | |
| inotifywait -r -e create -e delete -e modify --exclude '^\./\..+' . | |
| "$@" | |
| done | |
| } |
This file contains hidden or 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
| alias steal_site='wget --mirror --convert-links --adjust-extension --page-requisites --no-parent' |
This file contains hidden or 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/bash | |
| # JustWorks{4Me}Linux --- version 0.0.1a | |
| # each section is prepped for copy and paste | |
| # mount /arch (freshly formatted) | |
| # set some ENVs | |
| # find you mirror here: https://www.archlinux.org/mirrorlist/ |
This file contains hidden or 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 log -25 --no-merges --pretty=format:"%h - %an, %ar : %s" |
This file contains hidden or 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
| cd; du -hd1 | sort -h |
This file contains hidden or 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
| sudo aptitude install meld; git config --global merge.tool meld |
NewerOlder