Skip to content

Instantly share code, notes, and snippets.

Verifying my identity on Peepeth.com 0xd0e429d6769d6ac6b307a4a230130962bc1bf10d
@DarthJahus
DarthJahus / outline-server-setup.md
Created June 23, 2018 10:28 — forked from okeehou/outline-server-setup.md
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

@DarthJahus
DarthJahus / RPC-test-script.py
Created March 5, 2018 13:04
Simple RPC calls script
# Jahus, 2018-01-28
import requests
import json
from functools import partial
class MethodMissing:
def method_missing(self, name, *args, **kwargs):
print("Command %s with args %s and additional args %s" % (name, args, kwargs))
@DarthJahus
DarthJahus / gist:b99284d2fdabea59343cdb6aad4911ce
Created January 28, 2018 14:59 — forked from gterzian/gist:6400170
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)
@DarthJahus
DarthJahus / whois.ps1
Created November 2, 2017 23:52
Whois command for PowerShell
<#
.SYNOPSIS
Domain name WhoIs
.DESCRIPTION
Performs a domain name lookup and returns information such as
domain availability (creation and expiration date),
domain ownership, name servers, etc.
.PARAMETER domain
@DarthJahus
DarthJahus / openvpn_on_google_cloud.md
Created October 27, 2017 00:08 — forked from neuni/openvpn_on_google_cloud.md
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
@DarthJahus
DarthJahus / DarthJahusToken.sol
Created October 23, 2017 21:24
DarthJahusToken-0.1
/* Darth Jahus Token (DJX) */
/* For personal use only. */
/* Forked from TokenFactory (https://github.com/ConsenSys/Token-Factory) */
pragma solidity ^0.4.4;
contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
vif_func<-function(in_frame,thresh=10,trace=T,...){
require(fmsb)
if(class(in_frame) != 'data.frame') in_frame<-data.frame(in_frame)
#get initial vif value for all comparisons of variables
vif_init<-NULL
var_names <- names(in_frame)
for(val in var_names){

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 ;

// 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