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 | |
# | |
FN="${1%.p12}" | |
PASS="$2" | |
# cert | |
openssl pkcs12 -in "$FN.p12" -passin "pass:$PASS" -passout "pass:$PASS" -clcerts | openssl x509 -passin "pass:$PASS" -subject -issuer -modulus > "$FN.pem" | |
openssl pkcs12 -in "$FN.p12" -passin "pass:$PASS" -passout "pass:$PASS" -clcerts | openssl x509 -passin "pass:$PASS" -subject -issuer -modulus > "$FN.crt" |
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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
# <xbar.title>StatusPage.io</xbar.title> | |
# <xbar.version>v1.0.0</xbar.version> | |
# <xbar.author>Stephen Yeargin</xbar.author> | |
# <xbar.author.github>stephenyeargin</xbar.author.github> | |
# <xbar.desc>Show a StatusPage.io's Status in BitBar</xbar.desc> | |
# <xbar.dependencies>ruby</xbar.dependencies> | |
# <xbar.image>http://i.imgur.com/FsD4zDD.png</xbar.image> |
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 | |
# | |
for F in ~/Desktop/screenshots/*.png; do | |
>&2 echo -n . | |
FN="${F%.*}" | |
test -f "$FN.txt" && continue | |
echo "$FN" | |
done | parallel -j8 'tesseract {}.png {} -l deu+eng > /dev/null 2>&1 && echo -n "+"' |
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 | |
# | |
# watchdog checking network interface | |
if [ $# -ne 1 ]; then | |
cat <<HERE | |
usage: | |
ifwatch eth0 | |
HERE | |
exit 1 |
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
--- | |
- hosts: site | |
become: yes | |
gather_facts: no | |
tasks: | |
- name: Running role {{ role }} | |
include_role: | |
name: "{{ role }}" | |
loop: "{{ roles_to_apply }}" |
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 -e | |
set -o pipefail | |
PID=$(lsof -w -c node | grep vscode-ipc | sed -e 's/ */ /g' | cut -d " " -f2 | head -1) | |
NODE=$(readlink -f /proc/$PID/exe) | |
CODE=$(dirname $NODE)/bin/remote-cli/code | |
SOCK=$(lsof -w -c node | grep vscode-ipc | sed -e 's/ */ /g' | cut -d " " -f9 | head -1) |