This file contains 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
#!/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 |
This file contains 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
;;;;;;;;;; | |
;; 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")) |