-
Install Docker For Mac if you haven't already
-
Start the Docker For Mac App
-
Open a Terminal window - (iTerm2 is nicer than Mac's built in one)
-
Login to Docker Hub if you haven't already. You'll need to create an account on their website if you don't already have one.
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
#!/bin/sh | |
# extend non-HiDPI external display on DP* left of a HiDPI internal display eDP* | |
# see also https://wiki.archlinux.org/index.php/HiDPI | |
# you may run into https://bugs.freedesktop.org/show_bug.cgi?id=39949 | |
# https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/883319 | |
# Original version from: https://gist.github.com/wvengen/178642bbc8236c1bdb67 | |
EXT=`xrandr --current | sed 's/^\(.*\) connected.*$/\1/p;d' | grep -v ^eDP | head -n 1` | |
INT=`xrandr --current | sed 's/^\(.*\) connected.*$/\1/p;d' | grep -v ^DP | head -n 1` |
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
package co.blah.ui.widget; | |
import android.annotation.TargetApi; | |
import android.content.Context; | |
import android.graphics.drawable.Drawable; | |
import android.os.Build; | |
import android.provider.Settings; | |
import android.util.AttributeSet; | |
import android.widget.ProgressBar; |
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
#! /bin/bash | |
timestamp=$(date +"%Y-%m-%d_%H-%M-%S") | |
adb shell screencap -p /sdcard/$timestamp.png | |
adb pull /sdcard/$timestamp.png ~/Desktop/$timestamp.png | |
adb shell rm /sdcard/$timestamp.png |
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
# Run these commands, and use the files below for the content | |
sudo nano /etc/network/if-up.d/my-redirect | |
chmod +x /etc/network/if-up.d/my-redirect | |
nano /etc/network/if-down.d/my-redirect-clearer | |
chmod +x /etc/network/if-down.d/my-redirect-clearer |
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 'rexml/document' | |
require 'time' | |
require 'fileutils' | |
OUTPUT_FOLDER = 'notes' | |
WORKING_HTML_FILEPATH = 'index.html.working' | |
def get_foldername(element) | |
begin | |
return get_contents_element_from_span(element, "actual-name, 'workbooks'").get_text().to_s() |