Skip to content

Instantly share code, notes, and snippets.

@zchee
zchee / cgo.md
Last active July 14, 2024 14:58
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.