Skip to content

Instantly share code, notes, and snippets.

View bdossantos's full-sized avatar

Benjamin Dos Santos bdossantos

View GitHub Profile

Keybase proof

I hereby claim:

  • I am bdossantos on github.
  • I am bdossantos (https://keybase.io/bdossantos) on keybase.
  • I have a public key whose fingerprint is B413 4000 046D 988C 73EA 0BB1 543A C471 CEB1 05D9

To claim this, I am signing this object:

ata2.00: exception Emask 0x0 SAct 0x7f0000 SErr 0x0 action 0x6 frozen
ata2.00: failed command: WRITE FPDMA QUEUED
ata2.00: cmd 61/00:80:00:60:fa/04:00:e2:00:00/40 tag 16 ncq 524288 out
res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
ata2.00: status: { DRDY }
ata2.00: failed command: WRITE FPDMA QUEUED
ata2.00: cmd 61/00:88:00:64:fa/04:00:e2:00:00/40 tag 17 ncq 524288 out
res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
ata2.00: status: { DRDY }
ata2.00: failed command: WRITE FPDMA QUEUED
### Keybase proof
I hereby claim:
* I am bdossantos on github.
* I am bdossantos (https://keybase.io/bdossantos) on keybase.
* I have a public key whose fingerprint is 4E58 7A64 3999 B8F9 655A FCD4 45AA F7DF 9B7A 54FE
To claim this, I am signing this object:
#!/usr/bin/env ruby
## disconnect
# ./disconnect.rb -u yourusername
#
# This is a command-line utility for the bulk-downloading of run data from
# the connect.garmin.com web application, which has lackluster export
# capabilities.
#
@bdossantos
bdossantos / ruby-pkg.sh
Created February 15, 2014 15:23
Building Ruby package for Debian Wheezy
#!/usr/bin/env bash
#VERSION='2.0.0-p353'
VERSION='2.1.0'
CONFIGURE_OPTS='--disable-install-rdoc'
apt-get install ruby rubygems -y
gem install fpm --no-ri --no-rdoc
apt-get install build-essential openssl libreadline6 libreadline6-dev zlib1g \
@bdossantos
bdossantos / gist:8198302
Created December 31, 2013 15:23
UnixBenh - Serveur Dedibox WOPR 15K 2014
# # # # # # # ##### ###### # # #### # #
# # ## # # # # # # # ## # # # # #
# # # # # # ## ##### ##### # # # # ######
# # # # # # ## # # # # # # # # #
# # # ## # # # # # # # ## # # # #
#### # # # # # ##### ###### # # #### # #
Version 5.1.2 Based on the Byte Magazine Unix Benchmark
Multi-CPU version Version 5 revisions by Ian Smith,
{
"require": {},
"scripts": {
"post-install-cmd": [
"php symfony doctrine:build --all-classes --and-migrate",
"php symfony cc"
]
}
}
@bdossantos
bdossantos / ruby_pkg.sh
Created November 27, 2013 11:43
ruby_pkg.sh
#!/usr/bin/env bash
version='2.0.0'
patch='p247'
apt-get install ruby rubygems -y
gem install fpm --no-ri --no-rdoc
apt-get install build-essential openssl libreadline6 libreadline6-dev zlib1g \
zlib1g-dev libssl-dev ncurses-dev libyaml-dev -y
# /etc/fstab
# [...]
tmpfs /data/nginx/cache tmpfs size=4G,mode=0744,uid=www-data,gid=www-data 0 0
@bdossantos
bdossantos / gist:6975720
Created October 14, 2013 13:35
npm install uglify-js@1.2.5
❯ npm install uglify-js@1.2.5
npm http GET https://registry.npmjs.org/uglify-js/1.2.5
npm http 200 https://registry.npmjs.org/uglify-js/1.2.5
npm http GET https://registry.npmjs.org/uglify-js/-/uglify-js-1.2.5.tgz
npm http 200 https://registry.npmjs.org/uglify-js/-/uglify-js-1.2.5.tgz
uglify-js@1.2.5 node_modules/uglify-js