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
import sys | |
import os | |
import re | |
def sanitize_filename(name): | |
# Keep letters, numbers, spaces, and hyphens | |
sanitized = re.sub(r'[^a-zA-Z0-9 \-]', '', name) | |
sanitized = sanitized.strip() # .replace(' ', '_') # Optional: replace spaces with underscores | |
return sanitized |
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 | |
verbose=0 | |
blacklist=("linux-vdso.so.1" "libc.so.6" "libm.so.6" "/lib64/ld-linux-x86-64.so.2" "libpthread.so.0") | |
copied=() | |
grab_deps() { | |
[ $verbose -ne 0 ] && { echo "Processing: $2"; } | |
processed=() | |
while read row; do |
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
# Note: this is a first pass. Some packages may be reported as missing due to their unorthodox naming; e.g. Python | |
brew update -q;nix-channel --update&>/dev/null;export T1=$(mktemp);T2=$(mktemp);brew list -1>$T1;nix-env -qaP|awk '{print $2}'>$T2;for pkg in $(cat $T1);do grep "^$pkg" $T2>/dev/null;[ $? -eq 0 ] || echo "Package $pkg not available.";done |
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
tell application "System Preferences" | |
reveal pane id "com.apple.preferences.Bluetooth" | |
activate | |
tell application "System Events" to tell process "System Preferences" | |
display notification "Turning Bluetooth off and then back on." with title "Bluetooth" subtitle "Hopefully this fixes any keyboard issue." sound name "Frog" | |
click button "Turn Bluetooth Off" of window "Bluetooth" of application process "System Preferences" of application "System Events" | |
delay 5 | |
click button "Turn Bluetooth On" of window "Bluetooth" of application process "System Preferences" of application "System Events" | |
end tell | |
quit |
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
(let [[jirafilepath tempofilepath mergedfilepath] *command-line-args*] | |
(when (or (empty? jirafilepath) | |
(empty? tempofilepath) | |
(empty? mergedfilepath)) | |
(println | |
"Please provide path to {jira export file} {temport export file} {merged file}") | |
(System/exit 1)) | |
(with-open [reader (io/reader jirafilepath)] | |
(let [csv-data (csv/read-csv reader)] |
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
def history(numlines = -1): | |
import readline | |
total = readline.get_current_history_length() | |
if numlines == -1: | |
numlines = total | |
if numlines > 0: | |
for i in range(total - numlines + 1, total + 1): | |
print("%3d %s" % (i, readline.get_history_item(i))) | |
def bang(linenum = -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
#!/bin/bash | |
# Setting up nix in a container. | |
# While build users are created, this is a stadanlone, | |
# no daemon required, install. | |
# nix is touchy that way. | |
groupadd -r nixbld | |
for n in $(seq 1 10); do | |
useradd -c "Nix build user $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
Verifying my Blockstack ID is secured with the address 16hJTdGrk2Re3THokXHXi4oJZj1TeNUeHk https://explorer.blockstack.org/address/16hJTdGrk2Re3THokXHXi4oJZj1TeNUeHk |
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
[redis] | |
host = "192.168.1.218" | |
port = 6379 | |
password = "PASSWORD" | |
[excel] | |
workbook = "Daily.xlsx" |
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
#r "C:\Program Files\workspacer\workspacer.Shared.dll" | |
#r "C:\Program Files\workspacer\plugins\workspacer.Bar\workspacer.Bar.dll" | |
#r "C:\Program Files\workspacer\plugins\workspacer.ActionMenu\workspacer.ActionMenu.dll" | |
#r "C:\Program Files\workspacer\plugins\workspacer.FocusIndicator\workspacer.FocusIndicator.dll" | |
using System; | |
using workspacer; | |
using workspacer.Bar; | |
using workspacer.ActionMenu; | |
using workspacer.FocusIndicator; |
NewerOlder