Skip to content

Instantly share code, notes, and snippets.

View llaine's full-sized avatar
🚀

Louis Lainé llaine

🚀
View GitHub Profile
@llaine
llaine / scriptI.sh
Last active November 5, 2018 22:58
An algorithm which will automatically visit profiles on a dating site. In particular in adopteunmec.com. This algorithm has been written in bash.
#!/bin/bash
# @contact: darksioul6@gmail.com
# Enjoy
if [[ ! -e "config" ]]; then
echo "Entrez les informations correspondantes : "
echo -ne "Username : " ; read -r u
echo -ne "Mot de passe : " ; read -r p
echo -ne "L'age minimum : " ; read -r amin
echo -ne "L'age maximum : " ; read -r amax
@llaine
llaine / lcc
Last active August 29, 2015 14:01
LaTeX custom compilator with pdflatex
#!/usr/bin/env sh
# Sick of compiling with hand, this little script might help you
compilator() {
ARGUMENT="$1"
#determine aux name by stripping .tex suffix and adding .aux
AUXNAME="${ARGUMENT%.tex}.aux"
pdflatex -shell-escape -interaction=nonstopmode -file-line-error "$ARGUMENT" | grep -i ".*:[0-9]*:.*\|warning"
bibtex -terse "$AUXNAME"
pdflatex -shell-escape -interaction=nonstopmode -file-line-error "$ARGUMENT" | grep -i ".*:[0-9]*:.*\|warning"
@llaine
llaine / instal.sh
Last active August 29, 2015 14:01
Install .img on sd card for CUBIEBOARD2
# Use on MAC
# For cubieboard2 with A20 CPU
# We suppose that the sdcard is /dev/disk2
# Find disk
diskutil list
# Unmount the SDCARD
diskutil unmountDisk /dev/disk2
@llaine
llaine / konami.js
Created August 8, 2014 15:31
Konami code
var input = "";
var konamiLetters = "72726666716871686665";
var konamiArrow = "38384040373937396665";
document.onkeydown = function(evt){
evt = evt || window.event;
input += evt.keyCode;
};
var timer = setInterval(function(){
*.aux
*.glo
*.idx
*.log
*.toc
*.ist
*.acn
*.acr
*.alg
*.bbl
METEOR CORE:
Anywhere: Meteor.isClient
Anywhere: Meteor.isServer
Anywhere: Meteor.startup(func)
Anywhere: Meteor.absoluteUrl([path], [options])
Anywhere: Meteor.settings
Anywhere: Meteor.release
@llaine
llaine / translate.html
Created August 25, 2014 08:25
Meteor translate module
<template name="helloWorld">
{{ translate 'HELLO' }}
</template>
var Konami = function(t) {
var e = {
addEvent: function(t, e, n, i) {
t.addEventListener ? t.addEventListener(e, n, !1) : t.attachEvent && (t["e" + e + n] = n, t[e + n] = function() {
t["e" + e + n](window.event, i)
}, t.attachEvent("on" + e, t[e + n]))
},
input: "",
pattern: "38384040373937396665",
load: function(t) {
@llaine
llaine / client.js
Created October 15, 2014 19:01
WebSocket with NodeJS
var WebSocketClient = require('websocket').client;
var sys = require("sys");
var stdin = process.openStdin();
var client = new WebSocketClient();
client.on('connectFailed', function(error) {
console.log('Connect Error: ' + error.toString());
});
@llaine
llaine / example.html
Created February 8, 2015 16:46
Drawing + canvas + easter egg
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
</body>
<script src="konami.js"></script>