Skip to content

Instantly share code, notes, and snippets.

View dougluce's full-sized avatar

Doug Luce dougluce

View GitHub Profile
[0] % cap production deploy
triggering load callbacks
* executing `production'
triggering start callbacks for `deploy'
* executing `multistage:ensure'
* executing `deploy'
** transaction: start
* executing `deploy:web:disable'
servers: ["67.214.219.108"]
** sftp upload #<StringIO:0x007fb1ec006928> -> /home/deploy/hcd-connect/shared/shared_assets/maintenance.html
bitbake -v quilt
NOTE: Psyco JIT Compiler (http://psyco.sf.net) not available. Install it to increase performance.
Loading cache: 100% |##########################################################################################| Time: 00:00:02
Loaded 7054 entries from dependency cache.
NOTE: angstrom DOES NOT support linux-hotplug because hotplug functionality is provided by udev | ETA: --:--:--
NOTE: angstrom DOES NOT support hotplug2 because hotplug functionality is provided by udev
NOTE: angstrom DOES NOT support ffmpeg because libav is the preferred multimedia library | ETA: 00:00:14
NOTE: angstrom DOES NOT support hotplug-ng because hotplug functionality is provided by udev | ETA: 00:00:14
NOTE: angstrom DOES NOT support libiconv because the glibc builtin iconv replacement is used | ETA: 00:00:13
NOTE: angstrom DOES NOT support bash-noemu because doesn't work on the target | ETA: 00:00:12
DL_DIR = "${HOME}/sources"
BBFILES="/home/doug/oe/openembedded/recipes/*/*.bb"
DISTRO="angstrom-2010.x"
MACHINE="var-som-am35"
ASSUME_PROVIDED += "help2man-native"
PREFERRED_PROVIDERS = "virtual/qte:qte virtual/libqpe:libqpe-opie"
PREFERRED_PROVIDERS += " virtual/libsdl:libsdl-x11"
(changes to the boilerplate lib/server/index.js)
server = module.exports = http.createServer(expressApp);
server.listen = (function() {
var original_listen = server.listen;
return function(port, callback) {
original_listen(port, "10.144.119.121", callback);
}})();
@dougluce
dougluce / signup.js
Last active December 16, 2015 15:19
Litcoffee not doing the right thing? Or is that me?
// Generated by CoffeeScript 1.6.2
(function() {
$scope.goto = function(url) {
return $window.location.href = '/';
};
$scope.delay = function(test) {
if ($scope.form_submitted) {
return test;
}
/Users/dougluce/src/node-login/node_modules/coffee-script/lib/coffee-script/helpers.js:229
codeLine = codeLine.slice(0, start) + colorize(codeLine.slice(start, end
^
TypeError: Cannot call method 'slice' of undefined
at Object.exports.prettyErrorMessage (/Users/dougluce/src/node-login/node_modules/coffee-script/lib/coffee-script/helpers.js:229:27)
at compileScript (/Users/dougluce/src/node-login/node_modules/coffee-script/lib/coffee-script/command.js:203:25)
at /Users/dougluce/src/node-login/node_modules/coffee-script/lib/coffee-script/command.js:144:18
at fs.js:266:14
at Object.oncomplete (fs.js:107:15)
% ls -l /usr/local/bin | grep -v Cellar
total 2672
lrwxrwxr-x 1 dougluce admin 26 Apr 23 12:26 ack ->
lrwxrwxr-x 1 dougluce admin 39 Apr 21 19:12 agentxtrap -> MDiw
lrwxrwxr-x 1 dougluce admin 32 Apr 21 12:44 alpine ->
-rwxr-xr-x 1 dougluce admin 703 Apr 21 10:31 brew
��Ί���+�-x 1 dougluce admin 29 Apr 21 10:59 ctags -> ��
�3�5�z�z
lrwxrwxr-x 1 dougluce admin 29 Apr 21 13:12 git -> �ނQA�G52P$��t��X!����1
lrwxrwxr-x 1 dougluce admin 39 Apr 21 13:12 git-cvsserver -> ���9��v)�84����@��)ʁ�X��]r�zu�
@dougluce
dougluce / Makefile
Last active August 29, 2015 14:15
Example kernel module to cat MOTD
KMOD = motd_kmod
SRCS = motd_kmod.c
.include <bsd.kmod.mk>
@dougluce
dougluce / gist:894708c4ea2456b78fd7
Last active August 29, 2015 14:16
Suppression file for yaq.c
{
<insert_a_suppression_name_here>
Memcheck:Cond
fun:_platform_memchr$VARIANT$Haswell
fun:__sfvwrite
fun:__vfprintf
fun:__v2printf
fun:__xvprintf
fun:vfprintf_l
fun:printf
- name: Ensure .ssh directory exists.
file: dest={{ key_file | dirname }} mode=700 owner=ansible state=directory
- name: Install ssh key
copy: content="{{ ssh_key }}" dest={{ key_file }} mode=600 owner=ansible