Skip to content

Instantly share code, notes, and snippets.

View icyrizard's full-sized avatar

Richard Torenvliet icyrizard

View GitHub Profile

Keybase proof

I hereby claim:

  • I am icyrizard on github.
  • I am icyrizard (https://keybase.io/icyrizard) on keybase.
  • I have a public key ASBeF3TIXqGk-LA7s7SWLBg90A8MTtgT_hQeq43O0ib0ewo

To claim this, I am signing this object:

@icyrizard
icyrizard / copy_mysql_database.sh
Last active October 27, 2016 13:43
Copy a Mysql database to another database
db=$1
new_db=$2
NUMARGS=$#
if [ $NUMARGS -eq 0 ]; then
echo "Usage ./$0 db new_db"
echo "Select one of the available databases:"
bash -c 'mysql -u root --execute="show databases"'
exit 1
@icyrizard
icyrizard / download_images_from_csv.sh
Created June 15, 2016 11:54
Download images from a csv file using wget in Parallel
#!/bin/bash
COLUMN=1 # csv column to extract
RENAME=false # if we should rename the file, note that is was really specific for my problem.
THREADS=16 # threads to use by parallel
#Set Script Name variable
SCRIPT=`basename ${BASH_SOURCE[0]}`
#Set fonts for Help.
NORM=`tput sgr0`