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 python3 | |
| """ | |
| Extract magnet link from audiobookbay.lu pages. | |
| Usage: | |
| python3 extract-magnet.py <url> | |
| python3 extract-magnet.py "https://audiobookbay.lu/abss/dungeonj-crawler-carl-book-2-carls-doomsday-scenario-matt-dinniman/" | |
| Or make it executable: | |
| chmod +x extract-magnet.py |
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 json | |
| import sys | |
| def get_terraform_output(state_file_path, output_name): | |
| with open(state_file_path, 'r') as f: | |
| state = json.load(f) | |
| outputs = state.get('outputs', {}) | |
| output_value = outputs.get(output_name, {}).get('value', None) | |
Setup a kubernetes cluster to handle household usage
- ZWave USB controller
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
| curl -XPUT "https://10.0.2.15:9200/_xpack/watcher/watch/fat-apps-errors-prod" -d' | |
| { | |
| "trigger": { | |
| "schedule": { | |
| "daily": { | |
| "at": [ | |
| "07:00" | |
| ] | |
| } | |
| } |
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
| git config --global gpg.program "C:/Program Files (x86)/GNU/GnuPG/pub/gpg2.exe" |
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 ZipFiles( $zipfilename, $sourcedir ) | |
| { | |
| Add-Type -Assembly System.IO.Compression.FileSystem | |
| Add-Type -Assembly System.IO.Compression | |
| $archive = [System.IO.Compression.ZipFile]::Open($zipfilename, [System.IO.Compression.ZipArchiveMode]::Create); | |
| try | |
| { | |
| $files = [System.IO.Directory]::GetFiles($sourceDir, "*.*", [System.IO.SearchOption]::AllDirectories) |
https://github.com/SEEK-Jobs/pact-net https://docs.pact.io/documentation/provider_states.html https://docs.pact.io/documentation/ruby/provider_states.html https://docs.pact.io/documentation/provider_states.html https://docs.pact.io/documentation/golang/provider/states.html https://github.com/realestate-com-au/pact/wiki/Provider-states https://github.com/pact-foundation/pact-provider-verifier#api-with-provider-states
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 ( | |
| "fmt" | |
| "os" | |
| "strings" | |
| ) | |
| func main() { | |
| fmt.Println(os.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
| using System; | |
| using StructureMap; | |
| namespace ConsoleApplication1 | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| var container = new Container(_ => |
NewerOlder