screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
screen -AmdS docker ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
screen -r docker
# enter, then disconnect with Ctrl-a d
screen -S docker -p 0 -X stuff $(printf root\\r\\n)
screen -r docker
This file contains hidden or 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
require "rubygems" | |
require "twitter" | |
require "json" | |
require "csv" | |
#require "date" | |
# things you must configure | |
TWITTER_USER = "your_twitter_username" | |
MAX_AGE_IN_DAYS = 7 # anything older than this is deleted |
This file contains hidden or 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
{ config, lib, pkgs, ...}: | |
with lib; | |
let | |
cfg = config.services.crd; | |
in { | |
options = { | |
services.crd = { | |
enable = mkEnableOption '' | |
chrome remote desktop, a service which allows for remote control of your desktop from anywhere. | |
''; |
This file contains hidden or 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
;;; org-to-gfm --- Export a org-mode file to Github-flavored Markdown | |
;;; | |
;;; Commentary: | |
;;; To convert INPUT_FILE.org and produce OUTPUT_FILE.md, run something like: | |
;;; | |
;;; emacs -q --no-splash --no-x-resources --batch --script org-to-gfm.el INPUT_FILE.org OUTPUT_FILE.md | |
;;; | |
;;; Code: | |
(unless (require 'use-package nil t) (package-install 'use-package)) |
This file contains hidden or 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
with import <nixpkgs> {}; | |
#{stdenv, fetchFromGitHub, python, ninja}: | |
stdenv.mkDerivation rec { | |
name = "scylla-${version}"; | |
version = "2.1.0"; | |
src = fetchgit { | |
url = "https://github.com/scylladb/scylla"; |
This file contains hidden or 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
// How to build: "CC=clang go build" | |
package main | |
import ( | |
"fmt" | |
"net/url" | |
"strconv" | |
"unsafe" | |
) |
This file contains hidden or 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
// From https://github.com/kr/s3/tree/master/s3cp | |
// Added public read for uploaded files | |
// Command s3cp copies a file to or from Amazon S3. | |
// | |
// Usage: | |
// | |
// s3cp file url | |
// s3cp url file | |
// | |
// The file does not need to be seekable or stat-able. You can use s3cp to |