- This is quick and dirty and not terribly maintainable. But it's very useful for creating quick cards from the terminal. Requires familiarity with Trello and a basic understanding of bash.
- Log-in to Trello.
- Go to: https://trello.com/1/appKey/generate
- Make note of your key. Replace any mention of
YourTrelloKey
with this hash. - Create a token. Go to https://trello.com/1/authorize?key=YourTrelloKey&name=SimpleBASHScript&expiration=never&response_type=token&scope=read,write in your browser and follow directions.
- Make note of the token. Replace any mention of
YourTrelloToken
with this looong hash. - Pick a reasonable number of the most popular boards you use. Grab the URLs of those boards. At the same time, think of short, one-word, easy-to-remember names for each board (e.g., work, homeprojects, wedding).
- Grab the board IDs of the boards you chose. It'll be the ~8 character hash-like string in the URL. E.g., for https://trello.com/b/aWsGTrsD/work the ID is aWsGTrsD
- One by one, plug thos
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 bash | |
# Purpose : Grant/Revoke SSH access | |
# Author : Ky-Anh Huynh | |
# License : MIT | |
# Date : 2018-May-20 | |
_err() { | |
echo >&2 ":: $(date -u): ERR: ${FUNCNAME[1]:-$0}: $*" | |
return 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
root@admin2:/home/softethervpn/dockerfiles# git diff | |
diff --git a/copyables/build.sh b/copyables/build.sh | |
index 3b3a203..f188ee6 100644 | |
--- a/copyables/build.sh | |
+++ b/copyables/build.sh | |
@@ -7,7 +7,9 @@ yum -y update \ | |
&& yum -y groupinstall "Development Tools" \ | |
&& yum -y install readline-devel ncurses-devel openssl-devel iptables | |
-git clone --depth 1 https://github.com/SoftEtherVPN/SoftEtherVPN.git /usr/local/src/vpnserver |
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
#!/bin/bash | |
# Purpose: Test if a domain was registered | |
# Author: KyAnh <[email protected]> | |
# License: GPL v2 | |
# Home: http://viettug.org/wiki/fs/whoisvn | |
# Source: http://github.com/icy/whoisvn | |
# default suffixes | |
WHOISVN_SUFFIX=${WHOISVN_SUFFIX:-com net org info edu biz} |
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
# https://stackoverflow.com/questions/10712679/flatten-a-nested-json-object | |
# My Fixes | |
# | |
# Input: {"twitter":{"aliases":{"twitter_alias":{}}}} | |
# Old Ouput: {} | |
# New Input: twitter.aliases.twitter_alias: <EMPTY> | |
# | |
module Enumerable | |
def flatten_with_path(parent_prefix = nil) | |
res = {} |
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
#!/bin/bash | |
# | |
# AfterShot Pro startup script | |
# make symlinks to this script anywhere in your $PATH | |
# See also: http://forum.corel.com/EN/viewtopic.php?f=94&t=57338 | |
FindPath() | |
{ | |
if [ "`readlink "$0"`" = "" ]; then | |
pushd $(dirname "$0") >/dev/null |
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
#!/bin/bash | |
# | |
# AfterShot Pro startup script | |
# make symlinks to this script anywhere in your $PATH | |
# See also : http://forum.corel.com/EN/viewtopic.php?f=94&t=57338 | |
FindPath() | |
{ | |
if [ "`readlink "$0"`" = "" ]; then | |
pushd $(dirname "$0") >/dev/null |
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
#!/bin/bash | |
# Purpose : Wrapper for xfce4-screenshooter | |
# Author : Ky-Anh Huynh | |
# License : Public domain | |
# Date : 2017-Aug-23rd | |
# See also https://www.gtk.org/api/2.6/glib/glib-Miscellaneous-Utility-Functions.html#g-get-tmp-dir | |
export TMPDIR=$HOME/df/ss/ |
Use Bash
to expand the brace. If you don't like this,
you may look at more professional way at https://gist.github.com/ewoodh2o/3829405
This method invokes a system call to ask Bash to expand.
FIXME: This is not secure!!!
class String
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
#!/bin/bash | |
# Purpose: | |
# See how nginx loads/includes its configuration files | |
# Very useful to detect quickly where there errors come from. | |
# Author : Anh K. Huynh | |
# Date : 2015 Aug 14th | |
# License: MIT | |
# Notes : | |
# Some system has a different level. Here it's 3. |