Skip to content

Instantly share code, notes, and snippets.

View codycodes's full-sized avatar

Cody Gagnon codycodes

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>"
},
@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 May 3, 2024 00:46
Hyperlinks in Terminal Emulators
@rveitch
rveitch / chip.md
Last active August 10, 2020 20:47
CHIP SSH & Commands
@conorbone
conorbone / .bashrc
Last active March 11, 2017 21:55
.bashrc
# .bashrc
export PS1="\[\e[31m\][\[\e[m\]\[\e[31m\]\u\[\e[m\]@\[\e[31m\]\h\[\e[m\]\[\e[31m\]]\[\e[m\]:\[\e[36m\][\[\e[m\]\[\e[36m\]\w\[\e[m\]\[\e[36m\]]\[\e[m\]\[\e[31m\]\\$\[\e[m\] "
# i like to talk to cows
fortune -c | cowthink -f $(find /usr/share/cows -type f | shuf -n 1)
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
echo "Hardware Information:"
uptime
free -m
# SSH sesions should be 80 wide :3