Skip to content

Instantly share code, notes, and snippets.

View carlosjs23's full-sized avatar

Carlos A. Escobar carlosjs23

  • Montería, Colombia.
  • 12:26 (UTC -05:00)
View GitHub Profile
@carlosjs23
carlosjs23 / wifibug.fix
Created October 15, 2016 02:19
Fix wifi bug after sleep Ubuntu 16.04
1. sudo lshw -class network
2 Get your card model info ex: RTL8723BE
3. Open or create /etc/pm/config.d/config and add SUSPEND_MODULES="rtl8723be"(replace rtl8723be with your own model number)
4. run echo "options rtl8723be fwlps=N" | sudo tee /etc/modprobe.d/rtl8723be.conf
5. reboot.
Done.
@carlosjs23
carlosjs23 / timeout-ssh
Created October 15, 2016 02:26
Remove SSH timeout
1. Open /etc/ssh/sshd_config
2. Search for #TCPKeepAlive yes -> uncoment it, then set to no
3. Search for #ClientAliveInterval 0 -> uncoment it, then set to 30
4. Search for #ClientAliveCountMax 3 -> uncoment it, then set to 100
5. Save and restart: systemctl restart sshd
@carlosjs23
carlosjs23 / quick-ssh-connection
Created October 15, 2016 02:32
How to quickly connect to an SSH Server
1. Open or create ~/.ssh/config file.
2. Put your ssh configs like this example:
Host node1
Hostname 172.16.0.2
User carlos
Port 1022
3. Enter as many blocks as you want.
4. Save and then use: ssh node1 to connect.
@carlosjs23
carlosjs23 / MapsFragment
Last active November 9, 2016 15:49 — forked from joshdholtz/SomeFragment.java
Android Google Maps V2 - MapView in XML
public class MapsFragment extends Fragment implements OnMapReadyCallback {
MapView mapView;
GoogleMap mMap;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.map_layout, container, false);

Keybase proof

I hereby claim:

  • I am carlosjs23 on github.
  • I am colnet (https://keybase.io/colnet) on keybase.
  • I have a public key ASDtCcYSf05ZJrHw8BGKU0Jwc4JSVpkilWnUy7VD-cIv3Qo

To claim this, I am signing this object:

[  +36 ms] [/Users/carlos/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +49 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/beta
[        ] [/Users/carlos/flutter/] git rev-parse --abbrev-ref HEAD
[  +13 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] beta
[        ] [/Users/carlos/flutter/] git ls-remote --get-url origin
[  +14 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git