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
| * * * * * DISPLAY=:0 /usr/bin/bash /home/benkaiser/.i3/update_background |
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
| # Conky, a system monitor, based on torsmo | |
| # | |
| # Any original torsmo code is licensed under the BSD license | |
| # | |
| # All code written since the fork of torsmo is licensed under the GPL | |
| # | |
| # Please see COPYING for details | |
| # | |
| # Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen | |
| # Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS) |
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
| # Just add the following lines to your i3 config file | |
| # dynamic tagging feature | |
| bindsym $mod+t exec ~/.i3/get_workspace_options.py | dmenu -b | ~/.i3/go_to_workspace.py | |
| bindsym $mod+Shift+t exec ~/.i3/get_workspace_options.py | dmenu -b | ~/.i3/move_to_workspace.py |
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
| #!/usr/bin/env python | |
| # xkcd.py | |
| # | |
| # Copyright 2012 Benjamin Kaiser <benkaiser@benkaiser> | |
| # | |
| # This program is free software; you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation; either version 2 of the License, or | |
| # (at your option) any later version. | |
| # |
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
| from PyQt4.QtGui import * | |
| from PyKDE4.marble import * | |
| import sys | |
| def main(): | |
| # Initialize QApplication | |
| app = QApplication(sys.argv) | |
| # Create a Marble QWidget | |
| m = Marble.MarbleWidget() |
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
| # install needed packages | |
| pacman -S base-devel fakeroot jshon | |
| # get the PKGBUILD for Packer | |
| wget https://aur.archlinux.org/packages/pa/packer/PKGBUILD | |
| # make the package | |
| makepkg | |
| # install it with pacman | |
| pacman -U packer-*.pkg.tar.xz |
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
| # command from archlinux wiki: https://wiki.archlinux.org/index.php/Full_System_Backup_with_rsync | |
| sudo rsync -aAXh --progress --exclude /mnt/ --exclude /media/ --exclude /dev/ --exclude /proc/ --exclude /sys/ --exclude /tmp/ --exclude /run/ --exclude /lost+found/ --exclude /home/benkaiser/Copy --exclude /home/benkaiser/tmp /* /run/media/benkaiser/WD\ 2TB/rsync |
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
| adb root | |
| adb shell | |
| cd data | |
| rm -rf log/* | |
| // DU | |
| du -h -d=1 |
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 | |
| chmod 0777 /sys/class/leds/samsung::kbd_backlight/brightness |
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
| #!/usr/bin/python | |
| import random | |
| def main(): | |
| num_correct = 0 | |
| num_incorrect = 0 | |
| while True: | |
| num_1 = random.randint(0, 12) | |
| num_2 = random.randint(1, 12) | |
| is_mult = bool(random.getrandbits(1)) |