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
#------------------- | |
# Personnal Aliases | |
#------------------- | |
alias rm='rm -i' | |
alias cp='cp -i' | |
alias mv='mv -i' | |
# -> Prevents accidentally clobbering files. | |
alias mkdir='mkdir -p' |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
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
# Needed to unbreak web sites, mostly because of hosts file-based filters: | |
# Dan Pollock's, MVPS, Peter Lowe's | |
# https://twitter.com/JarkkoRytkonen/status/540052376015888385 | |
# https://github.com/chrisaljoudi/uBlock/issues/119 | |
# https://github.com/chrisaljoudi/uBlock/issues/940 | |
# To counter `google-analytics.com` in Peter Lowe's list | |
@@||google-analytics.com^$domain=avianca.com|jackbox.tv|newegg.com|bikstok.sonymusicshop.dk | |
# From Chrome store: "Go to site http://www.vd.nl/ ... links from dropdown top menu do not work" |
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
# µBlock -- Privacy | |
# | |
# Some of these filters make use of the `important` filter option, | |
# which purpose is to guarantee that a filter won't be overriden by | |
# exception filters. | |
# | |
# I will use data from benchmarks to decide what to add here. | |
# https://github.com/gorhill/uBlock/wiki/%C2%B5Block-and-others:-Blocking-ads,-trackers,-malwares | |
# I think web sites can live without this |
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
# Filters optimized for uBlock | |
# https://github.com/chrisaljoudi/uBlock/issues/57 | |
# https://github.com/chrisaljoudi/uBlock/issues/98 | |
# New filter class: entity filters, where entity = domain minus public suffix | |
# The following filters were taken out of EasyList and given an entity name, | |
# which makes them candidates to be injected early in the page. | |
# Last updated: 2016-07-02 | |
google.*###center_col > #\5f Emc | |
google.*###center_col > #main > .dfrd > .mnr-c > .c._oc._zs |
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
! 10/19/2016, 3:17:57 AM http://www.securiteam.com/securitynews/5SP0M0U8AK.html | |
www.securiteam.com###ArticleTABLE > tbody > tr:nth-of-type(9) > td > div | |
! 11/14/2016, 1:18:50 AM https://www.pinterest.com/pin/473018767093801570/ | |
www.pinterest.com##div:nth-of-type(2) > div:nth-of-type(2) > div:nth-of-type(2) > div |
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
javascript: | |
/* | |
This javascript bookmarklet takes anchors, images, and media elements from | |
the page, and displays them in a nice gallery. Designed for use on open | |
directory listings, but works in many places. | |
*/ | |
var seen_urls = new Set(); | |
var image_height = 200; | |
var video_height = 300; | |
var audio_width = 1000; |
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
#!/bin/bash | |
# geoip-update.sh -- update geoip lite database(s). | |
# author: massimo.scamarcia@gmail.com | |
#prg="wget --quiet" | |
prg="wget" | |
download_path="/usr/share/GeoIP/download" | |
geolite_path="/usr/share/GeoIP" |
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
# If you come from bash you might have to change your $PATH. | |
export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH=/root/.oh-my-zsh | |
# Set name of the theme to load. Optionally, if you set this to "random" | |
# it'll load a random theme each time that oh-my-zsh is loaded. | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
ZSH_THEME="robbyrussell" |
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
#!/bin/sh | |
# | |
# WE SO COOL. WE WRITE /etc/*-release IN DIFFRENT FORMATS!!11 | |
# welcome to linux. | |
release=`grep 'SUSE\|ubuntu\|Red Hat\|CentOS' -A10 -B10 /etc/*release | tr '[:upper:]' '[:lower:]'` | |
case $release in | |
*suse*version*11*patchlevel*0) RELSTRING=sles-11-sp0 ;; | |
*suse*version*11*patchlevel*1) RELSTRING=sles-11-sp1 ;; | |
*suse*version*11*patchlevel*2) RELSTRING=sles-11-sp2 ;; |
OlderNewer