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
import os | |
""" site_block.txt - https://gist.github.com/ggdx/e333c291312c90a6c5f35d5b06fd9632 | |
This script takes a while, could most likely be made more efficient but | |
does the job in prevent my kids from accessing things they shouldn't | |
as well as largely stops tracking scripts embedded in websites. | |
""" | |
path = './site_block.txt' |
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
0--e.info | |
0-24bpautomentes.hu | |
0-800-email.com | |
0-day.us | |
0-secure-paypal.com | |
00-gov.cn | |
000-hidro-1.info | |
000359.xyz | |
000free.us | |
000invaliddomain.local |
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
/* | |
******************************************************************************** | |
Golang - Asterisk and Ampersand Cheatsheet | |
******************************************************************************** | |
Also available at: https://play.golang.org/p/lNpnS9j1ma | |
Allowed: | |
-------- | |
p := Person{"Steve", 28} stores the value |
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 | |
$errors = []; | |
$success = false; | |
if ($_POST) { | |
// Set required fields | |
$requires = ['email', 'name', 'message']; | |
foreach($requires as $field) { | |
if (!isset($_POST[$field])) { |
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
/node_modules | |
/wp-admin | |
/wp-content/uploads | |
/wp-content/upgrade | |
/wp-includes | |
index.php | |
license.txt | |
readme.html | |
wp-activate.php | |
wp-blog-header.php |
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 | |
class PostType | |
{ | |
private $post_type = false; | |
private $name = false; | |
private $singular_name = false; | |
private $add_new = false; | |
private $add_new_item = false; | |
private $edit_item = false; |
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 | |
echo -e " \n" | |
echo -e "--------------------------" | |
echo -e "- Create a new project -" | |
echo -e "--------------------------" | |
echo -e " \n" | |
echo -n "Who is the client? " | |
read client | |
if [ ! -d "/srv/http/$client" ]; then |