This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
<!-- BLE is not supported for devices running on OS lower than Android 4.3. | |
It is perfectly ok to use a lower minimum or higher target version if your application supports a broader range. | |
Although Blesh service will not operate on those lower versions. It will not throw an exception, it will not start and it will just stay down. | |
This should not affect the rest of your application. --> | |
<uses-sdk | |
android:minSdkVersion="18" | |
android:targetSdkVersion="19" /> | |
<!-- Blesh SDK required permissions --> |
import os | |
def print_directory_contents(sPath, level): | |
""" | |
This function takes the name of a directory | |
and prints out the paths files within that | |
directory as well as any files contained in | |
contained directories. | |
""" | |
level += 1 |
{"lastUpload":"2017-06-01T22:28:54.336Z","extensionVersion":"v2.8.1"} |
$ pg_dump -h <public dns> -U <my username> -f <name of dump file .sql> <name of my database>
$ psql -U <postgresql username> -d <database name> -f <dump file that you want to restore>
Windows is really horrible system for developers and especially for devops. It doesn’t even have a usable terminal and shell, so working with command line is really pain in the ass. If you really don’t want to switch to any usable system (OS X, Linux, BSD…), then this guide should help you to setup somewhat reasonable environment – usable terminal, proper shell, ssh client, git and Sublime Text as a default editor for shell.
// strip out all square brackets then join by `,` into an array | |
const flatten = arr => { | |
const newArr = arr.replace(/[[\]]/g, '') | |
return newArr.split(',').map(Number) | |
} | |
function demo() { | |
const inputArr = [ | |
[1, 2, [3]], 4 | |
] |
#### Touchpad clickfinger | |
disable middle click area and use 3 fingers instead | |
> sudo pacman -S xf86-input-libinput | |
> sudo nano /usr/share/X11/xorg.conf.d/40-libinput.conf | |
`Option "Tapping" "on"`: tapping a.k.a. tap-to-click | |
`Option "ClickMethod" "clickfinger"`: trackpad no longer has middle and right button areas and instead two-finger click is a context click and three-finger click is a middle click, see the docs. | |
`Option "NaturalScrolling" "true"`: natural (reverse) scrolling | |
`Option "TappingButtonMap" "lrm"`: set 1/2/3-finger taps to left/right/middle |