Skip to content

Instantly share code, notes, and snippets.

View icy's full-sized avatar
🐓
Available

Ky-Anh Huynh icy

🐓
Available
View GitHub Profile
@icy
icy / pi.ini
Last active December 1, 2022 16:27
pi.ini
tunnel.enabled = true
@icy
icy / git.config.ini
Created October 9, 2021 12:57
git.config.ini
# Purpose: Sample configuration for git client
# Author : Anh K. Huynh
# License: Fair license
# Date : Somedays (MLTR)
[user]
name = Foo
email = bar@example.net
#signingkey = FFFFFFFF
@icy
icy / pacapt-pr-210-collapsed.png
Last active September 30, 2021 17:49
screenshots.md
pacapt-pr-210-collapsed.png
@icy
icy / kubectl-shortcuts.sh
Created September 24, 2021 15:22 — forked from tamas-molnar/kubectl-shortcuts.sh
aliases and shortcuts for kubectl
alias kc='kubectl'
alias kclf='kubectl logs --tail=200 -f'
alias kcgs='kubectl get service -o wide'
alias kcgd='kubectl get deployment -o wide'
alias kcgp='kubectl get pod -o wide'
alias kcgn='kubectl get node -o wide'
alias kcdp='kubectl describe pod'
alias kcds='kubectl describe service'
alias kcdd='kubectl describe deployment'
alias kcdf='kubectl delete -f'
provider "openstack" {
user_name = "calvinh"
tenant_name = "canonical_30039"
tenant_id = "6a74f3b9a17847588d9fdee581cbb01a"
password = <password>
auth_url = "https://api-jed1-vdc.bluvalt.com/identity/v3"
region = "RegionOne"
user_domain_name ="jed1"
project_domain_name = "jed1"
}
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
@icy
icy / btsync-keygen
Created January 10, 2021 09:59 — forked from sciurius/btsync-keygen
Perl script to generate secrets and config data for BTsync
#!/usr/bin/perl -w
# Key generation for BTsync.
# Author : Johan Vromans
# Created On : Sun Apr 27 20:31:57 2014
# Last Modified By: Johan Vromans
# Last Modified On: Fri May 2 15:37:24 2014
# Update Count : 47
# Status : Unknown, Use with caution!
@icy
icy / btsync-secret
Created January 10, 2021 09:58 — forked from anonymous/btsync-secret
btsync-secret - A Bittorrent Sync Secret Generator
#!/bin/sh
#/ Usage: btsync-secret [option]...
#/ A Bittorrent Sync Secret Generator
set -e
h_flag=false
v_flag=false
e_flag=false
n_flag=false
c_flag=false
@icy
icy / Screenshot_2020-12-19_13-37-41.png
Last active December 24, 2020 13:06
my-crazy-xorg.txt
Screenshot_2020-12-19_13-37-41.png
@icy
icy / wait_for_es.sh
Last active November 26, 2020 11:21
wait-for-es
```
# Purpose : Wait until es is green
# Author : Ky-Anh Huynh
# License : Public domain
#
# Usage example
#
# RETRIES=10 wait_for_es http://hostname:port
#
wait_for_es() {