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 / 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 <j@w1.fi> and contributors
This software may be distributed under the terms of the BSD license.
@goldfish07
goldfish07 / apache-maven_installation
Created June 9, 2018 23:38
How to install maven onn latest Ubuntu 18.04 bionic
###########Installing Apache maven on Ubuntu 18.04######################
Note :- do this installtion process as SuperUser
Step 1 -Install Java on Ubuntu 18.04
In this tutorial, we will be using the Java packages from the PPA repository, so we need to add the Java PPA Repository to the system.
Before adding a new repository, install the 'software-properties-common' package using the apt command below.
@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;
pigz is a parallel version of gzip.
Although it only uses a single thread for decompression,
it starts 3 additional threads for reading, writing, and check calculation.
Your results may vary but we have seen significant improvement in decompression of some of our data sets.
Once you install pigz by (sudo apt-get install pigz) the tar file can be extracted with:
pigz -dc target.tar.gz | tar xf - -v(verbose logging)