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
#!/bin/bash | |
if ! command -v gcloud &> /dev/null | |
then | |
echo "gcloud could not be found. Please install the Google Cloud SDK." | |
exit 1 | |
fi | |
if ! command -v kubectl &> /dev/null | |
then |
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
DEFAULT_USER="$(whoami)" | |
export GOENV_ROOT="$HOME/.goenv" | |
export PATH="$GOENV_ROOT/bin:$PATH" | |
eval "$(goenv init -)" | |
export PATH="$GOROOT/bin:$PATH" | |
export PATH="$PATH:$GOPATH/bin" | |
# Aliases |
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
<code_scheme name="Clutch code style" version="173"> | |
<option name="AUTODETECT_INDENTS" value="false" /> | |
<option name="OTHER_INDENT_OPTIONS"> | |
<value> | |
<option name="INDENT_SIZE" value="2" /> | |
<option name="TAB_SIZE" value="2" /> | |
</value> | |
</option> | |
<option name="FORMATTER_TAGS_ENABLED" value="true" /> | |
<DB2CodeStyleSettings version="5"> |
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
const data = [{ "af-ZA": "Afrikaans (South Africa)" }, | |
{ "en-NR": "English (Nauru)" }, | |
{ "fr-RE": "French (Réunion)" }, | |
{ "ar-AE": "Arabic (United Arab Emirates)" }, | |
{ "en-NU": "English (Niue)" }, | |
{ "fr-RW": "French (Rwanda)" }, | |
{ "ar-AR": "Arabic (Arabic)" }, | |
{ "en-NZ": "English (New Zealand)" }, | |
{ "fr-SC": "French (Seychelles)" }, | |
{ "ar-BH": "Arabic (Bahrain)" }, |
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
{ | |
"global": { | |
"ask_for_confirmation_before_quitting": true, | |
"check_for_updates_on_startup": true, | |
"show_in_menu_bar": true, | |
"show_profile_name_in_menu_bar": false, | |
"unsafe_ui": false | |
}, | |
"profiles": [ | |
{ |
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
--- | |
- name: install syntropy agent | |
hosts: all | |
# tasks file for syntropy-agent | |
tasks: | |
- name: pull an image | |
docker_image: | |
name: syntropynet/agent:stable | |
- name: Stop and remove old container |
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
// User keybindings.json and use this https://marketplace.visualstudio.com/items?itemName=smcpeak.default-keys-windows | |
[ | |
{ | |
"key": "ctrl+shift+p", | |
"command": "workbench.action.quickOpenNavigatePreviousInFilePicker", | |
"when": "inFilesPicker && inQuickOpen" | |
}, | |
{ | |
"key": "shift+cmd+p", | |
"command": "-workbench.action.quickOpenNavigatePreviousInFilePicker", |
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
server { | |
listen 80; | |
server_name localhost; | |
port_in_redirect off; | |
autoindex on; | |
location / { | |
root /spa; | |
index index.html index.htm; | |
# kill cache |
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
- Setup Spotlight to open with Option/Alt + Space | |
- Setup Switch Input to open with Command + Space | |
- Setup Karabiner and use typical PC keymap | |
- Make From Key -> Fn / To Key -> Left Ctrl | |
- Install smcpeak Windows Keymap in Vscode |
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 | |
# Simple script to delete files older than 3 months. | |
# Usage: ./clean.py <path-of-dir-to-clean> | |
import os | |
import sys | |
import re | |
import datetime | |
from datetime import datetime as dt |
NewerOlder