git update-index --assume-unchanged <file>
git update-index --no-assume-unchanged
""" | |
This script was written to illustrate libraries that could be used to improve upon | |
the efficiency of a script posted to /r/learnprogramming: | |
Original script: | |
https://github.com/aesptux/download-reddit-saved-images/blob/master/script.py | |
Reddit post | |
http://www.reddit.com/r/learnprogramming/comments/14dojd | |
/pythoncode_review_script_to_download_saved_images/ | |
""" | |
from urllib2 import Request, urlopen |
# DISCLAIMER: | |
# - Code is provided "as is" and any expressed or implied warranties are disclaimed. | |
# - Errors and omissions excepted. | |
# NOTE: | |
# - Read it carefully, some commands might have to be changed for your system. | |
# - BLAS/LAPACK compilation commands will most likely have to be changed based on the | |
# stackoverflow link below. | |
# - Running this shell file as a script is NOT recommended. Copy/pasting one command at a time is | |
# okay as long as you monitor the output for any possible errors/warnings. |
# data from http://ec.europa.eu/eurostat/web/gisco/geodata/reference-data/population-distribution-demography/geostat | |
# Originally seen at http://spatial.ly/2014/08/population-lines/ | |
# So, this blew up on both Reddit and Twitter. Two bugs fixed (southern Spain was a mess, | |
# and some countries where missing -- measure twice, submit once, damnit), and two silly superflous lines removed after | |
# @hadleywickham pointed that out. Also, switched from geom_segment to geom_line. | |
# The result of the code below can be seen at http://imgur.com/ob8c8ph | |
library(tidyverse) |
This configuration worked for me, hope it helps
It is based on: https://becominghuman.ai/deep-learning-gaming-build-with-nvidia-titan-xp-and-macbook-pro-with-thunderbolt2-5ceee7167f8b
and on: https://stackoverflow.com/questions/44744737/tensorflow-mac-os-gpu-support
#!/bin/bash | |
set -euo pipefail | |
RELEASE="teleport-v4.2.3-linux-amd64-bin.tar.gz" | |
if [[ $EUID -ne 0 ]]; then | |
echo "--> Please run this script as root or sudo." | |
exit 1 | |
fi |