Skip to content

Instantly share code, notes, and snippets.

Tom de Grunt tdegrunt

  • The Netherlands
Block or report user

Report or block tdegrunt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tdegrunt
tdegrunt / bt-agent.service
Created Jun 28, 2019 — forked from rcarmo/bt-agent.service
Set up PAN networking on Raspbian Stretch (use sudo to create these files and run all commands)
View bt-agent.service
# in /etc/systemd/system
[Unit]
Description=Bluetooth Agent
[Service]
ExecStart=/usr/bin/bt-agent -c NoInputNoOutput
Type=simple
[Install]
WantedBy=multi-user.target
@tdegrunt
tdegrunt / Gemfile
Created Feb 14, 2019 — forked from Dmdv/Gemfile
Nginx, Sinatra, and Puma.
View Gemfile
source :rubygems
gem "puma"
gem "sinatra"
@tdegrunt
tdegrunt / halmak.md
Created Dec 11, 2018
Carpalx run for halmak
View halmak.md
➜ bin/carpalx
Keyboard effort
------------------------------------------------------------
k1                      1.002  69.6  69.6
k1,k2                   1.359  24.8  94.3
k1,k2,k3                1.441   5.7 100.0
b                       0.307  13.6  13.6
p                       1.134  50.2 127.1
ph                      0.000   0.0   0.0
View customize.material-dark-theme.md

;; Automatically generated
(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(anzu-cons-mode-line-p nil)
@tdegrunt
tdegrunt / .gitignore
Created May 22, 2018
Ruby programming with VS Code
View .gitignore
*.gem
*.rbc
/.config
/coverage/
/InstalledFiles
/pkg/
/spec/reports/
/spec/examples.txt
/test/tmp/
/test/version_tmp/
@tdegrunt
tdegrunt / readme.md
Created Apr 5, 2018 — forked from maxivak/readme.md
Integrating Gem/Engine and Main Rails App
@tdegrunt
tdegrunt / async_console.rb
Created Feb 5, 2018 — forked from postmodern/async_console.rb
An asynchronous Console that can evaluate Ruby code in the background.
View async_console.rb
require 'thread'
class AsyncConsole
#
# Creates a new Asynchronous Console, within the given context.
#
# @param [Module] context
# The context to evaluate code within.
#
View gist:732486d0f7ee12284abe727b32934437
Verifying my Blockstack ID is secured with the address 1MF4R8dVMT4AQB1KGxmSqBv1HYbRffW3Zh https://explorer.blockstack.org/address/1MF4R8dVMT4AQB1KGxmSqBv1HYbRffW3Zh
@tdegrunt
tdegrunt / better_image_tag.rb
Created Oct 30, 2017 — forked from pichfl/better_image_tag.rb
Liquid Image Tag for Jekyll
View better_image_tag.rb
# A simple plugin for Jekyll that allows you to use {% url "alt text" %} to add images to your posts.
# It will automatically check those images for width and height.
#
# Requires http://imagesize.rubyforge.org/
require 'image_size'
require 'open-uri'
module Jekyll
@tdegrunt
tdegrunt / brew-pgupgrade.sh
Created Oct 26, 2017
Auto-upgrade homebrew's PostgreSQL data directory
View brew-pgupgrade.sh
#!/usr/bin/env bash
old=$1
new=$2
if ! [ "$new" ]; then
new=`psql -V | cut -d' ' -f3`
fi
if ! [ "$old" ]; then
echo "Usage: pgupgrade.sh <old-version> [new-version]"
You can’t perform that action at this time.