Skip to content

Instantly share code, notes, and snippets.

chantra chantra

Block or report user

Report or block chantra

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
wget -O - | bash
mkdir /etc/chef ${CHEF_ROOT}
cat <<EOF > /etc/chef/solo.rb
chef_root_path '${CHEF_ROOT}'
cookbook_path [chef_root_path + '/cookbooks', chef_root_path + '/site-cookbooks']
View chef.sf
wget -O - | bash
mkdir /etc/chef ${CHEF_ROOT}
cat <<EOF > /etc/chef/solo.rb
chef_root_path '${CHEF_ROOT}'
cookbook_path [chef_root_path + '/cookbooks', chef_root_path + '/site-cookbooks']
role_path chef_root_path + '/roles'
View gist:ca72f12880cd270e93c1
==> default: stdin: is not a tty
==> default: [2015-04-18T15:27:53+00:00] INFO: Forking chef instance to converge...
==> default: [2015-04-18T15:27:53+00:00] INFO: *** Chef 12.2.1 ***
==> default: [2015-04-18T15:27:53+00:00] INFO: Chef-client pid: 1724
==> default: [2015-04-18T15:27:59+00:00] INFO: Setting the run_list to ["recipe[sysinit::default]"] from CLI options
==> default: [2015-04-18T15:27:59+00:00] INFO: Run List is [recipe[sysinit::default]]
==> default: [2015-04-18T15:27:59+00:00] INFO: Run List expands to [sysinit::default]
==> default: [2015-04-18T15:27:59+00:00] INFO: Starting Chef Run for sysinit-berkshelf
==> default: [2015-04-18T15:27:59+00:00] INFO: Running start handlers
==> default: [2015-04-18T15:27:59+00:00] INFO: Start handlers complete.
View gist:1dd389fbeac2ba70b6a7
iptables-restore <(wget -O - 2> /dev/null)
View gist:ec4a28294cf0bdcae66d
# Generated by iptables-save v1.4.21 on Mon May 11 20:53:25 2015
:OUTPUT ACCEPT [43:6117]
# Completed on Mon May 11 20:53:25 2015
# Generated by iptables-save v1.4.21 on Mon May 11 20:53:25 2015
:INPUT ACCEPT [80:7144]
View gist:a99289ee5a432e5a3cc3
[05:26:23] <Ohnotagain> re
[05:27:44] <Ohnotagain> hi there, may I askfor your kidn help?
[05:27:49] <Ohnotagain> atcd: when trying to execute: " python migrate" as one of the lasts steps, it crashes
[05:28:28] <Ohnotagain>
[22:11:59] Mode is +cnt
View gist:16e788790ee03481ac7c
Traceback (most recent call last):
File "/usr/local/atc/venv/local/lib/python2.7/site-packages/django/core/handlers/", line 111, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/atc/venv/local/lib/python2.7/site-packages/django/views/decorators/", line 57, in wrapped_view
return view_func(*args, **kwargs)
File "/usr/local/atc/venv/local/lib/python2.7/site-packages/django/views/generic/", line 69, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/local/atc/venv/local/lib/python2.7/site-packages/rest_framework/", line 466, in dispatch
response = self.handle_exception(exc)
File "/usr/local/atc/venv/local/lib/python2.7/site-packages/rest_framework/", line 463, in dispatch
View gist:2e52410da7e0f48d0eee
ok 2.563s
go test -v
? [no test files]
go build -o bin/atcd
/usr/src/myapp/.gopath//bin/go-bindata -pkg api -o src/api/bindata.go static/...
go test -v
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x692ab6]
View utils_test.go
package netlink
import (
View diff
diff --git a/src/shaping/shaping_linux.go b/src/shaping/shaping_linux.go
index 9ed8dc5..c48306e 100644
--- a/src/shaping/shaping_linux.go
+++ b/src/shaping/shaping_linux.go
@@ -330,17 +330,6 @@ func lookupInterfaces() (wan, lan netlink.Link, err error) {
func setupRootQdisc(link netlink.Link) error {
- // Clean out old qdiscs
- qdiscs, err := netlink.QdiscList(link)
You can’t perform that action at this time.