This file contains 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 | |
import asyncio | |
import iterm2 | |
THEME_LIGHT = "Tango Light" | |
THEME_DARK = "Tango Dark" | |
class AutoSwitchTheme: |
This file contains 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 ( | |
"crypto/sha1" | |
"encoding/base64" | |
"fmt" | |
"log" | |
"github.com/spacemonkeygo/openssl" | |
"golang.org/x/crypto/pbkdf2" |
This file contains 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 S3-Get([string]$uri, [string]$bucket) { | |
$date = Get-Date -format "ddd, dd MMM yyyy HH:mm:ss zz00" | |
$content_type = "text/plain" | |
$request = "GET`n`n${content_type}`n${date}`n${bucket}" | |
# | |
# Bash equivalent is: | |
# $ echo -en ... | openssl sha1 -hmac ... -binary | base64 | |
# |
This file contains 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
# | |
# Description: Bash profile file for "GIT for Windows" to run ssh-agent | |
# automatically and use Windows Credential Manager. | |
# Author: Vincent Lauria <vincent@lauria.ch> | |
# Data: 20170330 | |
# Version: 0.2 | |
# | |
# Dependency: | |
# | |
# - GIT for Windows |