Skip to content

Instantly share code, notes, and snippets.

View cigoe's full-sized avatar
🎃

Christopher Igoe cigoe

🎃
View GitHub Profile
@cigoe
cigoe / settings.jsonc
Created July 7, 2023 16:39 — forked from hyperupcall/settings.jsonc
VSCode config to disable popular extensions' annoyances (telemetry, notifications, welcome pages, etc.)
// I'm tired of extensions that automatically:
// - show welcome pages / walkthroughs
// - show release notes
// - send telemetry
// - recommend things
//
// This disables all of that stuff.
// If you have more config, leave a comment so I can add it!!
{

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@cigoe
cigoe / notify.sh
Created January 28, 2014 16:58 — forked from jehiah/notify.sh
#!/bin/bash
#
# *************************************************
# chkconfig: 2345 99 99
# description: notify email address on system boot.
# *************************************************
# Installing:
# 1) save as /etc/rc.d/init.d/notify
# 2) set the desired email address in "MAILADD" variable
# 3) chmod a+w /etc/rc.d/init.d/notify
<?php
$pid = getmypid();
$now = date('M d H:i:s');
$fp = fopen('/tmp/log.txt, 'a');
function ulog ($str) {
global $pid, $now, $fp;
fwrite($fp, "$now $pid {$_SERVER['REMOTE_ADDR']} $str\n");
}
diff --git a/Makefile b/Makefile
index d8009c7..a74a6ee 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
CC=g++
DEFINES = -DUNITY_MASTERSERVER
-CFLAGS=-Wall -lpthread $(DEFINES)
+CFLAGS=-Wall -pthread $(DEFINES)
# Rake task to copy local files to remote server via FTP
# required credentials.yml file, that contains keys:
# server, username, password
require "net/ftp"
require "yaml"
class FTPClient
attr_reader :remote_path
#!/bin/sh
# Script to boot strap new EC2 instances and get them connected to our Puppet Enterprise master
rpm --quiet -q git rubygems || yum -y install git rubygems
if rpm --quiet -q pe-puppet; then
# Puppet Enterprise is already installed, let's reconfigure it - this instance was most likely booted up in the past, or is using an AMI that already has Puppet baked in
service pe-puppet stop
cat > /etc/puppetlabs/puppet/puppet.conf <<EOF
@cigoe
cigoe / gist:3716288
Created September 13, 2012 18:06
Find all Magento products where "Links can be purchased separately" is set to yes in a single store install
SELECT main.sku as sku
FROM catalog_product_flat_1 AS main
INNER JOIN catalog_product_entity_int AS cat_int ON main.entity_id = cat_int.entity_id
WHERE cat_int.attribute_id = 503 AND cat_int.value = 1 AND main.type_id = 'downloadable'