Skip to content

Instantly share code, notes, and snippets.

View Mayeu's full-sized avatar
🌊
Ohaï 👋

Mayeu Mayeu

🌊
Ohaï 👋
View GitHub Profile
@Mayeu
Mayeu / dirtyprompt.sh
Created November 2, 2010 23:13
Prompt avant insertion git
## Prompt
hostnam=$(hostname -s)
usernam=$(whoami)
#PIPE="\[\033[1;30m\]"
NCOL="\[\033[0m\]"
function prompt_command {
{
"log":{
"version":"1.1",
"creator":{
"name":"Firebug",
"version":"1.6.0"
},
"browser":{
"name":"Firefox",
"version":"3.6.12"
Western Digital Caviar Blue SATA Revision 3.0 - 1 To - 32 Mo
Saitek Cyborg V3 Mouse
Electronic Arts Portal 2 - PC
Fractal Design Define R3 - Titanium Grey
MSI R6950 Twin Frozr III Power Edition/OC
Materiel.net Kit Artine VI
|- intel i5 2500K 3.3Ghz
|- Asus P8P67 Rev 3.0
|- G.Skill Extreme3 PC12800 Ripjaws 2x2Go
Samsung SH-S223C - OEM, noir
@Mayeu
Mayeu / securing_rails_updates.md
Created March 20, 2012 09:24 — forked from peternixey/securing_rails_updates.md
How Homakov hacked GitHub and how to protect your application by Peter Nixey

##How Homakov hacked GitHub and the line of code that could have prevented it


Please note: THIS ARTICLE IS NOT WRITTEN BY THE GITHUB TEAM or in any way associated with them. It's simply hosted as a Gist because the markdown formatting is excellent and far clearer than anything I could manage on my personal Tumblr at peternixey.com.

If you'd like to follow me on twitter my handle is @peternixey


@Mayeu
Mayeu / sc-dl.js
Created June 24, 2012 16:24 — forked from pheuter/sc-dl.js
Bookmarklet that generates download link for a Soundcloud upload
(function(d) {
var dl = d.createElement('a');
dl.innerText = 'Download MP3';
dl.href = "http://media.soundcloud.com/stream/"+d.querySelector('#main-content-inner img[class=waveform]').src.match(/\.com\/(.+)\_/)[1];
dl.download = d.querySelector('em').innerText+".mp3";
d.querySelector('.primary').appendChild(dl);
dl.style.marginLeft = '10px';
dl.style.color = 'red';
dl.style.fontWeight = 700;
})(document);
@Mayeu
Mayeu / gpg_links.txt
Last active December 20, 2015 19:29
Quelques lien pour GPG
Dec 09 23:55:50 cthulhu sshd[24975]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=216.55.181.10 user=root
Dec 09 23:55:50 cthulhu sshd[24975]: Address 216.55.181.10 maps to link3.net.bd, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!
Dec 09 23:55:48 cthulhu sshd[24973]: Received disconnect from 216.55.181.10: 11: Bye Bye [preauth]
Dec 09 23:55:48 cthulhu sshd[24973]: Failed password for root from 216.55.181.10 port 44753 ssh2
Dec 09 23:55:46 cthulhu sshd[24973]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=216.55.181.10 user=root
Dec 09 23:55:46 cthulhu sshd[24973]: Address 216.55.181.10 maps to link3.net.bd, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!
Dec 09 23:55:45 cthulhu sshd[24971]: Received disconnect from 216.55.181.10: 11: Bye Bye [preauth]
Dec 09 23:55:45 cthulhu sshd[24971]: Failed password for root from 216.55.181.10 port 43387 ssh2
Dec 09 23:55:43 cthulhu sshd
dig mx madamegiselle.com
; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> mx madamegiselle.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 29237
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;madamegiselle.com. IN MX
@Mayeu
Mayeu / new Xresources
Last active January 2, 2016 05:09
New hermit font configuration
URxvt*font: xft:Hermit:medium:size=12:antialiasing=true
URxvt*boldFont: xft:Hermit:bold:size=12:antialiasing=true:style=medium
URxvt*italicFont: xft:Hermit:medium:size=12:antialiasing=true:style=medium
URxvt*boldItalicFont: xft:Hermit:bold:size=12:antialiasing=true:style=medium
@Mayeu
Mayeu / gist:8517875
Created January 20, 2014 10:22
Graphite frontend/tools
https://github.com/huoxy/graphite-observer
https://github.com/wayfair/Graphite-Tattle
https://github.com/paperlesspost/graphiti
http://kenhub.github.io/giraffe
https://github.com/obfuscurity/tasseo
https://github.com/jondot/graphene
https://github.com/ripienaar/gdash
http://square.github.io/cubism/
http://oss.oetiker.ch/smokeping