Version: 1.9.8
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
| // ==UserScript== | |
| // @name CloupApp Select all | |
| // @match http://my.cl.ly/* | |
| // @author dotzero | |
| // @description Add Select All button to CloudApp web interface | |
| // ==/UserScript== | |
| function main() { | |
| $('#toolbar').prepend('<li><a class="button" href="#" id="selall">Select all</a></li>'); | |
| $('#selall').on("click", function(event){ |
| #!/bin/bash | |
| # PiTFT Resistive 2.8" (PID 1601) or Capacitive 2.8" (PID 1983) setup script or Resistive 3.5" (PID 2097) or 2.2" No-Touchscreen setup script! | |
| set -e | |
| function cleanup() { | |
| if [ "${mountpoint}" != "/" ] | |
| then | |
| sudo -n umount "${mountpoint}/boot" 2> /dev/null |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import os | |
| import time | |
| import json | |
| import urllib | |
| import urllib2 | |
| from dateutil.parser import parse |
Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.
cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/
Raspberry PI SD Installer OS X — простой консольный скрипт для записи любых .img или .iso образов на SD флешки. Использование на OSX или Linux:
sudo ./install ~/Downloads/raspbian.img
Подключили ethernet кабель, вставили флешку с Raspbian и запустили, но нет лишнего HDMI монитора и клавиатуры? Выход есть и это — Adafruit Raspberry Pi Finder. Использование на OSX или Linux:
| // | |
| // Script.swift | |
| // Buildasaur | |
| // | |
| // Created by Honza Dvorsky on 12/05/15. | |
| // Copyright (c) 2015 Honza Dvorsky, dotzero. All rights reserved. | |
| // | |
| import Foundation |
| # First install tmux | |
| brew install tmux | |
| # For mouse support (for switching panes and windows) | |
| # Only needed if you are using Terminal.app (iTerm has mouse support) | |
| Install http://www.culater.net/software/SIMBL/SIMBL.php | |
| Then install https://bitheap.org/mouseterm/ | |
| # More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/ |