Skip to content

Instantly share code, notes, and snippets.

Avatar
㊙️
Going underground

Dominic Sayers dominicsayers

㊙️
Going underground
View GitHub Profile
View git-bisect-cheatsheet.md
$ git bisect start
$ git bisect bad
$ git bisect good dd9b00ad73d71a84e11523c062048daaa8e590e9
Bisecting: 14 revisions left to test after this (roughly 4 steps)
[e6ac8fb2b6c9ee04d0600690f477e785f6c02330] Delegate create_graph_node to the graph client
$ git bisect run rspec ./spec/integration/company_branch_spec.rb:49

...
@dominicsayers
dominicsayers / gist:4510890
Created Jan 11, 2013
[FIXED] Problem installing pg gem: checking for PQconnectdb() in -lpq... no
View gist:4510890
dominicsayers$ sudo gem install pg
Building native extensions. This could take a while...
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
checking for pg_config... yes
Using config values from /usr/local/bin/pg_config
checking for libpq-fe.h... yes
checking for libpq/libpq-fs.h... yes
View literal-backtick.md

The next word `is` surrounded by literal backticks

@dominicsayers
dominicsayers / white-loaf-kenwood-chef.md
Last active May 8, 2020
How to make a basic white loaf in a Kenwood Chef
View white-loaf-kenwood-chef.md

How to make a basic white loaf in a Kenwood Chef

Ingredients

  • Boiling water 150ml
  • Cold water 150ml
  • Fresh baker's yeast 2 tsp
  • Strong bread flour 500g
  • Sugar 2 tsp
  • Salt 1 tsp
  • egg whites 1
@dominicsayers
dominicsayers / elasticsearch.md
Last active Apr 24, 2020
Configuring ElasticSearch to use less memory
View elasticsearch.md

What I actually did

/etc/security/limits.conf

elasticsearch hard memlock 100000

/etc/default/elasticsearch

View windows_terminal_settings.json
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"profiles":
@dominicsayers
dominicsayers / WSL + Docker setup for development.md
Last active Feb 9, 2020
Setting up Windows Services for Linux and Docker for Windows for Ruby on Rails development
View WSL + Docker setup for development.md

Setting up Windows Services for Linux (WSL) and Docker for Windows for Ruby on Rails development

Prerequisites

On your Windows 10 development machine you should have installed

  1. Windows Services for Linux and a Debian-based app like Ubuntu.
  2. putty
  3. Docker for Windows (and I use Kitematic because I'm a Docker n00b)
@dominicsayers
dominicsayers / s3cmd_install.md
Created Mar 6, 2013
Installing s3cmd on Ubuntu Server
View s3cmd_install.md
  1. sudo apt-get install python-setuptools
  2. wget http://downloads.sourceforge.net/project/s3tools/s3cmd/1.5.0-alpha1/s3cmd-1.5.0-alpha1.tar.gz
  3. tar xvfz s3cmd-1.5.0-alpha1.tar.gz
  4. cd s3cmd-1.5.0-alpha1
  5. python setup.py install
  6. s3cmd --configure
View tigergraph-docker-cheatsheet.md

TigerGraph Docker cheatsheet

Information

docker ps -a | grep tiger

List all containers with tiger in their name or image name.

docker logs -f tiger-local-development

View blockstack.txt
Verifying my Blockstack ID is secured with the address 1F6D7pjF5BrTQuNyuq9RXVBnAHkj7nY4Pw https://explorer.blockstack.org/address/1F6D7pjF5BrTQuNyuq9RXVBnAHkj7nY4Pw
You can’t perform that action at this time.