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
| // macOS | |
| nativefier https://canvadev.atlassian.net/jira/software/c/projects/RMV/boards/1175 --icon ~/Pictures/icons/jira.png --name "Jira" --single-instance --internal-urls ".*?(canvadev\.atlassian\.net|www.google.com\/a\/canva.com\/acs).*?" --inject ~/Documents/jira.css --title-bar-style="hiddenInset" | |
| // Windows | |
| nativefier https://canvadev.atlassian.net/jira/software/c/projects/RMV/boards/1175 --icon ~/Pictures/icons/jira.png --name "Jira" --single-instance --internal-urls ".*?(canvadev\.atlassian\.net|www.google.com\/a\/canva.com\/acs).*?" --inject ~/Documents/jira.css --platform="windows" | |
| // Linux | |
| nativefier https://canvadev.atlassian.net/jira/software/c/projects/RMV/boards/1175 --icon ~/Pictures/icons/jira.png --name "Jira" --single-instance --internal-urls ".*?(canvadev\.atlassian\.net|www.google.com\/a\/canva.com\/acs).*?" --inject ~/Documents/jira.css --platform="linux" |
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
| gem install pg -v '1.2.3' -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.6/bin/pg_config |
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
| ffmpeg $(youtube-dl -g '$YOUTUBE_URL' | sed "s/.*/-ss 00:10 -i &/") -t 01:00 -c copy out.mkv |
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
| db.createUser( | |
| { | |
| user: 'mongo', | |
| pwd: '$PASSWORD', | |
| roles: [ { role: 'root', db: 'admin' } ] | |
| } | |
| ); |
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
| SELECT 'SELECT SETVAL(' || | |
| quote_literal(quote_ident(PGT.schemaname) || '.' || quote_ident(S.relname)) || | |
| ', COALESCE(MAX(' ||quote_ident(C.attname)|| '), 1) ) FROM ' || | |
| quote_ident(PGT.schemaname)|| '.'||quote_ident(T.relname)|| ';' | |
| FROM pg_class AS S, | |
| pg_depend AS D, | |
| pg_class AS T, | |
| pg_attribute AS C, | |
| pg_tables AS PGT | |
| WHERE S.relkind = 'S' |