Skip to content

Instantly share code, notes, and snippets.

View tdegrunt's full-sized avatar

Tom de Grunt tdegrunt

View GitHub Profile
@tdegrunt
tdegrunt / spacemacs-keybindings
Created April 5, 2020 09:11 — forked from adham90/spacemacs-keybindings
spacemacs keybindings that i need to learn
SPC s c remove highlight
**** Files manipulations key bindings
Files manipulation commands (start with ~f~):
| Key Binding | Description |
|-------------+----------------------------------------------------------------|
| ~SPC f c~ | copy current file to a different location |
| ~SPC f C d~ | convert file from unix to dos encoding |
| ~SPC f C u~ | convert file from dos to unix encoding |
@tdegrunt
tdegrunt / tmux-tmuxinator-setup.md
Created March 3, 2020 22:09 — forked from colmarius/tmux-tmuxinator-setup.md
Project start/stop with tmux + tmuxinator

1. Install tmux + tmuxinator

gem install tmuxinator

2. Add ~/.tmuxinator project specific configurations

# File: ~/.tmuxinator/project-name.yml

name: project-name
@tdegrunt
tdegrunt / sidekiq_monitoring
Created February 15, 2020 23:10 — forked from ngsmrk/sidekiq_monitoring
Sidekiq queue checking via rails console
stats = Sidekiq::Stats.new
stats.queues
stats.enqueued
stats.processed
stats.failed
@tdegrunt
tdegrunt / bt-agent.service
Created June 28, 2019 05:56 — forked from rcarmo/bt-agent.service
Set up PAN networking on Raspbian Stretch (use sudo to create these files and run all commands)
# 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 February 14, 2019 21:23 — forked from Dmdv/Gemfile
Nginx, Sinatra, and Puma.
source :rubygems
gem "puma"
gem "sinatra"

;; 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 07:13
Ruby programming with VS Code
*.gem
*.rbc
/.config
/coverage/
/InstalledFiles
/pkg/
/spec/reports/
/spec/examples.txt
/test/tmp/
/test/version_tmp/
@tdegrunt
tdegrunt / readme.md
Created April 5, 2018 09:37 — forked from maxivak/readme.md
Integrating Gem/Engine and Main Rails App
@tdegrunt
tdegrunt / async_console.rb
Created February 5, 2018 14:35 — forked from postmodern/async_console.rb
An asynchronous Console that can evaluate Ruby code in the background.
require 'thread'
class AsyncConsole
#
# Creates a new Asynchronous Console, within the given context.
#
# @param [Module] context
# The context to evaluate code within.
#
@tdegrunt
tdegrunt / better_image_tag.rb
Created October 30, 2017 11:28 — forked from pichfl/better_image_tag.rb
Liquid Image Tag for Jekyll
# 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