Skip to content

Instantly share code, notes, and snippets.


Cosmin Catalin SANDA cosmincatalin

Block or report user

Report or block cosmincatalin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
skipperkongen /
Last active Feb 7, 2019
Scrape images from the Google Images
# pip install icrawler
from icrawler.builtin import GoogleImageCrawler
import argparse
if __name__=='__main__':
parser = argparse.ArgumentParser(description='Scrape some images.')
parser.add_argument('keywords', metavar = 'KEYWORDS', nargs = '+',
help='keywords to download images for')
parser.add_argument('-n', '--max-num', type = int, default = 10,
flovv / DeepLearningPartOne.R
Created Jun 18, 2017
Deep Learning for Brand Logo detection in R
View DeepLearningPartOne.R
########## data proprocessing!
## download the file set from here:
## extract image to a folder flickrData
### copy files in the right directories
options(stringsAsFactors = F)
df <- read.csv("flickrData/flickr_logos_27_dataset_query_set_annotation.txt", sep="\t")
nicor88 /
Created Apr 20, 2017
Bootstrap action to install Conda and Jupyter on EMR
#!/usr/bin/env bash
set -x -e
# home backup
if [ ! -d /mnt/home_backup ]; then
sudo mkdir /mnt/home_backup
sudo cp -a /home/* /mnt/home_backup
mrchristine /
Created Sep 6, 2016
Assign an elastic ip with a bootstrap script.
# Set Params
# Assign EIP ID
# Install awscli
yyolk /
Last active Oct 14, 2016
Install RabbitMQ on Amazon linux, along with Erlang
# Modify /etc/yum.repos.d/epel.repo. Under the section marked [epel], change enabled=0 to enabled=1.
sudo yum install erlang --enablerepo=epel
sudo rpm -Uvh rabbitmq-server-3.1.1-1.noarch.rpm
# Enable managament plugin
sudo rabbitmq-plugins enable rabbitmq_management
niderhoff /
Last active Sep 22, 2019
Create a Bootable Win7 USB Stick on OSX

Create a Bootable Win7 USB Stick on OSX


  • 4GB+ USB Stick
  • Windows 7 ISO from Microsoft downloaded to your OSX-Machine

Preparing the drive

  1. Open Disk utility
  2. Find the drive, format it with the following options:
  • Choose Master Boot Record (MBR)
jonschoning / pc.orig
Created Feb 8, 2015
/usr/share/X11/xkb/symbols/pc (swap CTRL+ALT)
View pc.orig
default partial alphanumeric_keys modifier_keys
xkb_symbols "pc105" {
key <ESC> { [ Escape ] };
// The extra key on many European keyboards:
key <LSGT> { [ less, greater, bar, brokenbar ] };
// The following keys are common to all layouts.
key <BKSL> { [ backslash, bar ] };
tmcgrath / Spark aggregateByKey
Created Dec 2, 2014
Spark aggregateByKey example
View Spark aggregateByKey
Welcome to
____ __
/ __/__ ___ _____/ /__
_\ \/ _ \/ _ `/ __/ '_/
/___/ .__/\_,_/_/ /_/\_\ version 1.1.0
Using Scala version 2.10.4 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_65)
Type in expressions to have them evaluated.
Type :help for more information.
mitchwongho / Docker
Last active Oct 4, 2019
Docker 'run' command to start an interactive BaSH session
View Docker
# Assuming an Ubuntu Docker image
$ docker run -it <image> /bin/bash
lttlrck / gist:9628955
Created Mar 18, 2014
rename git branch locally and remotely
View gist:9628955
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
You can’t perform that action at this time.