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 aws-console --description 'start a new chrome browser logged in to aws' | |
# set to yes to always start in a new window | |
set -l NEW_WINDOW no | |
set -l profile "$argv[1]" | |
if test -z "$profile" | |
echo "Profile is a required argument" >&2 | |
return 1 | |
end |
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
local wezterm = require 'wezterm' | |
local mux = wezterm.mux | |
wezterm.on('gui-startup', function(cmd) | |
local tab, pane, window = mux.spawn_window(cmd or {}) | |
window:gui_window():maximize() | |
end) | |
return { | |
font = wezterm.font('JetBrainsMono Nerd Font Mono'), |
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
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*- | |
;; Place your private configuration here! Remember, you do not need to run 'doom | |
;; sync' after modifying this file! | |
;; Some functionality uses this to identify you, e.g. GPG configuration, email | |
;; clients, file templates and snippets. | |
(setq user-full-name "Shane Mook" | |
user-mail-address "[email protected]") |
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
func invertColours() { | |
fmt.Print("\033[7m") | |
} | |
func resetStyle() { | |
fmt.Print("\033[0m") | |
} | |
func moveUp() { | |
fmt.Print("\033[1A") |
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 fish | |
# vim: set ft=sh: | |
# Pure | |
# by Rafael Rinaldi | |
# https://github.com/rafaelrinaldi/pure | |
# MIT License | |
# Whether or not is a fresh session | |
set -g fresh_session 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
package main | |
import ( | |
"encoding/json" | |
"log" | |
"os" | |
"os/exec" | |
"github.com/docker/containerd/osutils" | |
) |
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
# Usage: IE={box} vagrant up | |
# | |
# Eg. IE=XPIE6 vagrant up | |
boxes = { | |
"XPIE6" => "http://aka.ms/vagrant-xp-ie6", | |
"XPIE8" => "http://aka.ms/vagrant-xp-ie8", | |
"VistaIE7" => "http://aka.ms/vagrant-vista-ie7", | |
"Win7IE8" => "http://aka.ms/vagrant-win7-ie8", | |
"Win7IE9" => "http://aka.ms/vagrant-win7-ie9", |
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
# A demonstration of the CurveCP handshake protocol. This protocol has many | |
# favorable security properties described at http://curvecp.org. | |
# | |
# In addition to its security advantages, it has the following favorable properties: | |
# * Needs only 2 messages (1 from client, 1 from server) before application | |
# messages can be exchanged (3 before the server can send application messages) | |
# * Does not require the server to keep protocol state between handshake messages. | |
# | |
# An overview of the protocol: | |
# |
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
require 'active_support/concern' | |
module Model | |
ChangeEvent = Struct.new(:event, :condition) | |
class ChangeTracker | |
def initialize | |
@attributes = {} | |
end |
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" | |
czmq "github.com/zeromq/goczmq" | |
) | |
func main() { | |
serverCert, _ := czmq.NewCertFromFile("/etc/curve.d/example_curve_server_cert") |
NewerOlder