Skip to content

Instantly share code, notes, and snippets.

View vnl's full-sized avatar
🏠
Working from home

Vivian Lobo vnl

🏠
Working from home
View GitHub Profile
{
"meta": {
"theme": "elegant"
},
"basics": {
"name": "Vivian Lobo",
"label": "Senior Solutions Architect at MongoDB",
"picture": "",
"email": "vivian@vivianlobo.com",
"phone": "",
@vnl
vnl / MediaDownloader.yaml
Created October 5, 2021 20:10
Docker-compose file which shows how to set up Sonarr, Radarr, Prowlarr, Lidarr, Jackett, QBittorrent and a VPN container so that all all traffic from the containers is routed through the VPN. Also includes get_iplayer containers, which is not routed through the VPN.
version: "3"
services:
vpn:
image: qmcgaw/gluetun
container_name: vpn
cap_add:
- NET_ADMIN
ports:
- 8888:8888/tcp # HTTP proxy
- 8388:8388/tcp # Shadowsocks
@vnl
vnl / Cloudflare - Update IP
Created September 20, 2021 06:48
This Docker image will allow you to use the free CloudFlare DNS Service as a Dynamic DNS Provider (DDNS).
version: '2'
services:
cloudflare-ddns:
image: oznu/cloudflare-ddns:latest
restart: always
environment:
- API_KEY=<YOUR API KEY>
- ZONE=<YOUR DOMAIN>
- PROXIED=true
- PUID=<YOUR UID>
@vnl
vnl / docker-compose.yml
Created September 8, 2021 08:32 — forked from Webreaper/docker-compose.yml
Sample Docker-compose file which shows how to set up Sonarr, Radarr, Jackett, Lidarr, QBittorrent and a VPN container so that all all traffic from the containers is routed through the VPN. Also includes Plex and get_iplayer containers, which are not routed through the VPN.
version: "2"
services:
expressvpn:
image: polkaned/expressvpn
container_name: expressvpn
environment:
- ACTIVATION_CODE=YOUR_CODE_HERE
cap_add:
- NET_ADMIN
devices:
@vnl
vnl / AllGattCharacteristics.java
Created February 16, 2021 11:46 — forked from sam016/AllGattCharacteristics.java
Bluetooth GATT Services & Characteristics
package com.sam016.vsflatomation.service.ble;
import java.util.HashMap;
import java.util.UUID;
public class AllGattCharacteristics {
private static HashMap<String, String> attributes = new HashMap();
static {
attributes.put("00002a00-0000-1000-8000-00805f9b34fb", "Device Name");
@vnl
vnl / BoostNamingConvention.cpp
Created January 13, 2019 14:15
Boost Naming Convention
#ifndef NAMESPACE_NAMES_THEN_PRIMARY_CLASS_OR_FUNCTION_THEN_HPP
#define NAMESPACE_NAMES_THEN_PRIMARY_CLASS_OR_FUNCTION_THEN_HPP
#include <boost/headers/go/first>
#include <boost/in_alphabetical/order>
#include <then_standard_headers>
#include <in_alphabetical_order>
#include "then/any/detail/headers"
#include "in/alphabetical/order"
@vnl
vnl / .bash_profile
Created January 12, 2019 20:14 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@vnl
vnl / gist:baaa53002168f00a8d17e7a3cfea194f
Created October 30, 2018 15:42
Resolve Build Paths - Java project
1-Right CLick on your project folder, Choose Build Path > Configure Build Path
2-Select Libraries Tab and delete any arbitrary library present there.
3-Click on Add Library option, Select JRE System Library and click Next.
4-Choose last Radiobutton option Workspace default JRE and click Finish.
5-press f5 for refresh.
6-run ur program .
@vnl
vnl / Paste to Markdown
Created September 25, 2018 15:13
html/rich text to Markdown
https://euangoddard.github.io/clipboard2markdown/
@vnl
vnl / ChromeUpdatesDisabled
Created September 17, 2018 11:00
How to update chrome if disabled by administrator
Step 01. Go to Windows Start Button on the left bottom and Click on Run.
Step 02. Type in regedit on the run.
Step 03. go to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Update
Step 04. Double Click on the UpdateDefault and or other entries
Step 05. Change the value from 0 to 1 for all of the entries