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
| # | |
| # Prints info about Kasa plug electrical usage | |
| # | |
| # USAGE: | |
| # First, make a handy bash alias: | |
| # > alias kasa-plug='python3.10 kasa_plug.py' | |
| # | |
| # See all the plugs: | |
| # > kasa-plug | |
| # |
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
| # from: https://www.huibdijkstra.nl/how-to-set-up-a-osx-mojave-vm-in-vmware-fusion/ | |
| # modified for Big Sur | |
| # First, download Big Sur from the App Store. Don't actually install it. Then: | |
| hdiutil create -o /tmp/BigSur.cdr -size 30000m -layout SPUD -fs HFS+J | |
| hdiutil attach /tmp/BigSur.cdr.dmg -noverify -mountpoint /Volumes/install_build | |
| sudo "/Applications/Install macOS Big Sur.app/Contents/Resources/createinstallmedia" --volume /Volumes/install_build | |
| mv /tmp/BigSur.cdr.dmg ~/Desktop/InstallSystem.dmg | |
| hdiutil detach "/Volumes/Install macOS Big Sur" |
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 -exuo pipefail | |
| # | |
| # MODIFIED FROM: https://github.com/ssut/ffmpeg-on-apple-silicon | |
| # | |
| # WILL NEED THE USER TO ENTER ROOT PW | |
| sudo xcode-select -s /Applications/Xcode.app/Contents/Developer |
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
| cat x.json | jq ".[] | .cost" | tr -d '"' | awk '{ total += $1 } END { print total }' |
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
| from datetime import timedelta | |
| from exchangelib import DELEGATE, IMPERSONATION, Account, Credentials, ServiceAccount, \ | |
| EWSDateTime, EWSTimeZone, Configuration, NTLM, CalendarItem, Message, \ | |
| Mailbox, Attendee, Q, ExtendedProperty, FileAttachment, ItemAttachment, \ | |
| HTMLBody, Build, Version | |
| from nameparser import HumanName | |
| def parsename(str): | |
| name = HumanName(str) | |
| return '%s, %s' % (name.last.capitalize(), name.first.capitalize()) |
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
| tshark -i any -f "dst port 27017" -T fields -e ip.dst -e mongo.full_collection_name -e mongo.database_name |
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
| var system = require('system'); | |
| var casper = require('casper').create({ | |
| verbose: false, | |
| logLevel: 'info', | |
| userAgent: 'Mozilla/5.0 poi poi poi (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22', | |
| viewportSize: { width: 1200, height: 600 }, | |
| waitTimeout: 20000, | |
| pageSettings: {} | |
| }); |
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
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "os" | |
| "github.com/google/go-github/github" | |
| "golang.org/x/oauth2" | |
| ) |
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
| defaults write NSGlobalDomain KeyRepeat -int 0.05 | |
| defaults write NSGlobalDomain InitialKeyRepeat -int 12 |
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 | |
| # | |
| # README | |
| # On OSX please do first: | |
| # brew install coreutils jq | |
| # export GITHUB_ORG="fooproject" | |
| # export GITHUB_REPOS="foo bar baz" | |
| # export GITHUB_USER="your username" | |
| # export GITHUB_PASS="your password" |
NewerOlder