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
// Definition | |
type identifier struct { | |
field1 type1 | |
field2 type2 | |
... | |
} | |
// Example struct defintion for use below | |
type struct1 struct { // struct definition | |
i1 int |
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
aws s3 cp s3://<bucket_name> <local_folder>/ --recursive --exclude "*" --include "*201906*json" --include "*201906*pColdStart*" --exclude "*baseline*" --exclude "*candidate*" |
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
{ | |
"$jason": { | |
"head": { | |
"title": "{ ˃̵̑ᴥ˂̵̑}", | |
"actions": { | |
"$foreground": { | |
"type": "$reload" | |
} | |
} | |
}, |
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
# Pulling a git repository as a git module into your project | |
# "master" is the branch of the remote repository to use | |
git submodule add -b master https://github.com/Komodo/trackchanges.git src/modules/trackchanges | |
# get status recursively | |
git submodule status --recursive | |
# Iterate through all git submodule to add and comment and commit |
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
-- Redshift - Query usage -- | |
select | |
sum(capacity)/1024 as capacity_gbytes, | |
sum(used)/1024 as used_gbytes, | |
(sum(capacity) - sum(used))/1024 as free_gbytes | |
from | |
stv_partitions where part_begin=0; | |
-- usage by tables -- | |
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
*.DS_Store | |
*.pyc |
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
$ brew install xz | |
$ xz -d to-extract.xz |
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
brew install imagemagick@6 | |
brew link --force imagemagick@6 | |
bundle install rmagick |
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
-colors 4 | |
-dbg -1 | |
-gser 2 | |
-fanmin 55 | |
-tt 70 | |
-ttli 75 | |
-r 1 | |
-erate 1 | |
-estale 1 | |
-etha 0 |
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
############################################################################# | |
# Generate Dict from a List of Dict | |
ticker = [ | |
{ | |
'symbol': 'ABC', | |
'price': 100.0 | |
}, | |
{ | |
'symbol': 'CDE', | |
'price': 105.0 |
NewerOlder