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 | |
set -x | |
FULLFILE=$@ | |
EXTENSION=${FULLFILE##*.} | |
EXTENSIONLESS_FILE=$(basename -s .$EXTENSION $FULLFILE ) | |
ffmpeg -i "$FULLFILE" -f matroska -vcodec copy -acodec aac -ac 2 -strict -2 -map 0 -map -0:s "$EXTENSIONLESS_FILE-converted.mkv" |
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 | |
UNZIP=$( which unzip ) | |
INPUT_FILE=$1 | |
if [ -$INPUT_FILE- == -- ]; then | |
echo "usage: $0 trainingpeaksexportfile.zip" | |
exit 1 | |
fi |
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/sh | |
# based on: https://www.reddit.com/r/macsysadmin/comments/6jvsyx/finding_date_of_last_time_machine_backup_in/djind3p/ and original post | |
# if mac os >= 10.9 pathPlistNew="/Library/Preferences/com.apple.TimeMachine.plist" | |
# otherwise it's pathPlistOld="/private/var/db/.TimeMachine.Results.plist | |
EXIT_OK=0; | |
EXIT_WARNING=1; | |
EXIT_CRITICAL=2; | |
EXIT_UNKNOWN=3; |
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
require "keybow" | |
alt = 0 -- used to cycle key 11 | |
function modifier(key, ...) | |
for i = 1, select('#', ...) do | |
local j = select(i, ...) | |
keybow.set_modifier(j, keybow.KEY_DOWN) | |
end | |
keybow.tap_key(key) |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <netdb.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> | |
#include <memory.h> | |
#include <sys/socket.h> | |
/* |
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
Add-Type -AssemblyName System.Device #Required to access System.Device.Location namespace | |
[cultureinfo]::currentculture = 'en-US'; | |
$GeoWatcher = New-Object System.Device.Location.GeoCoordinateWatcher #Create the required object | |
$GeoWatcher.Start() #Begin resolving current locaton | |
while (($GeoWatcher.Status -ne 'Ready') -and ($GeoWatcher.Permission -ne 'Denied')) { | |
Start-Sleep -Milliseconds 100 #Wait for discovery. | |
} |
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
\documentclass[11pt]{article} | |
\usepackage{fontspec} | |
\setmainfont[Ligatures=TeX]{Linux Libertine O} | |
\begin{document} | |
\section{Unicode support} | |
\subsection{English} | |
All human beings are born free and equal in dignity and rights. | |
\subsection{Íslenska} |
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
// ==UserScript== | |
// @name Grande Minchiata | |
// @namespace http://juzam.net/ | |
// @version 0.1 | |
// @description fake news = minchiate | |
// @author [email protected] | |
// @match http://*/* | |
// @include * | |
// @grant none | |
// ==/UserScript== |
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
FROM debian:stretch | |
RUN apt-get update && apt-get install -y build-essential libcurl4-openssl-dev libmosquitto-dev liblua5.2-dev libsodium-dev libconfig-dev | |
# fpm | |
RUN apt-get install -y ruby ruby-dev rubygems gcc make | |
RUN gem install --no-ri --no-rdoc fpm | |
RUN apt-get install -y vim git && git clone https://github.com/owntracks/recorder.git |
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
#!/usr/bin/env python | |
# -*- coding:utf-8 -*- | |
# Julien Deudon (initbrain) - 20/03/2012 | |
# modified to run on OS X by James Armitage - 25/06/2012 | |
# modified to process in python by Dan Gleebits - 26/06/2012 | |
# modified to parse the xml output of airport by Vincent Ohprecio - 01/10/2012 | |
# modified to work with the new Google geolocation API by Giovanni Angoli (juzam) - 03/01/2017 | |
# merging all modifications by Julien Deudon (initbrain) - 06/01/2017 | |
from commands import getoutput, getstatusoutput |
NewerOlder