Skip to content

Instantly share code, notes, and snippets.

View danielb2's full-sized avatar

Daniel Bretoi danielb2

View GitHub Profile
[/usr/home/daniel]$ pss fish
daniel 40928 0.0 0.1 36656 5808 - Is 5:09PM 0:00.37 /usr/local/bin/fishd
daniel 40926 0.0 0.1 37440 6696 1 S+ 5:09PM 0:00.16 fish
[daniel@luffy]--(17:09:41)
[/usr/home/daniel]$ gdb -p 40926
GNU gdb (GDB) 7.8 [GDB v7.8 for FreeBSD]
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
mmap(0x0,32768,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANON,-1,0x0) = 34367037440 (0x8006f6000)
issetugid(0x8008f6a20,0x7fffffffefcc,0x40,0x0,0xffff8008008f7a54,0x0) = 0 (0x0)
lstat("/etc",{ mode=drwxr-xr-x ,inode=24,size=109,blksize=7168 }) = 0 (0x0)
lstat("/etc/libmap.conf",{ mode=-rw-r--r-- ,inode=232,size=107,blksize=4096 }) = 0 (0x0)
open("/etc/libmap.conf",O_CLOEXEC,01760) = 3 (0x3)
fstat(3,{ mode=-rw-r--r-- ,inode=232,size=107,blksize=4096 }) = 0 (0x0)
mmap(0x0,107,PROT_READ,MAP_PRIVATE,3,0x0) = 34367070208 (0x8006fe000)
close(3) = 0 (0x0)
lstat("/usr",{ mode=drwxr-xr-x ,inode=9,size=16,blksize=4096 }) = 0 (0x0)
lstat("/usr/local",{ mode=drwxr-xr-x ,inode=563,size=12,blksize=4096 }) = 0 (0x0)
===>>> The following actions will be taken if you choose to proceed:
Install net/netatalk3
Install databases/db5
Install devel/dbus-glib
Install devel/dbus
Install sysutils/gnome_subr
Install textproc/expat2
Install textproc/xmlto
Install misc/getopt
#!/usr/bin/env ruby
# encoding: utf-8
issue_no = ARGV.shift
system "git co -b issue.#{issue_no}-" + ARGV.join('.')
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.ilovezfs.mac.zfs.zpool-import</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/sbin/zpool</string>
<string>import</string>
import weechat
SCRIPT_NAME = "test"
SCRIPT_AUTHOR = "test"
SCRIPT_VERSION = "0.0"
SCRIPT_LICENSE = "GPL3"
SCRIPT_DESC = "test"
[~/tmp/foo]$ cat .gitignore
*.gem
*.rbc
.bundle
.config
.yardoc
Gemfile.lock
InstalledFiles
_yardoc
coverage
ralias "irb irb -r 'irb/completion'"
ralias "grep grep --color=always"
ralias "urls vim #{ENV['HOME']}/misc/urls"
ralias "bos vim #{ENV['HOME']}/misc/bos"
ralias "contacts vim #{ENV['HOME']}/misc/contacts"
ralias 'findd find . | grep -i'
ralias 'phpi rlwrap -a -- php -a'
ralias 'ls ls -Gh'
#ralias 'pss ps wuax | grep -i'
#ralias 'ls gls -h --color'
set-option -g prefix C-a
set default-path $PWD
unbind-key C-b
bind-key C-a last-window
bind-key a send-prefix # allows to send ctrl-a directly to window
bind-key space next-window
bind-key C-space next-window
bind-key l select-pane -L
bind-key h select-pane -R
require 'spec_helper'
describe InvitesController do
def mock_invite(stubs={})
@mock_invite ||= mock_model(Invite, stubs).as_null_object
end
describe "GET index" do
it "assigns all invites as @invites" do