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
Name: Flash
Serial: eNrzzU/OLi0odswsqnHLSSzOqDGoca7JKCkpsNLXLy8v1ytJTczVLUotKNFLzs8FAJHYETc=
if anyone wants to thank ETH: 0x527c2aB55b744D6167dc981576318af96ed26676
Thank you!
@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 -----
@XeroHero
XeroHero / _README.md
Created October 14, 2018 14:27 — forked from mauriciopoppe/_README.md
Generic Makefile example for a C++ project

#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:

grade = int(input("Please enter a grade. I will tell you if you passed or not!"))
if (grade > 40):
print("You passed! Genius!")
else:
print("Try harder next time!")
@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)
[
{
"id": 540814,
"title": "Chicken Meatball Bento",
"image": "https://spoonacular.com/recipeImages/540814-312x231.jpg",
"imageType": "jpg",
"usedIngredientCount": 3,
"missedIngredientCount": 6,
"missedIngredients": [
{
#### 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 / privacy policy.txt
Created June 6, 2020 17:15
Dublin Public Bikes Privacy Policy
NB: This app does not store or use any personal data, aside from your location tracked through GPS/mobile network and used for the sole purpose of providing you with the informations on nearby Bike Stations.
I will not disclose this data (I have no interest in doing so myself).
For the long-winded Ts & Cs, read below:
Among the types of Personal Data that this Application collects, by itself or through third parties, there are: geographic position.
Complete details on each type of Personal Data collected are provided in the dedicated sections of this privacy policy or by specific explanation texts displayed prior to the Data collection.
Personal Data may be freely provided by the User, or, in case of Usage Data, collected automatically when using this Application.
Unless specified otherwise, all Data requested by this Application is mandatory and failure to provide this Data may make it impossible for this Application to provide its services. In cases where this Application specifically states that some D
@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