Skip to content

Instantly share code, notes, and snippets.

# Why?
# To paste text into windows that normally don't allow it or have access to the clipboard.
# Examples: Virtual machines that do not yet have tools installed, websites that hijack paste
#
# Extended vs Simple?
# * Includes an initial delay to allow you to change active windows
# * Adds small delay between keypresses for slower responding windows like SSH sessions
# * Better handling of numbers
# * VMWare bug fix
#
@denisbr
denisbr / 1-Signing-GIT-commits-with-GPG-setup.md
Last active October 29, 2021 07:27 — forked from troyfontaine/1-setup.md
Signing your Git Commits using GPG on MacOS Sierra/High Sierra

Methods of Signing with GPG

Last updated March 28, 2021

There are now two ways to approach this:

  1. Using gpg and generating keys
  2. Using Kryptonite by krypt.co

This Gist explains how to do this using gpg in a step-by-step fashion. Kryptonite is actually wickedly easy to use-but you will still need to follow the instructions

Backend_health - Backend health check
The result of a backend health probe.
The format is:
%s %s %s %u %u %u %f %f %s
| | | | | | | | |
| | | | | | | | +- Probe HTTP response
| | | | | | | +---- Average response time
### Keybase proof
I hereby claim:
* I am denisbr on github.
* I am denisb (https://keybase.io/denisb) on keybase.
* I have a public key whose fingerprint is C3EB 1BF2 2386 4CE7 102A EF3F 84B3 D11C 9FD0 B720
To claim this, I am signing this object:
@denisbr
denisbr / Open New iTerm2 Window
Created February 14, 2014 08:24
Applescript used in an "Open new iTerm Window" Alfred action
on alfred_script(q)
tell application "iTerm"
activate
-- Create a new terminal window...
set myterm to (make new terminal)
-- ... and go on within this one.
tell myterm
-- Set the terminal size constraints.
name "hello-world"
org 100h
; set video mode
mov ax, 3 ; text mode 80x25, 16 colors, 8 pages (ah=0, al=3)
int 10h ; do it!
; cancel blinking and enable all 16 colors:
mov ax, 1003h
mov bx, 0
@denisbr
denisbr / pupil.pp
Created June 6, 2013 16:34
Pupil + Puppet = Puppil?
# Install pupil quick and dirty
# https://github.com/pupil-monitoring/pupil
package { 'nodejs':
ensure => present,
}
package { 'npm':
ensure => present,
@denisbr
denisbr / Mortis Stir Fry Kylling
Created March 10, 2013 23:20
Stir fry kylling
Til 1-2personer
3 hvitløksfedd
2 tørkede chilli (uten frø)
2 dl østerssaus
2 dl vann
4-5 limeblader
2stk kyllingfileter
@denisbr
denisbr / gist:4188506
Created December 2, 2012 12:55
foreman develop branch error
[root@localhost ~]# service foreman start
Starting foreman: Invalid gemspec in [/usr/lib/ruby/gems/1.8/specifications/mixlib-shellout-1.1.0.gemspec]: invalid date format in specification: "2012-08-06 00:00:00.000000000Z"
Invalid gemspec in [/usr/lib/ruby/gems/1.8/specifications/json-1.6.1.gemspec]: invalid date format in specification: "2011-09-18 00:00:00.000000000Z"
Invalid gemspec in [/usr/lib/ruby/gems/1.8/specifications/mixlib-shellout-1.1.0.gemspec]: invalid date format in specification: "2012-08-06 00:00:00.000000000Z"
Invalid gemspec in [/usr/lib/ruby/gems/1.8/specifications/json-1.6.1.gemspec]: invalid date format in specification: "2011-09-18 00:00:00.000000000Z"
Libvirt binding are missing - hypervisor management is disabled
/usr/lib/ruby/gems/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:10: warning: already initialized constant ENC_NONE
/usr/lib/ruby/gems/1.8/gems/ruby_parser-2.3.1/lib/ruby_parser_extras.rb:11: warning: already initialized constant ENC_EUC
/usr/lib/ruby/gems/1.8/gems/ruby_
@denisbr
denisbr / gist:4186059
Created December 2, 2012 00:16
Foreman installer patches
CentOS6.3
Installed epel-release-6-7
Installed puppetlabs-release-6-6
Puppet 3.0.1
To get the installer to apply I patched as such :
$ git submodule foreach --recursive git diff
Entering 'apache'