CLICK ME
yes, even hidden code blocks!
print("hello world!")| // This file was initially generated by Windows Terminal 1.0.1401.0 | |
| // It should still be usable in newer versions, but newer versions might have additional | |
| // settings, help text, or changes that you will not see unless you clear this file | |
| // and let us generate a new one for you. | |
| // To view the default settings, hold "alt" while clicking on the "Settings" button. | |
| // For documentation on these settings, see: https://aka.ms/terminal-documentation | |
| { | |
| "$schema": "https://aka.ms/terminal-profiles-schema", |
| #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
| ; #Warn ; Enable warnings to assist with detecting common errors. | |
| SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
| SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
| F12::ToggleTerminal() | |
| ShowAndPositionTerminal() | |
| { | |
| WinShow ahk_class CASCADIA_HOSTING_WINDOW_CLASS |
| #!/bin/bash | |
| set -uxo pipefail | |
| # DISK_NAME = Name of the disk in terraform | |
| # DEVICE_NAME = When $DISK_NAME is mounted in the compute instance at `/dev/` | |
| MOUNT_DIR=/mnt/disks/persistent_storage | |
| # Check if entry exists in fstab | |
| grep -q "$MOUNT_DIR" /etc/fstab |
| #!/bin/bash | |
| # ============================================================================= | |
| # Author: Chu-Siang Lai / chusiang (at) drx.tw | |
| # Filename: teams-chat-post-for-workflows.sh | |
| # Modified: 2024-07-22 11:44 (UTC+08:00) | |
| # Description: Post a message to Microsoft Teams via "Post to a chat when a webhook request is received" workflows. | |
| # Reference: | |
| # | |
| # - https://gist.github.com/chusiang/895f6406fbf9285c58ad0a3ace13d025 | |
| # - https://devblogs.microsoft.com/microsoft365dev/retirement-of-office-365-connectors-within-microsoft-teams/ |
| # You Should be able to Copy and Paste this into a powershell terminal and it should just work. | |
| # To end the loop you have to kill the powershell terminal. ctrl-c wont work :/ | |
| # Http Server | |
| $http = [System.Net.HttpListener]::new() | |
| # Hostname and port to listen on | |
| $http.Prefixes.Add("http://localhost:8080/") |
| // Navigate to https://github.com/watching and then run: | |
| // Taken from: https://stackoverflow.com/questions/11043374/how-to-unwatch-multiple-repos-easily-on-github | |
| Array.prototype | |
| .slice.apply(document.querySelectorAll('.js-subscription-row')) | |
| .forEach(el => { const org = el.querySelector('a[href^="/YOUR_ORG"]'); if (org) el.querySelector('button').click()}); |
| func openbrowser(url string) { | |
| var err error | |
| switch runtime.GOOS { | |
| case "linux": | |
| err = exec.Command("xdg-open", url).Start() | |
| case "windows": | |
| err = exec.Command("rundll32", "url.dll,FileProtocolHandler", url).Start() | |
| case "darwin": | |
| err = exec.Command("open", url).Start() |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| # Start by checking if they fixed it upstream: | |
| brew update | |
| brew upgrade reattach-to-user-namespace | |
| # If it says it's already installed, they haven't fixed it upstream. So do this: | |
| # Edit the recipe: | |
| brew edit reattach-to-user-namespace |