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/python | |
import os, sys, shutil, subprocess | |
OUTPUT_ARGUMENT = '--output-directory=' | |
DEFAULT_OUTPUT_PATH = '/Users/Jonathan/tmp' | |
# Grab the output directory from the arguments | |
output_arg_specified = False | |
output_dir = None |
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
(* | |
Notes: | |
Ver. 2.11 | |
Created by macmadness86 on 29.12.2013 | |
Author of TeX Tutorials on YouTube | |
http://www.youtube.com/user/XeTeXTutorials?feature=watch | |
StackExchange User | |
http://stackoverflow.com/users/1236128/macmadness86 |
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
tell application "Microsoft Excel" | |
set act_doc to active sheet | |
set sel_range to selection | |
set column_list to columns of sel_range | |
set sel_count to count of cells of sel_range | |
set the_Count to 1 | |
set row_Count to count of rows of sel_range | |
set last_row to row_Count | |
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
tell application "Microsoft Excel" | |
display dialog "You have selected " & (count large of selection as string) & " cells." | |
end tell |
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
# Iterate this file with yaourt | |
xorg-server | |
xorg-xinit | |
plasma-meta | |
kde-applications-meta | |
sddm | |
grafana | |
guake | |
terminator |
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{article} | |
\documentclass[xcolor=table]{beamer} | |
%\usepackage[envcountsect]{beamerarticle} | |
\mode<article>{\usepackage{fullpage}} | |
\mode<presentation>{ | |
%\setbeamertemplate{background canvas}[vertical shading][bottom=blue!70!white,top=white!95!black]% content colors | |
%\setbeamertemplate{sidebar left}{\vspace*{\fill}} | |
%\usetheme{Antibes}% Affect heirarchy in top bar only mode | |
\usetheme{CambridgeUS}% Adds footer bar with slide info | |
\usecolortheme{beaver}% outer theme colors |
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{article} | |
\usepackage{fontspec} | |
\usepackage{longtable} | |
\usepackage{array} | |
\usepackage{booktabs} | |
\usepackage{xparse} | |
\usepackage{fontawesome} | |
\usepackage{lipsum} | |
% | |
\makeatletter |
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 | |
# Prints a line, date, and output of "ip a" to some host over ssh. | |
# Useful to acquire IP addresses of headless machines when DNS is unavailable. | |
# Requirements: root privileges, wifi connects to ssid automatically e.g. systemd-networkd + wpa_supplicant | |
user=username | |
host=whatever.com | |
ssid=yourwifiname | |
if [ "$(iwgetid -r)" = "$ssid" ] |
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
[Unit] | |
Description=Make my IP known. Send results of $(ip a) to another machine over ssh as a text file prefixed with "beacon-". | |
After=network.target | |
[Service] | |
ExecStart=/bin/sh /usr/local/sbin/beacon.sh | |
[Install] | |
WantedBy=multi-user.target |
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
# make sym link from /etc/systemd/system/xvnc.socket | |
# to /etc/systemd/system/socket.target.wants to enable | |
[Unit] | |
Description=XVNC Server | |
[Socket] | |
ListenStream=5900 | |
Accept=yes |
OlderNewer