These determine the assumed/default size of instruction operands, and restricts which opcodes are available, and how they are used.
Modern operating systems, booted inside Real mode,
| #include <stdio.h> | |
| int example(int a, int b) { | |
| return a + b + 3; | |
| } | |
| int main(void) { | |
| printf("%i\n", example(1, 2)); | |
| return 0; | |
| } |
| #!/bin/bash | |
| # | |
| # /usr/local/bin/git-shove | |
| # example: | |
| # git shove "#6: its easier when working alone--or with another very closely--to do smaller, more frequent commits" | |
| # | |
| git add -A && | |
| if [ $# -gt 0 ] | |
| then |
| avg = (a) -> | |
| sum = 0 | |
| for v in a | |
| sum += v | |
| sum / a.length | |
| cavg = (v, av, c) -> | |
| av + ((v - av) / c) | |
| console.log '---' |
| # monkey-patch Chef Git Provider | |
| # to raise the default ShellOut timeout setting | |
| # because this repo can take over 10min | |
| # to clone from github.com | |
| class ::Chef::Provider::Git | |
| def clone # based on opscode/chef commit b86c5b06 | |
| converge_by("clone from #{@new_resource.repository} into #{@new_resource.destination}") do | |
| remote = @new_resource.remote | |
| args = [] |
| #!/usr/bin/env ruby | |
| # vim: set ft=ruby : | |
| verb = ARGV[0] | |
| who = ARGV[1..-1] | |
| workers = %w{Zero Nasir Harsh Nino Victor Andy Abbas Atef} | |
| group = who.first.downcase == 'all'? workers : who | |
| group.each do |worker| | |
| next if %w{Zero}.include? worker # skip |
| #!/usr/bin/env ruby | |
| # vim: set ft=ruby : | |
| class Sax | |
| attr :b | |
| attr :s1 | |
| attr :s2 | |
| def initialize | |
| require 'bloops' | |
| # the bloops o' phone |
| #!/bin/sh | |
| echo to unload, combine on same line: | |
| echo pactl unload-module # to unload | |
| pactl load-module module-loopback; #latency_msec=1000 |
Reproduce; verify problem
(not estimatable; can only set a maximum cut-off time based on pain/worth)
in other words, if you could capture errors at the moment they happen (client-side error reporting),
as well as the steps that led up to them (user behavior analytics, determinism, demo recording),
| sudo apt-get install ejabberd | |
| sudo vim /etc/ejabberd/ejabberd.cfg | |
| # may optionally want to set the hostname and acl admin user, otherwise not required | |
| sudo /etc/init.d/ejabberd start | |
| ejabberdctl register mikesmullin localhost PaSsWoRD | |
| tail -f /var/log/ejabberd/*.log |