Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am loicbisiere on github.
  • I am loicbisiere (https://keybase.io/loicbisiere) on keybase.
  • I have a public key whose fingerprint is F525 DE18 72B1 5E08 600A 4CBD 011D 48D3 E962 0723

To claim this, I am signing this object:

@loicbisiere
loicbisiere / gcloud-command.md
Last active August 3, 2016 14:55
Google Cloud CLI

List all projects
gcloud projects list

Switch to a specific project
gcloud config set project YourProjectID

Deploy
gcloud app deploy

Deploy a specific project

@loicbisiere
loicbisiere / Desactivate media key mac.md
Last active January 16, 2017 21:18
Desactivate media key mac

Desactivate media key mac
The most consistent and easiest way I’ve found to stop iTunes from listening for the Play/Pause button key was to stop the Launch Agent com.apple.rcd

launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist

Similarly, the Launch agent can be re-enabled so that iTunes listens for the Play / Pause key again with the command:

launchctl load -w /System/Library/LaunchAgents/com.apple.rcd.plist

lsblk -o name,label,size,fstype,model
tar -czvf
mysqldump -h server -u user -ppassword -rdump.sql base
String.prototype.decodeHTML = function() {
var map = {"gt":">" /* , … */};
return this.replace(/&(#(?:x[0-9a-f]+|\d+)|[a-z]+);?/gi, function($0, $1) {
if ($1[0] === "#") {
return String.fromCharCode($1[1].toLowerCase() === "x" ? parseInt($1.substr(2), 16) : parseInt($1.substr(1), 10));
} else {
return map.hasOwnProperty($1) ? map[$1] : $0;
}
});
};
@loicbisiere
loicbisiere / material-icons.css
Created November 23, 2017 20:47
Material icons with unicode
/*
* CSS File of Material icons.
* CSS code based on:
* https://google.github.io/material-design-icons/#icon-font-for-the-web
*/
//= depend_on_asset "MaterialIcons-Regular.eot"
//= depend_on_asset "MaterialIcons-Regular.woff2"
//= depend_on_asset "MaterialIcons-Regular.woff"
//= depend_on_asset "MaterialIcons-Regular.ttf"
@loicbisiere
loicbisiere / WebStorm.cmd
Created November 14, 2019 15:42 — forked from M1chaelTran/WebStorm.cmd
Add `Open with WebStorm` to Windows right click context menu
@echo off
:: change the path below to match your installed version
SET WebStormPath=C:\Program Files\JetBrains\WebStorm 2017.2.2\bin\webstorm64.exe
echo Adding file entries
@reg add "HKEY_CLASSES_ROOT\*\shell\WebStorm" /t REG_SZ /v "" /d "Open with WebStorm" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\WebStorm" /t REG_EXPAND_SZ /v "Icon" /d "%WebStormPath%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\WebStorm\command" /t REG_SZ /v "" /d "%WebStormPath% \"%%1\"" /f