This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
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 %}
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 |
# 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 | |
## |
#!/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 |
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/' |
################################################################################ | |
# ------------------------- | |
# BASH PROMPT CONFIGURATION | |
# ------------------------- | |
# Description: | |
# Shows a nicer bash prompt: | |
# βΆ π³ mypc βΆ documents βΆ β master βΆ π β | |
# -------- --------- ---------- --- ----- | |
# | | | | | | |
# hostname folder git branch jobs last command result |
#!/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 |
People
![]() :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: |