This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use : | |
npm install --no-bin-links | |
or | |
npm install package --no-bin-links |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
homestead=cd /homestead/ && vagrant $* | |
hs-go=cd /homestead/ && vagrant up && vagrant ssh | |
subl=sublime_text.exe $* | |
hosts=sublime_text.exe \Windows\System32\drivers\etc\hosts | |
hs-edit=sublime_text.exe .homestead\Homestead.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://bitsofco.de/styling-broken-images/ | |
img { /* Same as first example */ } | |
img:after { | |
content: "\f1c5" " " attr(alt); | |
font-size: 16px; | |
font-family: FontAwesome; | |
color: rgb(100, 100, 100); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@{{ vue-variable }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.fn.extend({ | |
loadSubmit: function (keepSize) { | |
if (keepSize == undefined) { | |
keepSize = true; | |
} | |
var submitBtn = $(this).find('.btn-submit'); | |
if (keepSize) { | |
submitBtn.css('width', submitBtn.outerWidth(true) + 'px'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash #adding this to force silly gist highlighting. REMOVE THIS | |
# This is a modified version of the script generated by https://docs.npmjs.com/cli/completion to include `npm install` autocompletion. | |
# Basically we added `if` blocks to check for `install` subcommand. | |
###-begin-npm-completion-### | |
# | |
# npm command completion script | |
# | |
# Installation: npm completion >> ~/.bashrc (or ~/.zshrc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setlocale(LC_TIME, 'fr_FR.utf8'); | |
Carbon\Carbon::now('Europe/Paris')->formatLocalized('%A %d %B %Y'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
opcache.revalidate_path=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
use Storage; | |
use League\Flysystem\Filesystem; | |
use Dropbox\Client as DropboxClient; | |
use Illuminate\Support\ServiceProvider; | |
use League\Flysystem\Dropbox\DropboxAdapter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Display the banned IPs with jail names : | |
iptables -L | |
# Unban an IP : | |
iptables -D jail-name -s IP-HERE -j REJECT or DROP or ... | |
e.g. : | |
iptables -D fail2ban-recidive -s 127.0.0.1 -j REJECT |