I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
W3C Introduction to Web Components - explainer/overview of the technologies
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
wget -c -N 'https://download.joyent.com/pub/iso/md5sums.txt' \ | |
'https://download.joyent.com/pub/iso/platform-latest.tgz' && \ | |
grep platform-latest.tgz md5sums.txt | perl -lane 'print "$F[0] $F[1]"' | md5sum -c - && \ | |
tar xzvf platform-latest.tgz --no-same-owner && \ | |
ln -snf $(ls -1d platform-* | grep -v 'platform-latest.tgz' | tail -n1) platform && \ | |
echo ok |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/ruby | |
require 'socket' | |
statsd_host = "" | |
statsd_port = "8125" | |
namespace_prefix = "statsd-ruby" | |
mode = "statsd" | |
ARGV.each do |arg| | |
name, value = arg.split '=' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Git hook to link a commit's BugzID in Fogbugz. | |
# | |
# Instead of a filename, script populates URL with repository name. | |
# This saves us needing to configure a repository per-project in Fogbugz. | |
# Description, first word in file should be repository-name.git | |
DESC=description |
Go into your git checkout folder of ipxe.
Save the below file as nic-menu.ipxe
.
Build iPXE like this:
cd src && make EMBED=../nic-menu.ipxe && cd ..
Requirements: current iPXE as of 2013-08-01 (for proper behavior of autoboot with a network device specified, netX feature, PCI vendor/device ID display and inc command)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This playbook has been removed as it is now very outdated. |