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 | |
| function switch_files { | |
| mv $1.png $1.tmp.png | |
| mv $1-inverse.png $1.png | |
| mv $1.tmp.png $1-inverse.png | |
| mv $1@2x.png $1@2x.tmp.png | |
| mv $1[email protected] $1@2x.png | |
| mv $1@2x.tmp.png $1[email protected] | |
| } |
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
| # Source: http://www.beginninglinux.com/home/data-compression/unrar-all-files-from-multiple-subdirectories-at-once | |
| # simple: unrar e -r *.rar | |
| unrar e -r -o- /home/username/source/directory/*.rar /home/username/copy/extracted/to | |
| # Delete after extraction | |
| find ./ -name "*.r*" -delete |
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
| # Source: http://sysadmin.compxtreme.ro/segmented-file-transfer-over-ssh/ | |
| lftp sftp://user[:password]@host.ro[:port] -e "mirror -c --parallel=5 --use-pget-n=5 \"/path/to/folder/\"" |
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
| /* ================================================= | |
| Trello Ansel | |
| --- | |
| Inspired by Ansel Adams & based on Trello Clear | |
| by angelon (https://userstyles.org/users/202251) | |
| ================================================= */ | |
| @-moz-document domain('trello.com'), url-prefix('https://trello.com/b') { | |
| body { | |
| background-color: #fff !important; |
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
| body { | |
| background: #f8f8f7 !important; | |
| font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif !important; | |
| font-weight: 300 !important; | |
| } | |
| h3 {font-weight:300 !important} | |
| .header-woof {display:none !important} |
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
| #header { | |
| background: #2B2B2B !important; | |
| padding: 10px !important; | |
| } | |
| .header-user { | |
| top: 10px !important; | |
| right: 5px !important; | |
| } |
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
| html,body,input,select,textarea,button { | |
| font:13px 'Tahoma',sans-serif!important; | |
| line-height:17px!important; | |
| font-weight:300!important; | |
| } | |
| .list-card a { | |
| color:#444!important; | |
| } |
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
| /* | |
| * Subtler, clearer colors and edges | |
| * Emphsasize first two lists | |
| * -- can be modified in CSS to include fewer or more lists | |
| */ | |
| * { | |
| border-radius: 0 !important; | |
| } |
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
| tar cvf - paths-to-archive | pigz -9 -p 32 > archive.tar.gz |
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 i.*, a.* | |
| FROM inet_obdg_items i | |
| JOIN inet_obdg_actions a ON a.item_id = i.id | |
| JOIN ( | |
| SELECT derived_latest.item_id, MAX(derived_latest.id) AS latest_action_id | |
| FROM inet_obdg_actions derived_latest | |
| WHERE derived_latest.deleted_at IS NULL | |
| GROUP BY derived_latest.item_id | |
| ) z ON z.item_id = a.item_id | |
| AND z.latest_action_id = a.id |