Please see https://github.com/smart-facility/osm-import
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd ~/Library/Application\ Support | |
rm -r FME | |
rm -r FME\ Desktop\ Help | |
cd ~/Library/Preferences | |
rm com.safe-software-inc.* | |
cd ~/Library/Caches | |
rm -r Safe\ Software/FME | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- taken from http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.PostgreSQL.CommonDBATasks.html#Appendix.PostgreSQL.CommonDBATasks.PostGIS | |
create extension postgis; | |
create extension fuzzystrmatch; | |
create extension postgis_tiger_geocoder; | |
create extension postgis_topology; | |
alter schema tiger owner to rds_superuser; | |
alter schema tiger_data owner to rds_superuser; | |
alter schema topology owner to rds_superuser; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I'm leaving this here for as a reference, but note the official patches are now out at | |
# http://support.apple.com/kb/DL1767?viewlocale=en_US&locale=en_US (Lion) | |
# http://support.apple.com/kb/DL1768?viewlocale=en_US&locale=en_US (Mountain Lion) | |
# http://support.apple.com/kb/DL1769?viewlocale=en_US&locale=en_US (Mavericks) | |
# Note they only seem to cover up to patch 53, following will get you to patch 54. | |
# Important: don't just download and run this. Read to the end first. | |
# Taken from http://apple.stackexchange.com/questions/146849/how-do-i-recompile-bash-to-avoid-shellshock-the-remote-exploit-cve-2014-6271-an | |
# but avoids symlinking to homebrew (as that may break things) and also added verification of patch file for good measure. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat .gitmodules |while read i | |
do | |
if [[ $i == \[submodule* ]]; then | |
mpath=$(echo $i | cut -d\" -f2) | |
read i; read i; | |
murl=$(echo $i|cut -d\ -f3) | |
mcommit=`eval "git submodule status ${mpath} |cut -d\ -f2"` | |
mname=$(basename $mpath) | |
echo -e "$name\t$mpath\t$murl\t$mcommit" | |
git submodule deinit $mpath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while read shp | |
do | |
echo Processing $shp | |
base=`echo $shp | sed "s/\.shp$//"` | |
zip=${base}.zip | |
rm -f $zip | |
zip "$zip" "${base}.shp" "${base}.shx" "${base}.prj" "${base}.dbf" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* See http://yinette.github.io/blog/2015/01/28/ghost-in-the-library/ for more info */ | |
#include <netdb.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <errno.h> | |
#define CANARY "in_the_coal_mine" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Please see https://github.com/smart-facility/postgis-upgrade for the latest version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
while true; | |
do | |
echo `date` | |
sleep 1 | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# A simple script to backup an organization's GitHub repositories. | |
GHBU_BACKUP_DIR=${GHBU_BACKUP_DIR-"github-backups"} # where to place the backup files | |
GHBU_ORG=${GHBU_ORG-"smart-facility"} # the GitHub organization whose repos will be backed up | |
GHBU_API=${GHBU_API-"https://api.github.com"} # base URI for the GitHub API | |
GHBU_GITHOST=${GHBU_GITHOST-"github.com"} # the GitHub hostname (see comments) | |
# I recommend using an API token so it is easily trackable and removable. | |
# Note that you MUST have SSH keys for a user with the access to all repos set up |
OlderNewer