Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
SRC="/Users/Isa/FH/Bachelor/" #dont forget trailing slash!
SNAP="/Volumes/DieBox/Bachelor"
OPTS="-rltgoi --delay-updates --delete --chmod=a-w"
# sync
rsync $OPTS --exclude '.git' --exclude 'snapshot.sh' $SRC $SNAP/latest >> $SNAP/rsync.log
patchver=3
pkgname=libnotify-patched
pkgver=0.7.5
pkgrel=1
pkgdesc="Desktop notification library patched so that notify-send can replace notifications"
arch=('i686' 'x86_64')
url="http://library.gnome.org/devel/notification-spec/"
license=('LGPL')
depends=('gdk-pixbuf2')
provides=('libnotify=$pkgver')
pppd options in effect:
debug # (from command line)
nodetach # (from command line)
logfd 2 # (from command line)
dump # (from command line)
noauth # (from /etc/ppp/peers/hsrm)
refuse-eap # (from /etc/ppp/peers/hsrm)
name joreiner # (from /etc/ppp/peers/hsrm)
remotename hsrm # (from /etc/ppp/peers/hsrm)
# (from /etc/ppp/options)
emacs -Q -L . -L /usr/share/emacs/site-lisp/ -batch -f batch-byte-compile
auto-complete.el auto-complete-config.el
Wrote
/tmp/yaourt-tmp-jokke/aur-emacs-auto-complete-git/src/auto-complete/auto-complete.elc
Wrote
/tmp/yaourt-tmp-jokke/aur-emacs-auto-complete-git/src/auto-complete/auto-complete-config.elc
emacs -Q -L . -batch -l etc/install
/tmp/yaourt-tmp-jokke/aur-emacs-auto-complete-git/pkg/usr/share/emacs/site-lisp//auto-complete
Installing to
/tmp/yaourt-tmp-jokke/aur-emacs-auto-complete-git/pkg/usr/share/emacs/site-lisp//auto-complete
(server-start)
;; Auctex
(add-hook 'text-mode-hook 'turn-on-visual-line-mode)
(add-to-list 'load-path "~/.emacs.d/plugins/yasnippet")
(require 'yasnippet)
(yas/global-mode 1)
(load "auctex.el" nil t t)
(setq TeX-auto-save t)
(setq TeX-parse-self t)
@repomaa
repomaa / sudo
Created November 15, 2012 17:56
#%PAM-1.0
auth required pam_env.so
auth [success=ok new_authtok_reqd=ok ignore=ignore default=1] pam_usb.so
auth [success=done new_authtok_reqd=ok ignore=ignore default=ok] pam_fprintd.so
auth [success=done new_authtok_reqd=ok ignore=ignore default=ignore] pam_unix.so try_first_pass likeauth
auth required pam_deny.so
@repomaa
repomaa / tlp
Created November 15, 2012 23:10
# ------------------------------------------------------------------------------
# tlp - Parameters for power save
# Hint: some features are disabled by default, remove the leading # to enable them
# Set to 0 to disable/1 to enable TLP
TLP_ENABLE=1
# Seconds laptop mode has to to wait after the disk goes idle before doing a sync.
# Non-zero value enables, zero disables laptop mode.
@repomaa
repomaa / tmp
Created November 16, 2012 21:26
Nov 16 23:16:07 jokkes-x220 systemd[1]: systemd-modules-load.service: main process exited, code=exited, status=1/FAILURE
Nov 16 23:16:07 jokkes-x220 systemd[1]: Failed to start Load Kernel Modules.
Nov 16 23:16:07 jokkes-x220 systemd[1]: Unit systemd-modules-load.service entered failed state
Nov 16 23:16:07 jokkes-x220 systemd-journal[186]: Journal started
Nov 16 23:16:07 jokkes-x220 systemd-modules-load[140]: Failed to find module 'tp_smapi'
@repomaa
repomaa / batch-convert.sh
Created November 20, 2012 04:51
shell script for batch image resizing/converting using imagemagick
#!/bin/bash
status=0;
function help
{
echo "batch-convert: converts all images in source recursively"
echo " "
echo "WARNING:"
echo "If you do not define dest and omit the -s option"
echo "your images will be _overwritten_!"
echo ""
@repomaa
repomaa / image.rb
Last active December 14, 2015 16:49
class Image < ActiveRecord::Base
belongs_to :project
attr_accessible :file, :crop_x, :crop_y, :crop_w, :crop_h, :original_geometry, :large_geometry, :thumb_geometry, :thumb
attr_accessor :crop_x, :crop_y, :crop_w, :crop_h
has_attached_file :file,
:styles => {
:large => ["600x300>", :png],
:thumb => { :geometry => "220x>",
:format => 'png',
:processors => [:cropper] }