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 bash | |
| # VMware Fusion Latest Version Downloader, Installer, and Updater | |
| # This script automatically finds, downloads, and optionally installs the highest version available | |
| # | |
| # Inspired by this gist: https://gist.github.com/jetfir3/6b28fd279bbcadbae70980bd711a844f | |
| # | |
| # Usage: $0 [-y] [-i] [-d] [-f] [-t <dmg_path>] | |
| # -y: Skip download confirmation prompt | |
| # -i: Automatically install after download (implies -y) |
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
| { | |
| "Servers": [ | |
| { | |
| "Version": "mdm-byod", | |
| "BaseURL": "https://enrollment.manage.microsoft.com/enrollmentserver/discovery.svc" | |
| } | |
| ] | |
| } |
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
| p = Calc-MyPatience() | |
| s = Get-YourBullshit() | |
| if (p-s <= 0): | |
| print('Take a Break') | |
| -- OR -- | |
| import mySanity | |
| import you |
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
| ! name: Vilsack Goggle | |
| ! description: remove social media, boost social content | |
| ! public: true | |
| ! author: John Vilsack | |
| ! avatar: #9244e0 | |
| $discard | |
| $boost=1,site=reddit.com | |
| $boost=1,site=www.reddit.com | |
| $boost=1,site=old.reddit.com |
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
| 1 '// Beep to confirm active //' | |
| 5 SOUND 500,10 | |
| 6 SOUND 500,10 | |
| 50 '// Open Console Screen //' | |
| 55 OPEN "CONSOLE:" FOR OUTPUT AS 50 | |
| 60 PRINT# 50, "SCAN UPC NOW" | |
| 100 '// USB SCANNER //' | |
| 105 OPEN "USBHOST:" FOR INPUT AS 100 |
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
| # BTW, I use Arch | |
| setfont ter-132n | |
| Wifi (wlan0): | |
| - iwctl | |
| - station wlan0 connect <ssid> | |
| - exit | |
| - ping google.com | |
| - pacman -Syy | |
| - pacman -S reflector | |
| - reflector --verbose -l 10 -f 5 -c US -p https --save /etc/pacman.d/mirrorlist |
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
| $TIM = Get-CimInstance Win32_LogicalDisk -Filter "DeviceID='C:'" | Select-Object -ExpandProperty Size | |
| $patience = Get-CimInstance Win32_LogicalDisk -Filter "DeviceID='C:'" | Select-Object -ExpandProperty FreeSpace | |
| $stress = ($TIM - $patience) | |
| if (($stress / $TIM)*100) -gt 50) {Write-Host "Take a Break"} | |
| # 1. $TIM is the size of C:. It never changes, so it is a constant and in all caps | |
| # 2. $patience is the FreeSpace left. It changes and is all lowercase because it is variable | |
| # 3. $stress is the Used Space. This is the Total Disk minus whatever is free. | |
| # 4. $stress divided by TIM then multiplied by 100 tells you a percentage of how much total stress you are dealing with | |
| # 5. If the percentage of stress is greater than 50, write "Take a Break" to the window. |
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
| function getThreadsByLabel(label) { | |
| const threads = GmailApp.getUserLabelByName(label).getThreads(); | |
| var threadList = []; | |
| for (i = 0; i < threads.length; i++) { | |
| threadList.push(threads[i].getId()); | |
| } | |
| delete threads; | |
| return threadList; |
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
| 1 PRINT "START OF PROGRAM" | |
| 2 SOUND 500,10 | |
| 3 SOUND 500,10 | |
| 50 'OPEN SCREEN' | |
| 51 OPEN "CONSOLE:" FOR OUTPUT AS 50 | |
| 52 PRINT# 50, "SCAN BARCODE NOW" | |
| 100 'OPEN SCANNER' | |
| 105 OPEN "USBHOST:" FOR INPUT AS 100 | |
| 110 RAWSCAN$=INPUT$(12,100) | |
| 115 UPC$=LEFT$(RAWSCAN$,11) |
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
| // This script runs every time a cell is changed | |
| function onEdit(e) { | |
| var thisSheet = SpreadsheetApp.getActiveSheet(); | |
| var editedCell = e.range.getA1Notation(); | |
| var editedRow = e.range.getRow(); | |
| var editedCol = e.range.getColumn(); | |
| var editedA1Col = columnToLetter(editedCol); | |
| // @@ DEBUG | |
| thisSheet.getRange('I10').setValue(editedCell); |
NewerOlder