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
\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 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
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 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
#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 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 "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 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 | |
# 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 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 | |
UNZIP=$( which unzip ) | |
INPUT_FILE=$1 | |
if [ -$INPUT_FILE- == -- ]; then | |
echo "usage: $0 trainingpeaksexportfile.zip" | |
exit 1 | |
fi |
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 | |
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" |
OlderNewer