Skip to content

Instantly share code, notes, and snippets.

@robertpainsi
robertpainsi / commit-message-guidelines.md
Last active December 3, 2025 19:19
Commit message guidelines

Commit Message Guidelines

Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
@scottopell
scottopell / remove_audio_track.md
Last active September 15, 2025 14:11
How to remove an audio track from an mkv
  1. Install mkvtoolsnix.
  2. brew install --with-qt5 mkvtoolnix
  3. Use mkvinfo to get the audio track IDs that you want.
  4. mkvinfo *.mkv
  5. Note that the audio track IDs are not the track numbers. Check the man page of mkvmerge or mkvinfo for more details.
  6. Use mkvmerge to create a copy of the mkv with ONLY the desired tracks using --audio-tracks.
  7. mkvmerge -o out.mkv -a 2 orig.mkv
@zchee
zchee / cgo.md
Last active June 20, 2025 08:51
cgo convert list

See also, http://libraryofalexandria.io/cgo/

Using Go cgo

cgo has a lot of trap.
but Not "C" pkg also directory in $GOROOT/src. IDE's(vim) Goto command not works.

So, Here collect materials.

Simple Security Guidelines

Using an iDevice? (Best option)

  • Use an iPod or an iPad without a SIM card
  • Use an iPhone
  • Do not jailbreak
  • Always upgrade to new iOS versions
  • Use Brave browser

Need Secure chat?

@mfournier
mfournier / on Debian 7
Created September 21, 2013 15:24
packages required to build collectd 5.4 from a git clone
package { ['flex', 'libgcrypt11-dev', 'valgrind', 'strace']: }
package { ['autotools-dev', 'libltdl-dev', 'iproute-dev', 'iptables-dev', 'javahelper', 'libcurl4-gnutls-dev', 'libdbi0-dev', 'libesmtp-dev', 'libganglia1-dev', 'libglib2.0-dev', 'libhal-dev', 'liblvm2-dev',
'libmemcached-dev', 'libmnl-dev', 'libmodbus-dev', 'libmysqlclient-dev', 'libnotify-dev', 'libopenipmi-dev', 'liboping-dev', 'libpcap-dev', 'libperl-dev', 'libpq-dev', 'libprotobuf-c0-dev', 'librabbitmq-dev', 'li
brrd-dev', 'libsensors4-dev', 'libsnmp-dev', 'perl', 'libtokyocabinet-dev', 'libtokyotyrant-dev', 'libupsclient1-dev', 'libvarnish-dev', 'libvirt-dev', 'libxml2-dev', 'libyajl-dev', 'linux-libc-dev', 'openjdk-6-j
dk', 'protobuf-c-compiler', 'python-dev' ]: }
@johnf
johnf / gist:1496171
Created December 19, 2011 08:57
php-fastcgi
# php-fastcgi - Manages php5-cgi in FastCGI mode
description "Manage a PHP FastCGI process"
start on (net-device-up
and local-filesystems
and runlevel [2345])
stop on runlevel [016]
env PHP_FCGI_CHILDREN=8
@deanwilson
deanwilson / gist:872888
Created March 16, 2011 17:32
Simple Puppet cucumber-nagios package stub
Feature: puppetwrappers
Package Checks
Scenario: Confirming package installation
When a machine has been puppeted
Then the bash package should be installed.
Scenario: Confirm bash package is absent
When a machine has been puppeted
Then the bash package should not be installed.