Skip to content

Instantly share code, notes, and snippets.

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

@DarthJahus
DarthJahus / Aide_IRC.md
Last active September 4, 2015 02:31
Aide IRC en français

IRC

IRC (système de discussion relayée par Internet – en. Internet Relay Chat) est un protocole de communication textuel. IRC sert à la communication instantannée sous la forme de discussions de groupes à l'aide de canneaux (semblables à des salons de disucssion), et peut aussi être utilisé pour la communication d'individu à individu en privé ou même pour l'envoi et la réception de fichiers.

Un canal IRC peut être reconnu par le caractère # qui précède son nom. L'administrateur d'un canal IRC est appelé opérateur.

Clients IRC

# soaking hue for ItsLuke Skywalker, by Jahus
#
# kek (the debug part)
soakAmount = 12000
chan = "#chan"
Active_Users = {"#chan": ["u1", "u2", "u3", "u4", "u5"]}
max_users = 20 # can go up to 28 but... well... Freenode NICKLEN=16, mMSGLEN=459, 459/16=28.6875... 20 is so good. much secure. wow
# hue (the code)
for i in xrange(0, len(Active_Users[chan]), max_users):
# build the couples (nick, amount)
@DarthJahus
DarthJahus / random_number_guess.py
Last active August 29, 2015 14:13
Random number guessing game, the closer wins (part)
import random
Between = {"min": 1, "max": 5} # to fit the "human" message
print("Please, guess the number between %(min)i and %(max)i" % Between)
# Getting the random winning number
WinningNumber = random.randrange(Between.get("min") - 1, Between.get("max")) + 1
print("Winning number is %s" % WinningNumber)
# Getting the votes
Votes = {1: "ItsLuke", 2: "vbstrdg", 12: "Jahus"}
print("Actual votes are: %s" % Votes)
# adding a vote
import json
# loading from file
def load_json_file(file_name):
with open(file_name, 'r') as _file:
content = _file.read()
content_dict = json.loads(content)
return content_dict
# saving to a file
def save_json_file(dict_obj, file_name):
with open(file_name, 'w') as _file:
@DarthJahus
DarthJahus / westley.c
Created January 27, 2015 18:31
The International Obfuscated C Code Contest 1990 Winner
char*lie;
double time, me= !0XFACE,
not; int rested, get, out;
main(ly, die) char ly, **die ;{
signed char lotte,
@DarthJahus
DarthJahus / NumberToArrayOfDigits.py
Last active November 12, 2018 20:22
Converts a number to an array of its constituting digits.
"""
Jahus, 2015-12-13
These functions convert a number to an array containing
the digits constituting that number.
"""
def count_digits(number):
// 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

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 ;

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){