Skip to content

Instantly share code, notes, and snippets.

@Zirak
Zirak / mirror.el
Last active March 10, 2018 19:23
Mirror Elpa (or Melpa or whatever)
;;;;;;;;;;
;; https://github.com/Zirak/mirror-elpa
;;;;;;;;;;
;; mirrors melpa into a ~packages~ subdirectory
;; you can run a web-server in said subdirectory and use it as a package archive
(defun read-archive (url)
(with-temp-file (expand-file-name "archive-contents" "packages")
(url-insert-file-contents (concat url "archive-contents"))
@gwenhael-le-moine
gwenhael-le-moine / setup-sshd-on-CM.sh
Created August 4, 2013 11:58
As it says, this script will setup a working configuration to run CM10 (minimum)'s included sshd. It doesn't starts it automatically by default as I prefer to control it using Tasker rules but feel free to uncomment the last 2 lines
#!/system/xbin/bash
# Insipred by http://alainwolf.ch/en/tech-talk/ssh-cyanogenmod/
if [ "$UID" != "0" ]; then
echo "This script _MUST_ be run as root"
exit 1
fi
#creates /data/ssh/ if it doesn't exist