create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| # coding=utf-8 | |
| import os | |
| import socket | |
| import threading | |
| import time | |
| import traceback | |
| import requests | |
| def make_path(*parts): |
| ## Install necessary packages | |
| $ sudo apt-get install virtualbox-ose qemu-utils genisoimage cloud-utils | |
| ## get kvm unloaded so virtualbox can load | |
| $ sudo modprobe -r kvm_amd kvm_intel | |
| $ sudo service virtualbox stop | |
| $ sudo service virtualbox start | |
| ## URL to most recent cloud image of 12.04 | |
| $ img_url="http://cloud-images.ubuntu.com/server/releases/12.04/release" |
| # Nginx can serve FLV/MP4 files by pseudo-streaming way without any specific media-server software. | |
| # To do the custom build we use 2 modules: --with-http_secure_link_module --with-http_flv_module | |
| # This module "secure-link" helps you to protect links from stealing away. | |
| # | |
| # NOTE: see more details at coderwall: http://coderwall.com/p/3hksyg | |
| cd /usr/src | |
| wget http://nginx.org/download/nginx-1.5.13.tar.gz | |
| tar xzvf ./nginx-1.5.13.tar.gz && rm -f ./nginx-1.5.13.tar.gz |
| #!/bin/sh -xe | |
| API_KEY="YOUR_API_KEY_GOES_HERE" | |
| FPS="10" | |
| VLC_PATH="/Applications/VLC.app/Contents/MacOS/VLC" | |
| # I don't know how this'll behave on multimon, so you might want to hard-code. | |
| # INRES='1440x900' | |
| INRES=$(osascript -e 'tell application "Finder" to get bounds of window of desktop'|sed 's/, /x/g'|cut -f3- -dx) | |
| OUTRES='1280x800' | |
| # You can change this to record microphone or something else, from man soxformat (under coreaudio): |
| chrome.webRequest.onHeadersReceived.addListener( | |
| function (details) { | |
| for (var i = 0; i < details.responseHeaders.length; ++i) { | |
| if (details.responseHeaders[i].name.toLowerCase() == 'x-frame-options') { | |
| details.responseHeaders.splice(i, 1); | |
| return { | |
| responseHeaders: details.responseHeaders | |
| }; | |
| } | |
| } |
| /** | |
| * Sample of serverside generation of Highcharts using an extension to jsdom in node.js. | |
| * | |
| * Usage: | |
| * npm install jsdom | |
| * npm install highcharts | |
| * node highcharts-jsdom | |
| */ | |
| /* eslint-env node */ |
| // TextView subclass that replicates TVOS movies app | |
| // Also made a quick presentation controller | |
| // Just connect the delegate to the ViewController in IB | |
| // and set the TextView class to FocusTextView | |
| import UIKit | |
| class TextPresentationViewController:UIViewController { | |
| let label = UILabel() | |
| let blurStyle = UIBlurEffectStyle.Dark |
I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6
apt-get update && apt-get install gdb