- 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 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
1/ Switch to root account and make sure that I am using sytem Ruby | |
$ rvm info | |
1.8: | |
system: | |
uname: "Linux icy 2.6.39-ARCH #1 SMP PREEMPT Mon Jun 27 22:01:13 CEST 2011 i686 Genuine Intel(R) CPU U2700 @ 1.30GHz GenuineIntel GNU/Linux" | |
bash: "/bin/bash => GNU bash, version 4.2.10(2)-release (i686-pc-linux-gnu)" | |
zsh: "/bin/zsh => zsh 4.3.12 (i686-pc-linux-gnu)" | |
rvm: | |
version: "rvm 1.5.2 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/]" |
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 | |
# 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. |
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 | |
# 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/ |
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 | |
# | |
# 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 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 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 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 <kyanh@viettug.org> | |
# 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 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 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 |
OlderNewer