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
skipperkongen / scrape-image.py
Last active Feb 7, 2019
Scrape images from the Google Images
View scrape-image.py
# 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
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: http://image.ntua.gr/iva/datasets/flickr_logos/
## 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
nicor88 / bootstrap_jupyter.sh
Created Apr 20, 2017
Bootstrap action to install Conda and Jupyter on EMR
View bootstrap_jupyter.sh
#!/usr/bin/env bash
set -x -e
JUPYTER_PASSWORD=${1:-"myJupyterPassword"}
NOTEBOOK_DIR=${2:-"s3://myS3Bucket/notebooks/"}
# home backup
if [ ! -d /mnt/home_backup ]; then
sudo mkdir /mnt/home_backup
sudo cp -a /home/* /mnt/home_backup
@mrchristine
mrchristine / aws_assign_eip.sh
Created Sep 6, 2016
Assign an elastic ip with a bootstrap script.
View aws_assign_eip.sh
#/bin/bash
# Set Params
k=YOUR_AWS_KEYS
s=YOU_AWS_SECRETE
r=YOUR_REGION
# Assign EIP ID
eip_id=eipalloc-XXXXXXX
# Install awscli
@yyolk
yyolk / install.sh
Last active Oct 14, 2016
Install RabbitMQ on Amazon linux, along with Erlang
View install.sh
# Modify /etc/yum.repos.d/epel.repo. Under the section marked [epel], change enabled=0 to enabled=1.
sudo yum install erlang --enablerepo=epel
wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.1.1/rabbitmq-server-3.1.1-1.noarch.rpm
sudo rpm -Uvh rabbitmq-server-3.1.1-1.noarch.rpm
# Enable managament plugin
sudo rabbitmq-plugins enable rabbitmq_management
@niderhoff
niderhoff / win7-bootable-usb-on-osx.md
Last active Jun 7, 2019
Create a Bootable Win7 USB Stick on OSX
View win7-bootable-usb-on-osx.md

Create a Bootable Win7 USB Stick on OSX

Prerequesites:

  • 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
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
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
mitchwongho / Docker
Last active Jun 14, 2019
Docker 'run' command to start an interactive BaSH session
View Docker
# Assuming an Ubuntu Docker image
$ docker run -it <image> /bin/bash
@lttlrck
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.