Skip to content

Instantly share code, notes, and snippets.

View rileyrg's full-sized avatar
💭
Emacs can replace PHPStorm

RichieHH rileyrg

💭
Emacs can replace PHPStorm
  • Hamburg, Germany
View GitHub Profile
(global-set-key (kbd "C-c f")
(lambda ()
(interactive)
(require 'finder)
(let ((thing (intern (thing-at-point 'symbol))))
(if (functionp thing)
(find-function thing)
(find-variable thing)))))
(which-function-mode t)
(add-hook 'after-init-hook 'global-flycheck-mode)
;; (setq flycheck-check-syntax-automatically '(mode-enabled idle-change))
;; (require 'flycheck-color-mode-line)
;; (eval-after-load "flycheck"
;; '(add-hook 'flycheck-mode-hook 'flycheck-color-mode-line-mode))
(global-set-key (kbd "<f11>") 'next-error)
#!/bin/bash
mountpoint="${1-/media/debianbackup}"
sudo mount "${mountpoint}"
mount | grep "${mountpoint}" >/dev/null
if [ "$?" -eq 0 ]
then
sudo rsync -aAXv /* "${1-"${mountpoint}"}" --exclude={"${HOME}"/.cache,/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,"${mountpoint}",/media/cdrom0,/lost+found} --delete
echo "Unmounting "${mountpoint}""
sudo umount "${mountpoint}"
else
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /home/rgr/.ssh/id_rsa (0x7fc8444e20d0),
debug2: key: /home/rgr/.ssh/id_dsa ((nil)),
debug2: key: /home/rgr/.ssh/id_ecdsa ((nil)),
the fragment layout XML R.layout.debug_fragment
<ListView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/debug_listview"
android:layout_width="128sp"
android:background="@color/shadedblack"
android:layout_height="wrap_content">
</ListView>
fragment in a framelayout
#!/bin/bash
mountpoint="${1-/media/debianbackup}"
sudo mount "${mountpoint}"
mount | grep "${mountpoint}" >/dev/null
if [ "$?" -eq 0 ]
then
sudo rsync -aAXv /* "${1-"${mountpoint}"}" --exclude={"${HOME}"/.cache,/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,"${mountpoint}",/media/cdrom0,/lost+found} --delete
echo "Unmounting "${mountpoint}""
sudo umount "${mountpoint}"
else
(which-function-mode t)
(add-hook 'after-init-hook 'global-flycheck-mode)
;; (setq flycheck-check-syntax-automatically '(mode-enabled idle-change))
;; (require 'flycheck-color-mode-line)
;; (eval-after-load "flycheck"
;; '(add-hook 'flycheck-mode-hook 'flycheck-color-mode-line-mode))
(global-set-key (kbd "<f11>") 'next-error)
@rileyrg
rileyrg / upd.sh
Created September 26, 2014 07:47
#!/bin/bash
sudo apt-get update --yes && sudo apt-get upgrade --yes && sudo apt-get dist-upgrade --yes && sudo apt-get autoremove --yes
@rileyrg
rileyrg / upd.sh
Created September 27, 2014 15:59
#!/bin/bash
sudo apt-get update --yes && sudo apt-get upgrade --yes && sudo apt-get dist-upgrade --yes && sudo apt-get autoremove --yes
(which-function-mode t)
(add-hook 'after-init-hook 'global-flycheck-mode)
;; (setq flycheck-check-syntax-automatically '(mode-enabled idle-change))
;; (require 'flycheck-color-mode-line)
;; (eval-after-load "flycheck"
;; '(add-hook 'flycheck-mode-hook 'flycheck-color-mode-line-mode))
(global-set-key (kbd "<f11>") 'next-error)