Skip to content

Instantly share code, notes, and snippets.

View renshuki's full-sized avatar
💭
🇫🇷 🇯🇵 🇺🇸

Francois-Clement Brossard renshuki

💭
🇫🇷 🇯🇵 🇺🇸
View GitHub Profile
@renshuki
renshuki / decipher_base64.md
Last active June 19, 2016 10:31
Decipher a base64 like message

Introduction

Below a ciphered message (source):

QlpoOTFBWSZTWW8hhvwAAD7aAG0wAAsABQAKIAB1CVT8UEeRBJpRDRoaJoYJ2hHaMottLYUShiAD7GMfiBkCDGKMIrRvW41TxV5lWawgMpr4yNM4jiTfAZrPiH4u5IpwoSDeQw34

Deciphering

Step 1

No special characters so Ascii85 can be excluded.

@renshuki
renshuki / vhost.py
Created August 31, 2016 02:02 — forked from fideloper/vhost.py
Create vHost Ubuntu Lamp-Server (bash and python)
#! /usr/bin/python
from sys import argv
from os.path import exists
from os import makedirs
from os import symlink
from os import system
import getopt
#
@renshuki
renshuki / zsh.md
Created October 7, 2016 16:36 — forked from tsabat/zsh.md
Getting oh-my-zsh to work in Ubuntu

Keybase proof

I hereby claim:

  • I am renshuki on github.
  • I am renshuki (https://keybase.io/renshuki) on keybase.
  • I have a public key whose fingerprint is 5E9D 54A3 38BC 3392 2036 1CB1 F85D 8FDC 28FC C710

To claim this, I am signing this object:

@renshuki
renshuki / middlewares.py
Created June 13, 2017 04:59 — forked from seagatesoft/middlewares.py
An example of RotateUserAgentMiddleware
from random import choice
from scrapy import signals
from scrapy.exceptions import NotConfigured
class RotateUserAgentMiddleware(object):
"""Rotate user-agent for each request."""
def __init__(self, user_agents):
self.enabled = False
self.user_agents = user_agents
@renshuki
renshuki / wordpress_gitignore.md
Last active June 20, 2017 15:22
Default Wordpress .gitignore file for git repositories
# Keep these files out of the repo
/wp-content/themes/twenty*
/wp-content/upgrade
/wp-content/uploads
/sitemap.*
/wp-config.php
*.sql

# Hidden files
@renshuki
renshuki / alt-checker.js
Created June 20, 2017 16:09
This bookmarklet reveal all the alt attributes of the <img /> tags (current page only)
javascript: (function() {
function getTag(tag) {
return document.getElementsByTagName(tag);
}
function a(o, a) {
return o.getAttribute(a);
}
var images = getTag('img');
@renshuki
renshuki / usevm.md
Created October 19, 2017 08:55 — forked from fideloper/usevm.md
You should develop in a Virtual Machine

#You should do all your LAMP development in a Virtual Machine

##Here's Why:

Many of us develop on Macintoshes. There are many reasons for this, but one of them is that it's based on a Unix platform of some sort. This allows us to run common server software such as Apache, Ruby, Python and Nodejs on our Macs.

Our computers become powerful develoment machines similar to the servers our apps will eventually live on.

Sometime we start our computer only to find Apache won't start, or MySQL can't create a PID file, or we've updated to Mountain Lion and Apache needs to be reconfigured. Death!

@renshuki
renshuki / tmux_cheatsheet.md
Last active November 11, 2017 08:48 — forked from henrik/tmux_cheatsheet.markdown
Tmux Cheatsheet

Tmux Cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@renshuki
renshuki / reset-ckeditor-accessibility-instructions.js
Last active March 9, 2019 10:24
Reset CKEDITOR (ALT+0) keystroke using a Tampermonky/Greasemonkey script to avoid "Accessibility Instructions" to pop up
// ==UserScript==
// @name Reset CKEDITOR Accessibility Instructions (ALT+0)
// @namespace http://tampermonkey.net/
// @version 0.1
// @description If you have your Mac configured with a French keyboard CKEDITOR pops up "Accessibility Instructions" every time you try to make an "@"
// @author renshuki
// @match *
// @grant none
// ==/UserScript==