Skip to content

Instantly share code, notes, and snippets.

View XeroHero's full-sized avatar
:shipit:
Quality? Let's build it in to everything we code!

Lorenzo Battilocchi XeroHero

:shipit:
Quality? Let's build it in to everything we code!
View GitHub Profile
@XeroHero
XeroHero / adbUsefulCommands.sh
Last active March 15, 2021 10:27 — forked from aminone/adbUsefulCommands.sh
A collection of Android Debug Bridge (ADB) commands
# To get file
adb pull <PATH/TO/FILE/ON/DEVICE> #This pulls the file from the device to the directory from which the command is being executed
# To push file
adb push <PATH/TO/FILE> <PATH/TO/DESTINATION>
# To get wifi MAC address
adb shell cat /sys/class/net/wlan0/address
# To get IP Address
#### Step 1 - Get your Pi ready ####
sudo raspi-config #Expand File system and enable SSH
sudo apt-get update
sudo apt-get upgrade
#### Step 2 - Install TVheadend ####
sudo apt-get install dirmngr
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61
@XeroHero
XeroHero / letsencrypt_esxi.sh
Created November 4, 2019 14:03 — forked from shr00mie/letsencrypt_esxi.sh
Let's Encrypt SSL for ESXi
#!/bin/bash
#
## -------------------------------=[ Info ]=--------------------------------- ##
#
# Generate letsencrypt cert on local server and scp to esxi target.
# Designed and tested on Ubuntu 16.04LTS.
# Assumes you have upnp control over local network. Tested with Ubiquiti USG.
#
# Dependencies:
# miniupnpc (sudo apt install miniupnpc)

#Mac Network Commands Cheat Sheet

After writing up the presentation for MacSysAdmin in Sweden, I decided to go ahead and throw these into a quick cheat sheet for anyone who’d like to have them all in one place. Good luck out there, and stay salty.

##Get an ip address for en0:

ipconfig getifaddr en0

###Same thing, but setting and echoing a variable:

@XeroHero
XeroHero / _README.md
Created October 14, 2018 14:27 — forked from mauriciopoppe/_README.md
Generic Makefile example for a C++ project
@XeroHero
XeroHero / LICENCE SUBLIME TEXT
Created September 11, 2018 13:53
Sublime Text 3 Serial key build is 3176
## Sublime Text 3 Serial key build is 3176
> * Added these lines into /etc/hosts
127.0.0.1 www.sublimetext.com
127.0.0.1 license.sublimehq.com
> * Used the license key
----- BEGIN LICENSE -----
Name: Flash
Serial: eNrzzU/OLi0odswsqnHLSSzOqDGoca7JKCkpsNLXLy8v1ytJTczVLUotKNFLzs8FAJHYETc=
if anyone wants to thank ETH: 0x527c2aB55b744D6167dc981576318af96ed26676
Thank you!