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
View postinst.sh
#!/bin/bash
CHEF_ROOT=/usr/local/chef
VG=vg
wget http://www.opscode.com/chef/install.sh -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
#!/bin/bash
CHEF_ROOT=/usr/local/chef
wget http://www.opscode.com/chef/install.sh -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:ec4a28294cf0bdcae66d
# Generated by iptables-save v1.4.21 on Mon May 11 20:53:25 2015
*raw
:PREROUTING ACCEPT [69:6704]
:OUTPUT ACCEPT [43:6117]
COMMIT
# Completed on Mon May 11 20:53:25 2015
# Generated by iptables-save v1.4.21 on Mon May 11 20:53:25 2015
*filter
:INPUT ACCEPT [80:7144]
:FORWARD ACCEPT [0:0]
View gist:1dd389fbeac2ba70b6a7
iptables-restore <(wget https://gist.githubusercontent.com/chantra/ec4a28294cf0bdcae66d/raw/2b34e5933f6d891b180885afd6c50087b6e2e0aa/gistfile1.txt -O - 2> /dev/null)
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 manage.py migrate" as one of the lasts steps, it crashes
[05:28:28] <Ohnotagain> http://pastebin.com/cLcWdyV9
[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/base.py", 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/csrf.py", line 57, in wrapped_view
return view_func(*args, **kwargs)
File "/usr/local/atc/venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/local/atc/venv/local/lib/python2.7/site-packages/rest_framework/views.py", line 466, in dispatch
response = self.handle_exception(exc)
File "/usr/local/atc/venv/local/lib/python2.7/site-packages/rest_framework/views.py", line 463, in dispatch
View gist:2e52410da7e0f48d0eee
ok github.com/facebook/augmented-traffic-control/src/daemon 2.563s
go test -v github.com/facebook/augmented-traffic-control/src/atcd
? github.com/facebook/augmented-traffic-control/src/atcd [no test files]
go build -o bin/atcd github.com/facebook/augmented-traffic-control/src/atcd
/usr/src/myapp/.gopath//bin/go-bindata -pkg api -o src/api/bindata.go static/...
.gopath/src/github.com/facebook/augmented-traffic-control/src/api/bindata.go
go test -v github.com/facebook/augmented-traffic-control/src/api
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 (
"encoding/hex"
"fmt"
"os/exec"
"github.com/vishvananda/netlink/nl"
)
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.