Skip to content

Instantly share code, notes, and snippets.

View dpiquet's full-sized avatar

Damien PIQUET dpiquet

View GitHub Profile
return {
["workshop-1515116066"]={ configuration_options={ camera_default_angle=0 }, enabled=true },
["workshop-375859599"]={
configuration_options={
divider=5,
random_health_value=0,
random_range=0,
send_unknwon_prefabs=false,
show_type=0,
unknwon_prefabs=1,
@dpiquet
dpiquet / dpiquet_teicee_pubkey
Created September 4, 2018 07:47
dpiquet teicee public key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4lStuK3rIGPMHjo6v1pA3uFO7dJtd1+tvnHJCQZwLbbwI4GByahLr1hCkMqXhRCGWSKQ4mB3clnNyWTtPYW5HVWILi/xS0pB7metsdMdSl1tAgyTUOCTeJj/CIQWBRI0812O27JtOaltgI1kopBS9fRusA2KcpLB4RbV2r+QTwdrJ5yfi2q+RCcTbPDPnI/btlteuw3rctKGnW6RFspVF5shMFCjIBZcD1NLLrq1FAONlrsPHiKYtKhgBe0x8WRk2MekSCbKqFPPCxBU3t3/OVdjQ0u9zj/VMcGW8CRDwlcW+3xgvMUPKiqUSiV0VzxtTKhhx6kV9Grh83m421WgH dpiquet@londres
@dpiquet
dpiquet / ffmpeg_convert.sh
Created July 6, 2018 06:12
convert cemera video file to avi using ffmpeg
# first 30s to test
ffmpeg -i théâtre\ le\ problème\ ce1\ ce2\ Cagny\ juin\ 2018.MTS -vcodec libxvid -b 18000k -acodec libmp3lame -ac 2 -ab 320k -deinterlace -s 1440x1080 -t 30 OutputFileTest.AVI
# Whole file
ffmpeg -i théâtre\ le\ problème\ ce1\ ce2\ Cagny\ juin\ 2018.MTS -vcodec libxvid -b 18000k -acodec libmp3lame -ac 2 -ab 320k -deinterlace -s 1440x1080 OutputFile.AVI
@dpiquet
dpiquet / 000-default.conf
Created March 19, 2018 11:09
apache2 mode maintenance avec mod rewrite
RewriteEngine on
# Mode maintenance
RewriteCond %{REMOTE_ADDR} !^123\.123\.123\.123 # Excluded IPs
RewriteCond %{REQUEST_URI} !^/maintenance.php [NC]
RewriteRule .* /maintenance.php [L]
@dpiquet
dpiquet / Microsoft Sculpt Mobile Keyboard Remap
Created December 30, 2015 11:10 — forked from tehshane/Microsoft Sculpt Mobile Keyboard Remap
AutoHotKey script that remaps the F1-F12 function keys on the Microsoft Sculpt Mobile keyboard to be pressed without having to use the Fn key. Disables some of the Windows 8 shortcuts, but leaves media keys intact.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#InstallKeybdHook
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; OPTIONAL: For those who use Home/End more than PgUp/PgDown, this flips their use with the Fn key.
; If you want the buttons to function as they are, add a semicolon (;) to the beginning of each line below.
Home::PgUp
End::PgDn
PgUp::Home
# ~/.bashrc: executed by bash(1) for non-login shells.
# Note: PS1 and umask are already set in /etc/profile. You should not
# need this unless you want different defaults for root.
# PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ '
# umask 022
# command prompt
PS1='\h:\w\$ '
@dpiquet
dpiquet / Keolis-API.md
Created September 24, 2015 17:59 — forked from outadoc/Keolis-API.md
Keolis Real-time API

Keolis "open-data" : XML Realtime API

Les données retournées sont au format XML.

Document trouvé et modifié depuis Pastebin.

Récupérer la liste des lignes

<?php
class JPB_User_Caps {
/**
* An array of all protected roles
* @var array
*/
protected $protectedRoles = array(
'webmaster',