This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<android.support.v7.widget.RecyclerView | |
android:id="@android:id/list" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
style="@style/myRecyclerViewStyle"/> | |
<me.henrytao.smoothappbarlayout.SmoothAppBarLayout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Cookbook Name:: s3_backups | |
# Recipe:: default | |
# Author:: Todd Zusman (toddzusman.com) | |
# | |
execute "apt-get update" do | |
action :nothing | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# DO NOT RESPOND TO REQUESTS OTHER THAN yourdomain.com | |
server { | |
listen 80 default; | |
server_name _; | |
return 444; | |
} | |
# FILE UPLOADS | |
server { | |
listen 80; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class LibdnetPython <Formula | |
depends_on 'libdnet' | |
url 'http://libdnet.googlecode.com/files/libdnet-1.12.tgz' | |
homepage 'http://code.google.com/p/libdnet/' | |
sha1 '71302be302e84fc19b559e811951b5d600d976f8' | |
def install | |
ENV["CFLAGS"] = "-O3 -w -pipe" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (C) 2013 Polychrom Pty Ltd | |
// | |
// This program is licensed under the 3-clause "Modified" BSD license, | |
// see LICENSE file for full definition. | |
package com.polychrom.examples; | |
import java.util.concurrent.ExecutorService; | |
import android.app.Activity; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Python/Twisted/Redis backed DNS server - resolves from NAME to IP addrs | |
# fallback to google or any other DNS server to resolv domains not present on Redis | |
# to set a new domain on redis, just issue a SET domain.tld ip_addr | |
# run with twistd -ny txredns.tac | |
# gleicon 2011 | |
from twisted.names import dns, server, client, cache | |
from twisted.application import service, internet | |
from twisted.internet import defer | |
from twisted.python import log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Configure eth0 | |
# | |
# vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
DEVICE="eth0" | |
NM_CONTROLLED="yes" | |
ONBOOT=yes | |
HWADDR=A4:BA:DB:37:F1:04 | |
TYPE=Ethernet | |
BOOTPROTO=static |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (C) 2013 Polychrom Pty Ltd | |
// | |
// This program is licensed under the 3-clause "Modified" BSD license, | |
// see LICENSE file for full definition. | |
package com.polychrom.examples; | |
import java.util.concurrent.ExecutorService; | |
import android.app.Activity; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# dns server using dnslib and gevent | |
# based on https://bitbucket.org/paulc/dnslib/src/80d85555aae4/src/server/gevent_server.py | |
# set the key as | |
# set IP:name ip_addr | |
# set TXT:name txtfield | |
# fallback on gevent's dns resolver | |
# gleicon 2011 | |
import gevent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
03-20 23:33:28.768 7141-8096/com.dostow.apps.internal D/LeakCanary: In com.dostow.apps.internal:0.0.1:1. | |
03-20 23:33:28.768 7141-8096/com.dostow.apps.internal D/LeakCanary: * com.dostow.apps.ui.college.CollegeActivity has leaked: | |
03-20 23:33:28.768 7141-8096/com.dostow.apps.internal D/LeakCanary: * GC ROOT android.accounts.AccountManager$BaseFutureTask$Response.this$1 | |
03-20 23:33:28.768 7141-8096/com.dostow.apps.internal D/LeakCanary: * references android.accounts.AccountManager$3.mCallback (anonymous class extends android.accounts.AccountManager$Future2Task) | |
03-20 23:33:28.768 7141-8096/com.dostow.apps.internal D/LeakCanary: * references android.accounts.AccountManager$GetAuthTokenByTypeAndFeaturesTask$1.this$1 (anonymous class implements android.accounts.AccountManagerCallback) | |
03-20 23:33:28.769 7141-8096/com.dostow.apps.internal D/LeakCanary: * references android.accounts.AccountManager$GetAuthTokenByTypeAndFeaturesTask.mActivity | |
03-20 23:33:28.769 7141-8096/com.dostow.apps.internal D/LeakCanary: * leaks |