Skip to content

Instantly share code, notes, and snippets.

@hibernado
hibernado / .gitignore
Last active June 3, 2021 22:01 — forked from ErikGartner/.treehouse
dTree Demo
.idea/
@hibernado
hibernado / 01_analysis.R
Last active June 4, 2018 22:54
Analysis Task
library(tidyverse)
library(lubridate)
library(data.table)
getwd()
dir = '~/Documents/open_signal/'
setwd(dir)
file = 'speed_data.csv'
df <- read.csv(file,stringsAsFactors = F)
TES Data Science technical screen.pdf
TESDataScienceData.csv
*.RData
*.Rhistory
@hibernado
hibernado / gist:c245b2a29acc6081cb77
Created July 17, 2014 13:41
Space Taken up by files in a Directory
find DIR -type f |
xargs stat --format=%s |
awk '{s+=$1} END {print s}'
OR
du -sbh DIR
@hibernado
hibernado / sample_price_paid_data.csv
Created July 5, 2014 10:46
Sample Data from the land registry for England and Wales; The data is Crown copyright and is reproduced with the permission of Land Registry under delegated authority from the Controller of HMSO - See more at: http://www.landregistry.gov.uk/public/information/copyright-policy#crowncopyright
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 7.
"{3943A5F0-4E84-4D69-B74E-01281D5B421A}","405000","2007-11-16 00:00","RH4 1JQ","S","N","F","41","","FAIRFIELD DRIVE","DORKING","DORKING","MOLE VALLEY","SURREY","A"
"{636D0725-1324-4EC6-A95A-05F7073C5549}","315000","2009-07-06 00:00","RH4 1JQ","S","N","F","51","","FAIRFIELD DRIVE","","DORKING","MOLE VALLEY","SURREY","A"
"{640ED6B3-80EF-48E4-A0F6-06A0C8791D8D}","85300","1996-04-26 00:00","RH4 1JG","S","N","F","97","","FAIRFIELD DRIVE","DORKING","DORKING","MOLE VALLEY","SURREY","A"
"{57F42485-CB38-496F-9D3C-070E59545C39}","109000","1997-07-11 00:00","RH4 1JG","S","N","F","83","","FAIRFIELD DRIVE","DORKING","DORKING","MOLE VALLEY","SURREY","A"
"{04BB1FD0-3512-4EC6-8B7C-0DBBB4317F16}","320000","2003-06-13 00:00","RH4 1JJ","S","N","F","116","","FAIRFIELD DRIVE","DORKING","DORKING","MOLE VALLEY","SURREY","A"
"{8AA6305A-89CE-45FD-B572-0DE25041EC4D}","150000","1998-09-30 00:00","RH4 1JG","S","N","F","113","","FAIRFIELD DRIVE","DORKING","DORKING","MOLE VALLEY","SURREY","A"
"{B9072B90-C58D-4616-B4B6-1082F0E943EC}","1250
@hibernado
hibernado / aws_repoint_to_my_ip.sh
Last active November 16, 2021 02:48
Repoint AWS EC2 Security Group inbound access to my current IP address
#!/bin/bash
# Summary:
# Bash script repoints all inbound access for a given AWS EC2 security group
# to your current IP addr(v4) as provided by ifconfig.me/ip
# To use this script:
# Pass the name of a security group as a command line argument
# e.g. $ aws_repoint_to_my_ip.sh SECURITYGROUPNAME