Skip to content

Instantly share code, notes, and snippets.

View vool's full-sized avatar

Keith Phelan vool

View GitHub Profile
@vool
vool / laravel_post_receive hook
Last active May 5, 2022 22:39
Post receive hook for Laravel website deploy
#!/bin/bash
echo "********************"
echo "Post receive hook: Updating website"
echo "********************"
#set the git repo dir
GIT_REPO_DIR=~/git/<repo>.git
echo "The git repo dir is $GIT_REPO_DIR"
@vool
vool / debian_setup.md
Last active June 19, 2020 15:24
Debain standard setup

Debain setup

Default set up for git deploy web-server on debian box [for a laravel site but also pretty generic]

There a good guide (for ubuntu) here

Update and install

apt-get update &amp;&amp; apt-get upgrade

@vool
vool / gitsearch.sh
Created May 6, 2020 12:03
This script searches a directory for a git repos and outputs info for each
#!/bin/bash
# This script searches a directory for a git repos and outputs info for each
#Set colours
BLUE="\e[01;34m"
RED="\e[01;31m"
GREEN="\e[01;32m"
NORMAL='\e[00m'
@vool
vool / README.md
Last active January 18, 2020 20:47
Script to fetch historic tweets containing a given hashtag and insert them into a database

Get old tweets into a db

Script to fetch historic tweets containing a given hashtag and insert them into a database

Setup

Edit settings in config.json

@vool
vool / site_archiver.md
Last active January 9, 2020 20:24
wget command to archive sites

kbf

wget -q --mirror -p --html-extension --base=./ --exclude-directories=2008/,2009/,2010/,2011/,2012/,news/ -k -P ./ http://kerrybicyclefestival.org

wildmind

wget -q --mirror -p --html-extension --base=./ --exclude-directories=blog -nc -k -P ./ http://wildmind.ie

@vool
vool / playlist.md
Last active November 15, 2019 12:03
This script exports a spotify playlist as list
Artist Track Album
Ezra Collective Space is the Place You Can't Steal My Joy
Kamaal Williams, Henry Wu Medina The Return
Ezra Collective The Philosopher Juan Pablo: The Philosopher
Ezra Collective, Loyle Carner What Am I to Do? You Can't Steal My Joy
Yussef Kamaal Joint 17 Black Focus
Kamaal Williams, Henry Wu High Roller The Return
Yussef Kamaal Black Focus Black Focus
Tenderlonious, The 22archestra Yussef's Groove The Shakedown

Keybase proof

I hereby claim:

  • I am vool on github.
  • I am phelan (https://keybase.io/phelan) on keybase.
  • I have a public key ASBTG537_3QtnC-nVMO8dWwV71bR4DwodoZqTjpbFDmRYAo

To claim this, I am signing this object:

@vool
vool / Irish_counties.overpass.c
Last active March 31, 2019 01:40
Random Overpass Turbo Queries.For extracting OSM data.
/*
Overpass query to get all the counties in Ireland.
http://overpass-turbo.eu/s/9N3
Note:
County relations are taged as:
"boundary"="administrative" in the Republic
and
"boundary"="historic" in Northern Ireland
@vool
vool / ireland.geojson
Created March 22, 2019 00:31
Ireland (Island/32 counties) geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.