Skip to content

Instantly share code, notes, and snippets.

View mickaelperrin's full-sized avatar

Mickaël PERRIN mickaelperrin

  • dkod
  • Toulon, France
View GitHub Profile
@ckaklamanos
ckaklamanos / gist:2bcee861864b77c72477
Last active September 5, 2017 08:04
Wordpress white label / custom branding
// Put this in child theme's function.php
// Upload the logo to /imahes folder of child theme
// Logo must be 80 x 80 or apply custom CSS
// custom admin login logo
function custom_login_logo() {
echo '<style type="text/css">
h1 a {
background-image: url(wp-content/themes/'.get_stylesheet().'/images/logo.png) !important;
width:186px!important;
background-size: 186px 65px!important;
@zspecza
zspecza / amok_browserify_gulpfile.js
Last active November 23, 2021 07:46
Live inject CSS, Javascript & HTML with BrowserSync, Watchify, Amok & Gulp (excuse the messiness, still a WIP)
/*=====================================*\
build tasks
\*=====================================*/
/**
* This gulpfile is optimised for developing
* React.js apps in ES6 through Babel, and is
* designed to live-inject CSS, HTML and even JavaScript
* changes so maintaining state in an application when
* editing code is super easy.
@magnetikonline
magnetikonline / README.md
Last active June 6, 2024 06:16
Setting Nginx FastCGI response buffer sizes.
@kcollasarundell
kcollasarundell / partedmagics
Last active May 28, 2021 10:24
Part all the disks.
#!/bin/bash
#this echoes EVERYTHING
set -x verbose
echo "THIS SCRIPT IS DANGEROUS do not be stupid"
apt-get install lvm2 mdadm
# $disks should be replaced with the last char on each disk you want to apply this to
#disks="a b c d e f"
disks="a b c d e f g h i" #EDIT THIS LINE
@fnando
fnando / dev.conf
Created July 23, 2011 09:00
Nginx configuration for SSH tunnel
upstream tunnel {
server 127.0.0.1:3000;
}
server {
listen 80;
server_name dev.codeplane.com br.dev.codeplane.com;
location / {
proxy_set_header X-Real-IP $remote_addr;