Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Coding...

Erreur32 Erreur32

💭
Coding...
View GitHub Profile
@Erreur32
Erreur32 / git-commit-log-stats.md
Created Jul 19, 2021 — forked from eyecatchup/git-commit-log-stats.md
Some commands to get git commit log statistics for a repository on the command line.
View git-commit-log-stats.md

git commit stats

Commands to get commit statistics for a Git repository from the command line -
using git log, git shortlog and friends.




View php-webscraping.md

Have you ever wanted to get a specific data from another website but there's no API available for it? That's where Web Scraping comes in, if the data is not made available by the website we can just scrape it from the website itself.

But before we dive in let us first define what web scraping is. According to Wikipedia:

{% blockquote %} Web scraping (web harvesting or web data extraction) is a computer software technique of extracting information from websites. Usually, such software programs simulate human exploration of the World Wide Web by either implementing low-level Hypertext Transfer Protocol (HTTP), or embedding a fully-fledged web browser, such as Internet Explorer or Mozilla Firefox. {% endblockquote %}

View Apache Better Blocking with common rules.txt
Following on from other Gists I have posted, this one shows a neat way of using Includes to centralise general blocking rules for Bad Bots, creepy crawlers and irritating IPs
see the full post at http://www.blue-bag.com/blog/apache-better-blocking-common-rules
@Erreur32
Erreur32 / httpd.conf_spiders
Created Jul 3, 2020 — forked from gplv2/httpd.conf_spiders
Apache bot control system, filter out spiders good and bad crawlers/ webspiders when they hit your server hard, like googlebot , bingbot. Block all them for specific places marked in the robots.txt to not visit (yet they do sometimes).
View httpd.conf_spiders
# To relieve servers
##Imagine a robots.txt file like this (Google understands this format):
#User-agent: *
#Disallow: /detailed
#Disallow: /?action=detailed
#Disallow: /*/detailed
#Crawl-delay: 20
##
@Erreur32
Erreur32 / 256-colors.sh
Created Mar 13, 2018 — forked from atomize/256-colors.sh
Bash terminal 256 colors escape sequences. The following script display the 256 colors available on some terminals and terminals emulators like XTerm and GNOME Terminal.
View 256-colors.sh
#!/bin/bash
# This program is free software. It comes without any warranty, to
# the extent permitted by applicable law. You can redistribute it
# and/or modify it under the terms of the Do What The Fuck You Want
# To Public License, Version 2, as published by Sam Hocevar. See
# http://sam.zoy.org/wtfpl/COPYING for more details.
for fgbg in 38 48 ; do #Foreground/Background
for color in {0..256} ; do #Colors
@Erreur32
Erreur32 / prompt.sh
Created Mar 13, 2018 — forked from jc00ke/prompt.sh
bash prompt
View prompt.sh
txtwht="\[\e[00m\]" # White
txtred="\[\e[0;31m\]" # Red
txtgrn="\[\e[0;32m\]" # Green
txtpur="\[\e[0;35m\]" # Purple
txtblu="\[\e[0;34m\]" # Blue
bldgrn="\[\e[1;32m\]" # Green
bldcyn="\[\e[1;36m\]" # Cyan
function parse_git_this_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'
View .bash_prompt
################################################################################
# -------------------------
# BASH PROMPT CONFIGURATION
# -------------------------
# Description:
# Shows a nicer bash prompt:
# ▶ 🖳 mypc ▶ documents ▶ ⎇ master ▶ 𝍠 ✔
# -------- --------- ---------- --- -----
# | | | | |
# hostname folder git branch jobs last command result
@Erreur32
Erreur32 / debian-init.sh
Created Feb 24, 2018 — forked from andsens/debian-init.sh
This is a generic init-script, easily modifiable to suit your needs. It uses quite a lot of lsb init-functions and adheres to the lsb standards.
View debian-init.sh
#!/bin/sh
### BEGIN INIT INFO
# Provides: generic-prog
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Generic Program
# Description: Generic Program is a generic program to do generic things with
### END INIT INFO
@Erreur32
Erreur32 / emoji.md
Last active Mar 11, 2018 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup
View emoji.md

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@Erreur32
Erreur32 / #dev_xhr-iframe.md
Created May 2, 2017 — forked from vrusua/#dev_xhr-iframe.md
Cross domain messaging and dynamic iframe height
View #dev_xhr-iframe.md