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
#!/bin/bash
#PiVPN install
curl -L https://install.pivpn.io > install.sh
chmod +x install.sh
./install.sh --unattended options.conf
#create profile for WG
pivpn -a -n VPN;
[
{
"id": 1,
"header": "What is Netflix?",
"body": "Netflix is a streaming service that offers a wide variety of award-winning TV programmes, films, anime, documentaries and more – on thousands of internet-connected devices.\n\nYou can watch as much as you want, whenever you want, without a single advert – all for one low monthly price. There's always something new to discover, and new TV programmes and films are added every week!"
},
{
"id": 2,
"header": "How much does Netflix cost?",
"body": "Watch Netflix on your smartphone, tablet, smart TV, laptop or streaming device, all for one low fixed monthly fee. Plans start from £5.99 a month. No extra costs or contracts."
[
{
"id": 1,
"title": "Enjoy on your TV.",
"subTitle": "Watch on smart TVs, PlayStation, Xbox, Chromecast, Apple TV, Blu-ray players and more.",
"image": "/images/misc/home-tv.jpg",
"alt": "Tiger King on Netflix",
"direction": "row"
},
{
@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
@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
#### 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
[
{
"id": 540814,
"title": "Chicken Meatball Bento",
"image": "https://spoonacular.com/recipeImages/540814-312x231.jpg",
"imageType": "jpg",
"usedIngredientCount": 3,
"missedIngredientCount": 6,
"missedIngredients": [
{
@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)
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!")