Skip to content

Instantly share code, notes, and snippets.

View codycodes's full-sized avatar
😀

Cody Gagnon codycodes

😀
  • Oshkosh Corporation
  • Seattle, WA
  • 19:47 (UTC -07:00)
View GitHub Profile
@rex
rex / copy-all-safari-urls.applescript
Created August 15, 2018 15:46
Applescript snippet to copy all URLs from all open tabs in front-most Safari window
------------------------------------------------------------------------------
# Auth: Christopher Stone
# dCre: 2017/11/15 00:00
# dMod: 2017/11/15 00:03
# Appl: Safari
# Task: Put URLs of all tabs of the front window on the clipboard.
# Libs: None
# Osax: None
# Tags: @Applescript, @Script, @Safari, @Put, @URLs, @All, @Tabs, @Front, @Window, @Clipboard
------------------------------------------------------------------------------
@thefloodshark
thefloodshark / .js
Created April 2, 2018 07:36
Tampermonkey Userscript - Website Auto-Refresh Timer
// ==UserScript==
// @name Auto-Refresh
// @include https://www.example.com
// ==/UserScript==
//--- https://stackoverflow.com/questions/25484978/i-want-a-simple-greasemonkey-script-to-reload-the-page-every-minute
setTimeout(function(){ location.reload(); }, 20*1000);
@jldeen
jldeen / kube-deploy-sp.parameters.json
Created February 16, 2018 21:19
AKS Service Principal Parameters
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"dnsNamePrefix": {
"value": "<your value>"
},
"sshRSAPublicKey": {
"value": "<your value>"
},
@troydai
troydai / purpose-az-alias.md
Last active September 17, 2024 16:01
Purpose: Azure CLI alias

What is az alias

The az alias is an extension point allows user to define their own command alias based on existing commands. The alias will enable scenarios which improve the usability of azure cli.

The definition of the aliases could be a configuration file in a uesr friendly format, like yaml or ini

An inspiration of the alias system is git alias

Features

@davidjb
davidjb / shibboleth-debug.md
Created October 27, 2017 01:41
Shibboleth debugging steps

Shibboleth Debugging

Throught this whole process, if you're unsure whether a Shibboleth login session worked (such as if it looks like your application isn't getting attributes etc), you can test by accessing /Shibboleth.sso/Session after going a /Shibboleth.sso/Login cycle and it'll list various details, or state:

A valid session was not found

if it didn't work or you haven't logged in yet.

@joduplessis
joduplessis / cookie-typescript-utils.ts
Created September 12, 2017 06:50
Setting, deleting and retrieving cookies in Typescript.
@ruucm-working
ruucm-working / Instruction.md
Last active August 17, 2017 20:28
iTerm2 entire window black Setting (Nightly Version)

1. Get Nightly Version of iTerm 2 (Link)

2. Follow this instruction to get rid of line under the title bar (Link)

3. Change colors at your [Preference - Profiles - Colors] or add themes

4. Change iTerm 2 Application icon using 'iterm-icon' file and follow this instruction (Link)

@kaushalp
kaushalp / httpsRedirectRule.xml
Created May 8, 2017 14:26
URL Rewrite rule to redirect from HTTP to HTTPS
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="HTTP/S to HTTPS Redirect" enabled="true" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAny">
<add input="{SERVER_PORT_SECURE}" pattern="^0$" />
</conditions>
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active April 12, 2025 06:26
Hyperlinks in Terminal Emulators
@rveitch
rveitch / chip.md
Last active February 1, 2025 00:35
CHIP SSH & Commands