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 | |
| # Origin: | |
| # https://github.com/karlapsite/eos/blob/master/Scripts/changeColor.sh | |
| # Theme generator (use 'Terminal' to output) | |
| # http://ciembor.github.io/4bit/# | |
| # Assign value if variable is unset or null. | |
| var_run="do" |
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
| avconv -i input.mkv -vcodec copy -acodec libmp3lame -ab 128k output.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
| import numpy as np | |
| from random import randint | |
| from decimal import Decimal | |
| from math import log10, floor | |
| def floats_5(N): | |
| """ | |
| Generate random floats between a random range, where all floats | |
| end with a '5'. |
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
| from decimal import Decimal | |
| import numpy as np | |
| def format_5(f): | |
| """ | |
| Round floats that end with a '5' correctly, bypassing Python's issue | |
| with the round() function. | |
| See: http://codereview.stackexchange.com/q/122243/35351 |
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
| pdftk original.pdf output uncompressed.pdf uncompress | |
| LANG=C sed -n '/^\/Annots/!p' uncompressed.pdf > stripped.pdf | |
| pdftk stripped.pdf output final.pdf compress |
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
| for file in *.png; do convert $file -resize 50% rszd_$file.png; done |
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://www.astronomy.ohio-state.edu/~khan/iraf/iraf_step_by_step_installation_64bit | |
| # Fix fitparams issue | |
| cd /iraf/iraf/noao/bin.linux64/ | |
| sudo rm x_photcal.e | |
| sudo wget ftp://iraf.noao.edu/iraf/v216/support/linux/x_photcal.e | |
| sudo chmod +x x_photcal.e |
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
| # Define the sampler | |
| ptsampler = sampler.Sampler() | |
| available_time = # some number of hours (seconds) | |
| pos0 = # some initial random positions | |
| # Timing params | |
| elapsed, start_t = 0, t.time() | |
| # Fixed number of steps |
OlderNewer