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
#!/bin/bash | |
set -e | |
ensure_installed() { | |
command -v $1 >/dev/null 2>&1 || { echo -e >&2 "$1 not found.\nTry: sudo apt-get install $1.\nAborting."; exit 1; } | |
} | |
function usage() { | |
cat << EOF |
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
#!/bin/sh | |
set -e | |
ensure_installed() { | |
command -v $1 >/dev/null 2>&1 || { echo -e >&2 "$1 not found.\nTry: sudo apt-get install $1.\nAborting."; exit 1; } | |
} | |
CFGDIR=$HOME/.encfs | |
CFGFILE=.mountsettings |
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
package recyclerview.adapter; | |
import android.support.v7.widget.RecyclerView; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Collection; | |
import java.util.Collections; | |
import java.util.Comparator; | |
import java.util.List; |
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
package recyclerview.adapter; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.ViewGroup; | |
@SuppressWarnings("unchecked") | |
public class WrapperRecyclerAdapter extends RecyclerView.Adapter { | |
private final RecyclerView.Adapter mAdapter; |
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
package recyclerview.adapter; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.Map; |
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
--- a/drivers/net/wireless/ath/regd.c | |
+++ b/drivers/net/wireless/ath/regd.c | |
@@ -341,6 +341,10 @@ ath_reg_apply_beaconing_flags(struct wip | |
struct ieee80211_channel *ch; | |
unsigned int i; | |
+#ifdef CONFIG_ATH_USER_REGD | |
+ return; | |
+#endif | |
+ |
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
##### hostapd configuration file ############################################## | |
# Empty lines and lines starting with # are ignored | |
# AP netdevice name (without 'ap' postfix, i.e., wlan0 uses wlan0ap for | |
# management frames with the Host AP driver); wlan0 with many nl80211 drivers | |
interface=wlan0 | |
# In case of atheros and nl80211 driver interfaces, an additional | |
# configuration parameter, bridge, may be used to notify hostapd if the | |
# interface is included in a bridge. This parameter is not used with Host AP |
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
import android.content.BroadcastReceiver; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.IntentFilter; | |
import android.os.Build; | |
import android.os.PowerManager; | |
import android.support.annotation.NonNull; | |
import android.support.v4.view.ViewCompat; | |
import android.view.View; |
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
import java.math.BigInteger; | |
final public class Base63 { | |
static public final char[] CHARSET = new char[]{'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','_'}; | |
static private final BigInteger BASE = BigInteger.valueOf(CHARSET.length); | |
public static String encode(BigInteger integer) { | |
final StringBuilder sb = new StringBuilder(); | |
BigInteger[] r = new BigInteger[]{integer, null}; |
OlderNewer