Skip to content

Instantly share code, notes, and snippets.

@Ircama
Ircama / LgMagicRemoteKeys.md
Last active April 28, 2024 23:48
Replacing Netflix and Amazon keys of the webOS LG TV LG Magic Remote with other apps

Replacing Netflix and Amazon keys of the webOS LG TV LG Magic Remote with other apps

This procedure allows substituting one or both Netflix and Amazon keys of the Magic Remote Control Unit with other apps or TV control menus of the webOS LG TV.

Netflix and Amazon keys can be found just over the Red-Green-Yellow-Blue color buttons of such remote.

Assumption for this procedure is that you accept to uninstall the apps related to the keys to be substituted. Example: if you want to replace the Netflix key, you need to uninstall Netflix (possibly, you are not using Netflix if you do not need such key).

To uninstall Netflix or Amazon Prime, press the Home key of the Magic Remote, select the "LG Content Store" app, press "APP" at the top of the screen, press "My Apps", press the "Rem

@DarthJahus
DarthJahus / ExifFolders.py
Created September 8, 2019 22:21
Read EXIF data from image and video files and sort theses files in a custom structure (folders and subfolders representing years, months and days…).
from PIL import ExifTags, Image
from os import listdir, mkdir
from os.path import isfile, join, isdir, getmtime
from datetime import datetime
import shutil
files = [f for f in listdir('.') if isfile(join('.', f))]
__folder_structure = ["%Y", "%Y-%m (%Y-%B)", "%Y-%m-%d"]
@douglasmiranda
douglasmiranda / instructions.md
Created July 19, 2018 05:51
Add email to Keybase.io PGP Key (Public Key)

Export your public key:

keybase pgp export > keybase-public.key

Export your private key:

keybase pgp export --secret > keybase-private.key
@okeehou
okeehou / outline-server-setup.md
Last active April 30, 2024 13:04
How to setup an Outline VPN Server on Ubuntu 16.04

How to setup an Outline VPN Server on Ubuntu 16.04 Server

This guide will show you how to install Outline Server on an Ubuntu 16.04 Server, use Outline Manager for Windows and connect to your Outline Server on Windows and Anroid.

Install Outline Manager

Outline Manager supports Windows, macOS and Linux.

Outline Manager for Windows

Installation de HomeBrew pour 11.2/11.3 + JKSM

Préparatifs

  1. Télécharger ce ZIP : http://smealum.github.io/ninjhax2/starter.zip
  2. Prendre le fichier .m4a de Soundhax (il dépend de la région de ta DS et du modèle) : http://soundhax.com/
  3. Prendre le "payload" ici (dépend du modèle et du firmware) : https://smealum.github.io/3ds/#otherapp
  4. Prendre JKSM : https://github.com/J-D-K/JKSM/releases/download/6-30-2016/JKSM.6-30-2016.zip

Installation

a. Dans le starter.zip, il y a un dossier starter ; c'est le contenu de ce dossier qu'il faut copier vers la racine de la Carte SD ;

@neuni
neuni / openvpn_on_google_cloud.md
Created February 28, 2017 13:34
Create a openVPN server on Google Cloud Platform to connect to your Google Cloud network using openVPN and/or to route your internet traffic through the VPN (Road Warrior Scenario)

Install openVPN server on Google Cloud using Pritunl

Purpose:

Create a openVPN server on Google Cloud Platform to connect to your Google Cloud network using openVPN and/or to route your internet traffic through the VPN (Road Warrior Scenario)

Create instance

  • Create new instance in default network
  • Chosse Ubuntu 16.04 LTS
// Jahus, 2016-07-11 01:42 GMT+1
// Fonction qui renvoie un dictionnaire composé des paramètres et de leurs valeurs
public Dictionary<string, string> GetURIParams(string strURI)
{
Regex rx = new Regex("[?|&]([^=]+)=([^&]+)"); // Cherche tous les paramètres dans une URI
MatchCollection rxm = rx.Matches(strURI); // Effectue la recherche dans l'URI "MyInput"
Dictionary<string, string> Params = new Dictionary<string, string>(); // Crée un dictionnaire des paramètres
@DarthJahus
DarthJahus / keybase.md
Last active January 8, 2018 01:08
keybase.md

Keybase proof

I hereby claim:

  • I am darthjahus on github.
  • I am jahus (https://keybase.io/jahus) on keybase.
  • I have a public key ASDkGAQew4GIsMVYWnECTpTgsG_5VRFyL489t8mZ1TCdIwo

To claim this, I am signing this object:

@gterzian
gterzian / gist:6400170
Last active May 15, 2019 16:57
Ruby's method_missing in Python...
import unittest
from functools import partial
class MethodMissing:
def method_missing(self, name, *args, **kwargs):
'''please implement'''
raise NotImplementedError('please implement a "method_missing" method')
def __getattr__(self, name):
return partial(self.method_missing, name)
@mmdemirbas
mmdemirbas / set-ntfs-ro.ps1
Created March 23, 2013 20:54
PowerShell script to set or clear NTFS read-only flag of a volume by volume label
#########################################################################
# #
# Script to set or clear read-only flag of an NTFS volume. #
# #
# Usage: .\set-ntfs-ro.ps1 set "MY DISK LABEL" #
# .\set-ntfs-ro.ps1 clear "MY DISK LABEL" #
# #
# Author: Muhammed Demirbas, mmdemirbas at gmail dot com #
# Date : 2013-03-23 #
# #