Skip to content

Instantly share code, notes, and snippets.

@Cezarion
Cezarion / test.js
Created September 17, 2020 13:48
Test
alert.js
@Cezarion
Cezarion / httpd-vhosts.conf
Created October 23, 2018 18:23
Wildcard Vhost
<VirtualHost *:80>
UseCanonicalName Off
ServerName root.localhost
ServerAlias *.localhost
RewriteEngine On
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI}
SetEnv APP_ENV dev
You are happy owner of macbook with new os and dream to play favorite new games via Steam or old-school via emulators...
And in one day you checked Amazon and WOW - PS gamepad copy only for 12$?! Awesome! "Shut up and take my money!"©
You aren't stupid and googled first, that macOS supports ps gamepads from scratch - Double-Awesome!
And here is that day - you opened gamepad box and followed instruction https://theultralinx.com/2014/02/connect-playstation-3-controller-mac-os-mavericks/ or http://osxdaily.com/2014/12/28/connect-playstation-3-controller-mac-os-x/
But... NOTHINK WORKS!!! Oh my god! Is your controller is a fake?!
PATIENCE!
OS: mac OS Sierra / Hight Sierra
Controller: DualShock 3 PANHAI
@Cezarion
Cezarion / composer.json
Created September 22, 2015 10:36
Themosis Framework Composer base file + Clone theme from themosis/theme fork
{
"name": "themosis/themosis",
"description": "The Themosis framework. A framework for WordPress developers.",
"keywords": ["themosis", "framework", "WordPress"],
"license": "GPL-2.0+",
"authors": [
{
"name": "Julien Lambé",
"email": "julien@themosis.com",
"homepage": "http://www.themosis.com/"
@Cezarion
Cezarion / gist:5925e0a5af9b6436560c
Last active August 29, 2015 14:25 — forked from jnweaver/gist:4e1d9ee41610308c7756
Wordpress Composer example
{
"name" : "uwmadison-umark/wordpress-skeleton",
"description" : "Skeleton WordPress Stack via Composer",
"authors" : [
{
"name" : "Nick Weaver",
"email" : "jnweaver@wisc.edu",
"homepage": "http://umark.wisc.edu"
}
],

OS X Preferences


#Disable window animations
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false

#Enable repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# ----------------------------------------------------------------------
#Noeud XML d'un cours
# ----------------------------------------------------------------------
<ns3:course id="FRUAI0911101CCOEN1415" ident="EN1415" xmlns:ns3="http://cdm-fr.fr/2012/CDM">
<ns3:courseID xmlns:ns3="http://cdm-fr.fr/2012/CDM">FRUAI0911101CCOEN1415</ns3:courseID>
<ns3:courseDescription xmlns:ns3="http://cdm-fr.fr/2012/CDM">
<?php
define('VOCAB_MACHINE_NAME', 'verticals');
function case_studies_install() {
_create_vocabulary();
$terms = array(
array(
@Cezarion
Cezarion / post-receive-dev.sh
Last active August 29, 2015 14:12
Post receive hook + drush cc all Second file : post receive with switch branch
#!/bin/sh
#Post receive in DEV
#THIS HOOK SWITCH BRANCH
#1. Set Project configuration :
WEB_DIR=/Full/path/to/root/project
GIT_PATH=deploy.git
APP_PATH=deploy
@Cezarion
Cezarion / wp-git-init
Last active August 29, 2015 14:07
Init a git repository for wordpress
#!/bin/sh
if [ -e .gitignore ]; then
echo "Il y a déjà un fichier .gitignore. Bye" >&2
exit 1
else
echo "Ecriture du fichier .gitignore" >&2
fi
cat > .gitignore <<EOF
## -----------------------------------------