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
| # nushell 0.27 | |
| # find small files and delete them | |
| ls **/LWS* | where size < 16mb | each { rm $it.name } |
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/sh | |
| slurmd -C |
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
| # delete oldest first, first 100 entries of directories | |
| ls -lctr | head -n 100 | xargs sudo rm -rf |
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
| df.apply(lambda x: foo(x), axis=1) |
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
| # build the damn thing | |
| * python setup.py sdist bdist_wheel | |
| # check | |
| * twine check dist/* | |
| # upload to test.pypi.org and check there | |
| * twine upload --repository testpypi dist/* | |
| # upload for real |
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
| cd /opt/matlab/R2019a/etc | |
| ./lmstart |
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
| rsync -av --exclude=".*" src dest |
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
| # -r recursive | |
| # -x exclude hidden folders | |
| # -y store symlinks as is and don't follow them | |
| zip -r jupyter-backup.zip jupyter-* -x "*/.*" -y |
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
| # -r recursive | |
| # -x exclude hidden folders | |
| # -y store symlinks as is and don't follow them | |
| zip -r jupyter-backup.zip jupyter-* -x "*/.*" -y |
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
| http://peterdowns.com/posts/first-time-with-pypi.html |