Skip to content

Instantly share code, notes, and snippets.

View ravnoor's full-sized avatar

Ravnoor Singh Gill ravnoor

View GitHub Profile
@ravnoor
ravnoor / prepare_images
Created January 31, 2016 23:31 — forked from xpac27/prepare_images
Prepare images for Francoiscogne.com's backoffice
#!/bin/bash
# Requires: brew install imagemagick --with-little-cms --with-little-cms2
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo ""
echo ""
echo ""
echo ""
echo "All the images in the following folder will be changes: "
@ravnoor
ravnoor / osx-for-hackers.sh
Last active December 20, 2015 22:58 — forked from brandonb927/osx-for-hackers.sh
OSX for Hackers: El Capitan Edition [Hopefully]. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned. Also, please don't email me about this script, my poor inbox...
#!/bin/bash
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# and here
# https://gist.github.com/brandonb927/3195465
# Set the colours you can use
black='\033[0;30m'
@ravnoor
ravnoor / osx-for-hackers.sh
Created December 17, 2015 19:54 — forked from matthewmueller/osx-for-hackers.sh
OSX for Hackers (Mavericks/Yosemite)
# OSX for Hackers (Mavericks/Yosemite)
#
# Source: https://gist.github.com/brandonb927/3195465
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Ask for the administrator password upfront
#!/bin/bash
# Default Variable Declarations
DEFAULT="Default.txt"
FILEEXT=".ovpn"
CRT=".crt"
KEY=".3des.key"
CA="ca.crt"
TA="ta.key"
# Here are a few methods for getting text from PDF files. Do read through
# the instructions carefully! NOte that this code is written for Windows 7,
# slight adjustments may be needed for other OSs
# Tell R what folder contains your 1000s of PDFs
dest <- "G:/somehere/with/many/PDFs"
# make a vector of PDF file names
myfiles <- list.files(path = dest, pattern = "pdf", full.names = TRUE)