Skip to content

Instantly share code, notes, and snippets.

View nwmcsween's full-sized avatar

Nathan nwmcsween

View GitHub Profile
@nwmcsween
nwmcsween / keybase.md
Created November 15, 2021 19:19
keybase.md

Keybase proof

I hereby claim:

  • I am nwmcsween on github.
  • I am nwmcsween (https://keybase.io/nwmcsween) on keybase.
  • I have a public key ASBv4NyTCuLTkhzxFsgaoXJFdOzKIBGbuamucBi22rqtGQo

To claim this, I am signing this object:

zpool create -f -o cachefile=/tmp/zpool.cache -m none -R /mnt/gentoo \
-o feature@async_destroy=enabled -o feature@empty_bpobj=enabled \
-o feature@spacemap_histogram=enabled -o feature@enabled_txg=enabled \
-o feature@hole_birth=enabled -o feature@embedded_data=enabled \
-o feature@extensible_dataset=enabled -o feature@bookmarks=enabled \
-o feature@lz4_compress=enabled pool /dev/sda3
zfs create -o mountpoint=/ -o relatime=on -o xattr=sa pool/exherbo-
zfs create -o mountpoint=/run/tmp -o relatime=on -o xattr=sa -o devices=off -o setuid=off -o logbias=throughput -o primarycache=metadata -o secondarycache=metadata -o exec=off -o compression=lz4 pool/rtmp
zfs create -o mountpoint=/var -o relatime=on -o xattr=sa -o devices=off -o setuid=off -o exec=off -o compression=lz4 pool/exherbo/var
var dirStream = function(dir, name, ext, trans) {
return hl(
dirs(dir).map(function(d) {
gulp.src(path.join(dir, d, '**/*') + ext);
})).merge().each(function(s) {
trans.forEach(function(t) {
return s.pipe(t);
});
});
};
From 722c69528e86c9c85469aa00908c206551e981ed Mon Sep 17 00:00:00 2001
From: Nathan McSween <nwmcsween@gmail.com>
Date: Fri, 6 Jul 2012 00:01:19 +0000
Subject: [PATCH] aio_readwrite - restructure, using switches removes a reg
spill in hotpath
---
src/aio/aio_readwrite.c | 65 ++++++++++++++++++++++++++---------------------
1 file changed, 36 insertions(+), 29 deletions(-)
  • test
  • nested code test: ````c if (a = b ) something;
@nwmcsween
nwmcsween / gcc_readdir.diff
Created July 3, 2012 22:33
__builtin_expect comparison
--- readdir.s 2012-07-03 16:24:35.568018624 +0000
+++ readdir_o.s 2012-07-03 16:24:06.528020576 +0000
@@ -12,9 +12,9 @@
movl 16(%rdi), %edx
movq %rdi, %rbx
cmpl 20(%rdi), %edx
+ jge .L7
+.L2:
movslq %edx, %rax
- jge .L8
--- readdir.s 2012-07-03 15:25:01.324857380 +0000
+++ readdir_o.s 2012-07-03 15:25:28.108185315 +0000
@@ -14,20 +14,8 @@
movq %rdi, %rbx
movl 16(%rbx), %eax
cmpl 20(%rbx), %eax
- jl .LBB0_3
-# BB#1:
- movl (%rbx), %edi
- leaq 32(%rbx), %rsi
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
rvm install ruby-1.9.2
rvm default ruby-1.9.2
gem install rails
rails new project_name -m http://datamapper.org/templates/rails.rb
cd project_name
bundle install
rails g scaffold user name:string
bundle exec rake db:automigrate
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
rvm install ruby-1.9.2
rvm default ruby-1.9.2
gem install rails
rails new project_name -m http://datamapper.org/templates/rails.rb
cd project_name
bundle install
rails g scaffold user name:string