wav2mp3() {
ffmpeg -i "$1" -vn -ar 44100 -ac 2 -b:a 192k "${1%.wav}.mp3"
}
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 -eu | |
PROFILE="your-aws-cli-profile" | |
STACK_NAME="the-cloduformation-stack-name" | |
PARAMETER_NAME="the-parameter-name" | |
aws ssm get-parameter --profile "$PROFILE" --name "$PARAMETER_NAME" > current-parameter.json | |
CURRENT_TIMESTAMP=$(cat current-parameter.json | python3 -c 'import sys,json,datetime; x = json.load(sys.stdin)["Parameter"]["LastModifiedDate"]; print(int(datetime.datetime.fromisoformat(x).timestamp() * 1000))') | |
CURRENT_VERSION=$(cat current-parameter.json | python3 -c 'import sys,json; x = json.load(sys.stdin)["Parameter"]["Version"]; print(x)') |
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
version: "3" | |
services: | |
phpmyadmin: | |
image: "phpmyadmin:5" | |
ports: | |
- "${FORWARD_PHPMYADMIN_PORT:-8888}:80" | |
environment: | |
PMA_HOST: "mysql" | |
PMA_USER: "${DB_USERNAME}" | |
PMA_PASSWORD: "${DB_PASSWORD}" |
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 -eu | |
NOME=$(basename $PWD)-$(date '+%Y%m%d.%H%M').zip | |
zip -r \ | |
-q \ | |
-9 \ | |
$NOME \ | |
. \ | |
-x '.git/*' \ |
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
{ | |
"workbench.editor.highlightModifiedTabs": true, | |
"workbench.colorCustomizations": { | |
"tab.activeModifiedBorder": "#ffff00", | |
"tab.inactiveModifiedBorder": "#ffff00", | |
"tab.unfocusedActiveModifiedBorder": "#ffff0080", | |
"tab.unfocusedInactiveModifiedBorder": "#ffff00" | |
} | |
} |
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
public class Fibonacci { | |
public static void main(String[] ₳rgs) { | |
𝓯𝓲𝓫𝓸𝓷𝓪𝓬𝓬𝓲(5); | |
} | |
private static void 𝓯𝓲𝓫𝓸𝓷𝓪𝓬𝓬𝓲(int Ʌ) { | |
int ϫ = 1; | |
int ю = ϫ; | |
for (int ¤ = 0; ¤ < Ʌ; ¤++) { | |
int ო = ϫ + ю; |
Java type | MAX_VALUE | Digits/Scale |
---|---|---|
int | 2147483647 | 10 |
long | 9223372036854775807 | 19 |
Language | Year | Month | Day | Hour | Minute | Second |
---|---|---|---|---|---|---|
Result | 2017 | 01 | 01 | 14 | 52 | 03 |
C# DateTime | yyyy | MM | dd | HH | mm | ss |
Java SimpleDateFormat | yyyy | MM | dd | HH | mm | ss |
JavaScript Moment.js | YYYY | MM | DD | HH | mm | ss |
Oracle TO_CHAR | YYYY | MM | DD | HH24 | MI | SS |
PHP Carbon | Y | m | d | H | i | s |
PHP date | Y | m | d | H | i | s |
PHP DateTime | Y | m | d | H | i | s |