Skip to content

Instantly share code, notes, and snippets.

View vinc456's full-sized avatar
💭
Comments concerning collab coding: https://news.ycombinator.com/item?id=18878737

vinc456

💭
Comments concerning collab coding: https://news.ycombinator.com/item?id=18878737
View GitHub Profile
@vinc456
vinc456 / git-commit-template.md
Created January 13, 2022 06:10 — forked from lisawolderiksen/git-commit-template.md
Use a Git commit message template to write better commit messages

Using Git Commit Message Templates to Write Better Commit Messages

One of my colleagues shared an article on writing (good) Git commit messages today: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the

On Popper’s view, the growth of knowledge begins with a problem, which is usually an inconsistency discovered either within an inherited theory, or between inherited theories, or between an inherited theory and an accepted observation statement. We attempt to solve the problem by proposing new explanatory theories.
We criticise these theories in various ways and we evaluate them as better or worse solutions to our problem. As a result, we usually come to understand the problem better, which leads us to suggest further new theories, which are in turn criticised and evaluated. It may be that we eventually settle on one theory as clearly better than its available rivals (as happened in the case of Newton’s theory in the eighteenth century). That dominant theory may then become a main focus for our criticism, identification of new problems and further development of theory. The attempt to resolve the problems that the criticism of the dominant theory generates may lead to new conjectures which are rivals to that
I was drawn to programming, science, technology and science fiction
ever since I was a little kid. I can't say it's because I wanted to
make the world a better place. Not really. I was simply drawn to it
because I was drawn to it. Writing programs was fun. Figuring out how
nature works was fascinating. Science fiction felt like a grand
adventure.
Then I started a software company and poured every ounce of energy
into it. It failed. That hurt, but that part is ok. I made a lot of
mistakes and learned from them. This experience made me much, much
Court Booking Rules
To complete your booking online, you must pay within 15 minutes or the system will cancel your booking automatically.
Court must be claimed within 15 minutes of start time (or it may be rebooked).
The Centre reserves the right to change your court if needed.
All players must check in at the desk and pay all fees before proceeding to their court.
All players must vacate the court promptly when their booking ends. (Please do not ask players to wait until you finish a game). Players who remain on court more than 10 minutes after their booking ends or who start playing more than 10 minutes before their booking begins will be charged without warning.
No more than four (4) players per court at any time.
Appropriate tennis attire is required. Non-marking tennis shoes must be worn.
Clay court shoes may not be worn indoors.
@vinc456
vinc456 / attributes.rb
Created April 21, 2019 04:00 — forked from lizthegrey/attributes.rb
Hardening SSH with 2fa
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam'
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes'
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no'
@vinc456
vinc456 / coursera.sh
Created June 12, 2016 02:03 — forked from bburky/coursera.sh
Automatically configure a VM download Coursera courses
#!/bin/bash
# Automatically configure a VM download Coursera courses.
# This script works as a user data file for use with a cloud VM.
# This script will resume downloading if the VM is restarted.
# This script works with Debian jessie (or possibly Ubuntu with systemd).
# You must enroll in each course and accept the Honor of Code of each course
# before you can download them.
@vinc456
vinc456 / ImportGTFSData.sql
Created March 6, 2016 00:04 — forked from dsamojlenko/ImportGTFSData.sql
Import GTFS data to SQLite (need to remove header row after import). These commands should be entered in a SQLite command-line shell.
Create a database in the same directory as the GTFS files by typing:
shell> sqlite3 gtfs_db
The following commands should be executed in the SQLite shell:
CREATE TABLE agency (agency_name TEXT, agency_url TEXT, agency_timezone TEXT, agency_lang TEXT);
CREATE TABLE stops (stop_id TEXT, stop_code INTEGER, stop_name TEXT, stop_desc TEXT, stop_lat REAL, stop_lon REAL, stop_street TEXT, stop_city TEXT, stop_region TEXT, stop_postcode TEXT, stop_country TEXT, zone_id INTEGER);
CREATE TABLE routes (route_id TEXT,route_short_name TEXT,route_long_name TEXT,route_desc TEXT,route_type INTEGER);
CREATE TABLE trips (route_id TEXT,service_id STRING,trip_id STRING,trip_headsign TEXT,block_id INTEGER);
CREATE TABLE stop_times (trip_id STRING,arrival_time TEXT,departure_time TEXT,stop_id TEXT,stop_sequence INTEGER,pickup_type INTEGER,drop_off_type INTEGER);
"Edit inventory/development to point to your server"
Which ones are relevant?
/home/ubuntu/richard-ansible/inventories/inventory
/home/ubuntu/richard-ansible/rackspace/inventory
/home/ubuntu/richard-ansible/rackspace/rax_inventory
/home/ubuntu/richard-ansible/rackspace/inventory/rax.ini
/home/ubuntu/richard-ansible/rackspace/inventory/rax.py