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
| /vendor/ |
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/python3 | |
| from plexapi.myplex import MyPlexAccount | |
| import sys | |
| import json | |
| import requests | |
| import time | |
| # need time for ngrok to start up before requesting data | |
| print("Waiting 15 seconds for ngrok to start up") |
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
| <?php | |
| const STREAM_OPEN_FOR_INCLUDE = 128; | |
| final class HardCoreDebugLogger | |
| { | |
| public static function register(string $output = 'php://stdout') | |
| { | |
| register_tick_function(function () use ($output) { | |
| $bt = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 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
| tell application "Finder" | |
| activate | |
| -- Get current user's name | |
| tell application "System Events" | |
| set currentUser to (name of current user) | |
| end tell | |
| -- for cleanliness | |
| close every 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
| property AIRDROP_FOLDER : "Path:to:AirDrop:Folder:in:Alias:format" | |
| property QUARANTINE_KEY : "59" | |
| property GET_QUARANTINE_COMMAND_START : "ls -l -@ '" | |
| property GET_QUARANTINE_COMMAND_END : "' | tr '\\n' ' ' | sed 's/.*com\\.apple\\.quarantine\\s*\\(\\d*\\)/ \\1/' | awk '{$1=$1};1'" | |
| on adding folder items to this_folder after receiving added_items | |
| repeat with i from 1 to length of added_items | |
| set current_item to item i of added_items | |
| set quarantine_type to getQuarantineType(POSIX path of current_item) |
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/sh | |
| ######################################################################################## | |
| # I do not need to use the ngrok subdomains... | |
| # start ngrok for my local box (vagrant homestead) in th background | |
| # get the cname from command line for the ngrok alias | |
| # update my subdomain cname to point at new ngrok name | |
| # use it!!! | |
| ######################################################################################## | |
| # requires ngrok and jq installed. |
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
| # not an exhaustive list | |
| nsurlsessiond "icloud sync" | |
| fseventsd "macos file system events" | |
| WindowServer "macos windows" | |
| DisplayLinkManager "macos driver" | |
| configd "macos dynamic configuration" | |
| displaypolicyd "macos process" | |
| CommCenter "macos keychain" | |
| kernel_task "macos kernel" |
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
| # Mailhog | |
| MAIL_MAILER=smtp | |
| MAIL_HOST=0.0.0.0 | |
| MAIL_PORT=1025 | |
| MAIL_USERNAME=null | |
| MAIL_PASSWORD=null | |
| MAIL_ENCRYPTION=null |
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/expect -f | |
| # Filename: beanstalk-purge | |
| set timeout 1 | |
| spawn telnet [lindex $argv 0] [lindex $argv 1] | |
| sleep 1 | |
| send "use [lindex $argv 2]\n" | |
| expect "USING" | |
| for {set i 1} {$i < [lindex $argv 3]} { incr i 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
| { | |
| "Messages": [ | |
| { | |
| "Body": "{\n \"Type\" : \"Notification\",\n \"MessageId\" : \"abcdef01-2345-6789-0abc-defg123456783\",\n \"TopicArn\" : \"arn:aws:sns:eu-west-1:123456789012:ticketless-ticketPurchased\",\n \"Message\" : \"{\\\"ticket\\\":{\\\"id\\\":\\\"abcdef01-2345-6789-0abc-defg123456784\\\",\\\"createdAt\\\":1509980177897,\\\"name\\\":\\\"Alex Smith\\\",\\\"email\\\":\\\"[email protected]\\\",\\\"gig\\\":\\\"nirvana-cork-1991\\\"},\\\"gig\\\":{\\\"capacity\\\":2300,\\\"collectionPoint\\\":\\\"29 South Main Street, Centre, Cork City, Co. Cork, Ireland\\\",\\\"collectionTime\\\":\\\"13:00\\\",\\\"slug\\\":\\\"nirvana-cork-1991\\\",\\\"originalDate\\\":\\\"1991-08-20\\\",\\\"venue\\\":\\\"Cavern Club\\\",\\\"bandName\\\":\\\"Nirvana\\\",\\\"city\\\":\\\"Cork\\\",\\\"date\\\":\\\"2019-06-21\\\",\\\"image\\\":\\\"nirvana.jpg\\\",\\\"year\\\":\\\"1991\\\",\\\"collectionPointMap\\\":\\\"map-nirvana-cork-1991.png\\\",\\\"description\\\":\\\"Lorem Ipsum\\\",\\\"price\\\":\\\"1666.60\\\"}}\",\n \" |