Skip to content

Instantly share code, notes, and snippets.

@Trailingslashes
Trailingslashes / mac_converter.sh
Created August 5, 2020 18:21
Convert mac addresses to various formats
#!/bin/bash
################################# Set defaults ################################
FUNCT=to_linux
AUTO_FUNCT=to_cisco
AUTO_MODE=1
ONLY_MATCHING=0
case_fnct() { tr 'A-Z' 'a-z' ; }
@Trailingslashes
Trailingslashes / nmap_report.md
Created April 12, 2020 21:14
Vuln report via nmap
  • Install Nmap
  • Enable EPEL repos
  • Install sendemail
  • Install python3.6
  • Install python3.6-devel
  • Perform a vulnerability scan
  • Send results via email
  • Write a Python script to incorporate the scans and send the result via email
  • Configure the script to run once a week
@Trailingslashes
Trailingslashes / ansible.cfg
Created March 22, 2020 19:43
ansible base config
[defaults]
remote_user = ansible
host_key_checking = false
inventory = inventory
[privilege_escalation]
become = True
become_method = sudo
become_user = root
become_ask_pass = False
@Trailingslashes
Trailingslashes / profile.json
Created August 4, 2019 15:50
iTerm2 json data
{
"Use Non-ASCII Font" : false,
"Tags" : [
],
"Ansi 12 Color" : {
"Green Component" : 0.50962930917739868,
"Blue Component" : 0.51685798168182373,
"Red Component" : 0.44058024883270264
},
@Trailingslashes
Trailingslashes / audit.rules
Created July 28, 2019 01:45 — forked from Neo23x0/audit.rules
Linux Auditd Best Practice Configuration
# IMPORTANT!
# This gist has been transformed into a github repo
# You can find the most recent version there:
# https://github.com/Neo23x0/auditd
# ___ ___ __ __
# / | __ ______/ (_) /_____/ /
# / /| |/ / / / __ / / __/ __ /
# / ___ / /_/ / /_/ / / /_/ /_/ /
# /_/ |_\__,_/\__,_/_/\__/\__,_/
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
useradd --no-create-home --shell /bin/false prometheus
mkdir /etc/prometheus
mkdir /var/lib/prometheus

SEO is Not Hard . A step-by-step SEO Tutorial for beginners that will get you ranked every single time

Note: This is a chapter out of the Growth Hacking Book called Secret Sauce: The Ultimate Growth Hacking Guide. This is only one of the 17 chapters that read just like this.

Also, the links I posted here are broken, but you can view the whole thing beautifully formatted on Medium here

After my post about making money from an affiliate site was at the top of this sub for a couple days, I've received more than 50 PMs asking for more info on how SEO works and how to get authority sites ranking. I have a chapter about that in my book, so I'm just going to publish it for free.

For what it's worth, I drive millions of dollars of traffic in the most competitive key terms online, including with new sites, so if you come in here to comment "this won't work" you're wrong. It's hard work, but it's not unreasonably hard. So much so that I decided to call it "SEO is not hard."

The best solution to tackle this issue is to Globally ignore these files from all the git repos on your system. This can be done by creating a global gitignore file like:

vim ~/.gitignore_global

Adding Rules for ignoring files like:

Compiled source


@Trailingslashes
Trailingslashes / aligning-images.md
Created February 21, 2019 23:29 — forked from DavidWells/aligning-images.md
Guide to aligning images in github readme.md files

Aligning images

left alignment

This is the code you need to align images to the left:

@Trailingslashes
Trailingslashes / index.html
Created February 21, 2019 23:16
Challenege-Signup-Form: Attempt 2 created by Trailingslashe1 - https://repl.it/@Trailingslashe1/Challenege-Signup-Form-Attempt-2
<!DOCTYPE html>
<html lang="en">
<head>
<title>AnalogSea</title>
<meta name="description" content="Sign up for AnalogSea.">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/4.2.0/normalize.min.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<img class="logo" src="https://tf-assets-prod.s3.amazonaws.com/tf-curric/WEB-DEV-001/2.5.2_challenge_signup_form/logo.png" alt="AnalogSea" />