Skip to content

Instantly share code, notes, and snippets.

View goldfish07's full-sized avatar
🎯
Focusing

Ayush Bisht goldfish07

🎯
Focusing
  • India, Uttrakhand, Kotdwara
View GitHub Profile
@goldfish07
goldfish07 / UserPanelDialogFragment.java
Created April 24, 2018 10:15 — forked from ishitcno1/UserPanelDialogFragment.java
A custom DialogFragment that can be positioned and set size. Make sure to use 9patch background. Ref: http://stackoverflow.com/questions/9698410/position-of-dialogfragment-in-android
public class UserPanelDialogFragment extends DialogFragment implements View.OnClickListener {
private boolean isLogin = false;
private TextView mRegister;
private TextView mLogin;
private TextView mFeedback;
private TextView mUserId;
private TextView mLogout;
@goldfish07
goldfish07 / wpa_cli
Created July 5, 2019 13:47 — forked from buhman/00 wpa_cli passphrase network
wpa_cli example; it might be worth mention that you can tab-complete all wpa_supplicant commands
[zack@leto ~]$ sudo tee << EOF /etc/wpa_supplicant.conf > /dev/null
ctrl_interface=/run/wpa_supplicant
EOF
[zack@leto ~]$ sudo wpa_supplicant -iwlp1s0 -Dnl80211 -c/etc/wpa_supplicant.conf -B
Successfully initialized wpa_supplicant
[zack@leto ~]$ sudo wpa_cli
wpa_cli v2.0
Copyright (c) 2004-2012, Jouni Malinen <[email protected]> and contributors
This software may be distributed under the terms of the BSD license.