Skip to content

Instantly share code, notes, and snippets.

@josuecau
josuecau / .gitignore
Created Feb 6, 2014
How do I add an empty directory to a git repository
View .gitignore
*
!.gitignore
@josuecau
josuecau / wget-recursive.sh
Created Feb 9, 2014
Download all files from a website using wget
View wget-recursive.sh
#!/bin/sh
wget --no-clobber --convert-links --random-wait -r -p -E -e robots=off -U mozilla http://site.tld
@josuecau
josuecau / .htaccess
Created Feb 24, 2014
Apache PHP 5.4 support
View .htaccess
AddHandler x-httpd-php54 .php
View bootstrap_ms.css
@screen-ms-min: 480px;
@screen-ms-max: 767px;
.col-ms-1,
.col-ms-2,
.col-ms-3,
.col-ms-4,
.col-ms-5,
.col-ms-6,
.col-ms-7,
View owebia-shipping-colissimo-2014.txt
#####
# Colissimo
#
# Validité
# Tarifs du 1er mars 2014
# Crédits
# Configuration réalisée par owebia
# Colissimo National (France, Monaco, Andorre)
{
@josuecau
josuecau / dot-bit-dns-servers.txt
Last active Aug 29, 2015
List of (working) public DNS servers with .bit domains support
View dot-bit-dns-servers.txt
192.184.93.146 // US
92.222.26.81 // France
37.187.0.40 // France
185.10.203.37 // UK
91.213.8.35 // UKR
@josuecau
josuecau / ipban.sh
Created Jul 11, 2014
Ban & unban IP
View ipban.sh
#!/bin/sh
if [ $# -eq 0 ]
then
echo "Usage: $(basename $0) IP.TO.BAN"
exit 1
fi
iptables -I INPUT -s $1 -j DROP
View makefile
install:
composer install
npm install
bower install
gulp
View .agignore
.git
bower_components
node_modules
vendor
tags
@josuecau
josuecau / scroll-page.html
Last active Aug 29, 2015
Smooth Scrolling To Internal Links With jQuery
View scroll-page.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Scroll Page</title>
<style>
body { width: 600px; margin: 200px auto; }
</style>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>