-= terminal control keys =-
[s] or [ ] interrupt/restart playback (i.e. 'pause')
[f] next track
[d] previous track
[b] back to beginning of track
[p] pause while looping current sound chunk
[.] forward
[,] rewind
[:] fast forward
This file contains 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
#include <webkit/webkit.h> | |
static void entry_activated (GtkEntry *entry, WebKitWebView *embed) | |
{ | |
webkit_web_view_load_uri (embed, gtk_entry_get_text (entry)); | |
} | |
int main (int argc, char** argv) | |
{ | |
gtk_init (&argc, &argv); | |
/* Widgets and signals */ | |
GtkWidget *window = gtk_window_new (GTK_WINDOW_TOPLEVEL); |
The quickest way to get the ini
file you need is exporting it from the the Settings -> Customization
dialog. Once you have this ini
file you can open and edit it to disable any widgets you don't need to see.
qgis --customizationfile qgis_custom.ini
Videos stored on an SD card can be imported with the Camera Connection Kit when formatted properly.
First, you must set up your SD card. In order for the iPad to recognize your media files, it has to think that the card you store your media on is from a camera.
To do this, set the folder structure to something of the type created on a
This file contains 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
// blindtiffs | |
// ---------- | |
// Usage: blindtiffs <src> <dst> | |
// Recursively copies folder <src> to folder <dst>. | |
// All GeoTIFFs in the source tree are 'blinded' by | |
// gdal_calc.py to have zero channels but still contain | |
// all the meta data. | |
// | |
// (c) 2017 by Sascha L. Teichmann |
This file contains 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
// Changes XML to JSON | |
// Modified version from here: http://davidwalsh.name/convert-xml-json | |
function xmlToJson(xml) { | |
// Create the return object | |
var obj = {}; | |
if (xml.nodeType == 1) { // element | |
// do attributes | |
if (xml.attributes.length > 0) { |
This file contains 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 | |
# | |
# DESCRIPTION: | |
# | |
# Set the bash prompt according to: | |
# * the active virtualenv | |
# * the active nodejs virtualenv[1] | |
# * the branch/status of the current Git, Mercurial or Subversion repository | |
# * the return value of the previous command | |
# * one line prompt |
This file contains 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
import requests | |
import csv | |
import datetime | |
import calendar | |
import time | |
i=0 | |
# Change the range depending on how long you like to record the data | |
for i in range (0,50): | |
This file contains 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 | |
# SOURCE: https://twitter.com/0x766c6164/status/967741716106219520 | |
# WEBSITE: http://rainymood.com/ | |
# TWITTER: https://twitter.com/RainyMood | |
rainymood(){ | |
FILE=$((RANDOM%4)) # only found 3 items :v | |
URL="https://rainymood.com/audio1110/${FILE}.ogg" | |
mpv "$URL" && rainymood |
OlderNewer