mount /dev/sdX /media/usb
mount windows.iso /media/windows
@echo off | |
set TARGET=D:\DCIM\path | |
set DESTINATION=C:\path\to\photos\%date% | |
echo Copying images from camera %TARGET% to %DESTINATION% | |
echo d | xcopy /s /y %TARGET% %DESTINATION%\ | |
echo Removing images from camera.. | |
del /s /q "%TARGET%\*.JPG" | |
PAUSE |
/** | |
* GradientArray • Steps gradient. | |
* @author Siamak Mokhtari <hi@siamak.work> | |
* @date 06/21/16. | |
*/ | |
class GradientArray { | |
// Convert a hex color to an RGB array e.g. [r,g,b] | |
// Accepts the following formats: FFF, FFFFFF, #FFF, #FFFFFF | |
hexToRgb(hex) { | |
let r, g, b, parts; |
#!/bin/bash | |
for file in $(find . -iname '*.rar'); do | |
echo "Extracting ${file}..." | |
dir=$(dirname ${file}) | |
unrar e -y -o+ -p- "${file}" "${dir}" | |
# check exit status, if not 0 it failed |
In your local clone of your forked repository, you can add the original GitHub repository as a "remote". ("Remotes" are like nicknames for the URLs of repositories - origin is one, for example.) Then you can fetch all the branches from that upstream repository, and rebase your work to continue working on the upstream version. In terms of commands that might look like:
git remote add upstream https://github.com/whoever/whatever.git
#!groovy | |
import groovy.json.JsonOutput | |
import groovy.json.JsonSlurper | |
/* | |
Please make sure to add the following environment variables: | |
HEROKU_PREVIEW=<your heroku preview app> | |
HEROKU_PREPRODUCTION=<your heroku pre-production app> | |
HEROKU_PRODUCTION=<your heroku production app> |