Skip to content

Instantly share code, notes, and snippets.

View jones139's full-sized avatar

Graham Jones jones139

View GitHub Profile
@jones139
jones139 / Ubuntu_setup_notes.txt
Last active August 31, 2019 19:00
Ubuntu Linux Setup Notes
Graham's Ubuntu Setup Notes
===========================
These notes are a record of how I set up a fresh install of Ununtu 18.04 LTS (well actually xUbuntu for me) and get it to do what I want....
Starting from a fresh install.....
Install the INDI server
-----------------------
sudo add-apt-repository ppa:mutlaqja/ppa
@jones139
jones139 / mobile-AndroidManifest.xml
Created May 1, 2017 18:52 — forked from nschwermann/mobile-AndroidManifest.xml
Android Wearable Message API example
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="schwiz.net.weartest" >
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
@jones139
jones139 / gist:4558645
Created January 17, 2013 19:08
Keep an OSM Database up to date over a particular bounding box. There are probably lots of different versions of this around.
#!/bin/bash
#This scripts updates the area and inserts the changes into the database
SLEEP_TIME=30s
BBOX="-6.5,49.5,2.1,59.0" # United Kingdom
DBUSER=graham
DBNAME=osm_gb
WORKDIR_OSM=/home/osmdb
OSMOSIS_CHANGE_FILE=changes.osc.gz
@jones139
jones139 / setFolderPerms.sh
Created October 9, 2011 08:13
CodeIgniter/Bonfire - Set correct file/folder permissions for bonfire admin functions.
#!/bin/sh
# This should be run from the main CI/bonfire directory (the one that contains index.php)
# The writeableFiles list of filenames is relative to the bonfire/application directory.
# You probably need to run this as root for chgrp to work.
# Graham Jones, 08Oct2011
writeableFiles="../modules cache logs config archives db/backups db/migrations config/development config/production config/testing config/application.php config/config.php"
cd bonfire/application