Skip to content

Instantly share code, notes, and snippets.

Avatar
👀
Open to new opportunities

Glenn 'devalias' Grant 0xdevalias

👀
Open to new opportunities
View GitHub Profile
@0xdevalias
0xdevalias / Hacker News : 'Basic SEO'
Created Feb 22, 2012
Relevant comments from Hacker News 'Basic SEO' post
View Hacker News : 'Basic SEO'
Source: http://news.ycombinator.com/item?id=1176294
andrewljohnson 715 days ago | link
0. The zeroth rule of SEO is get your site listed for a search for your site. If your site is bobsfishingtips.com, make sure if someone searches for Bob's Fishing Tips, you get found. This means simply getting at least one real site to link the name of your site to you, or maybe a couple sites if you have some common word like Yelp.
1. After that, make sure people link to you with proper anchor text for other keywords. If you want people to search for "fishing tips" and find you, then several people will need to link you something like this:
This site has great <a href=http://www.mysite.com>fishing tips</a>.
@0xdevalias
0xdevalias / unofficial-viome-api-endpoints-data-export-backup.md
Last active Sep 25, 2020
(unofficial) Guide to Viome API Endpoints, Data Export and Backup
View unofficial-viome-api-endpoints-data-export-backup.md

(unofficial) Guide to Viome API Endpoints, Data Export and Backup

Since Viome doesn't appear to offer us a way to export our data aside from as a PDF, I was inspired to have a look if I could see it any other way.


The CEO says that they don't release the raw data:

@0xdevalias
0xdevalias / DevAlias-PentestEnvironmentSetup.sh
Last active Aug 16, 2020
My steps to setup a new pentest environment
View DevAlias-PentestEnvironmentSetup.sh
# /dev/alias Pentest Environment Setup
# Version: 0.2 (20131211)
# Created By: Glenn 'devalias' Grant (http://devalias.net)
# License: The MIT License (MIT) - Copyright (c) 2013 Glenn 'devalias' Grant (see http://choosealicense.com/licenses/mit/ for full license text)
# TODO:
# * Option to check if tools (from this script and external) exist/are already installed and what versions
# * Eg nmap , metasploit, etc
# * Lair: https://github.com/fishnetsecurity/Lair
# * apt-get install python-pip
View jquery-release-notes.md
@0xdevalias
0xdevalias / python-urllib2-enable_ntlm_authentication.py
Created Nov 12, 2013
Python snippet showing how to enable NTLM authentication for urllib2 (Requires https://code.google.com/p/python-ntlm/)
View python-urllib2-enable_ntlm_authentication.py
def enable_ntlm_authentication(user = "", password = "", url = ""):
print "[+][devalias.net] Enabling NTLM authentication support"
# Import ntlm library
try:
# import ntlm
from ntlm import HTTPNtlmAuthHandler
print "[+][devalias.net][NTLM Authentication] NTLM Support Library Loaded!"
except ImportError:
print "[-][devalias.net][NTLM Authentication] Program could not find module : ntlm (Is the ntlm library installed/available locally?"
sys.exit (1)
@0xdevalias
0xdevalias / README.md
Last active Mar 10, 2019
Implementing Redux style reducers/actions/middleware with React Hooks
View README.md

I wanted to play around with React hooks, and I like patterns from Redux, so I figured.. why not combine them?

This implementes a Proof of Concept (PoC) 'local state' using hooks/reducers, but also has the ability to use Redux middleware (eg. thunks, sagas, etc)

@0xdevalias
0xdevalias / blog-mdwiki-and-how-to-get-started.md
Last active Nov 12, 2018
MDwiki (and how to get started)
View blog-mdwiki-and-how-to-get-started.md

(Blog post: http://blog.devalias.net/post/92579952637/mdwiki-and-how-to-get-started)

MDwiki (and how to get started)

If you haven't already heard about it, MDwiki is a cool little CMS/Wiki that runs entirely clientside (HTML5/Javascript) and uses Markdown

Since it's all clientside, we can do really cool things like track our changes in git and then host it all on GitHub Pages. That means super simple forking, contributing and sharing. Yay for open source!

Setting up MDwiki with GitHub

@0xdevalias
0xdevalias / places-to-work.md
Last active Sep 25, 2018
Places it would be cool to work
View places-to-work.md
@0xdevalias
0xdevalias / Gopkg.toml
Created Jul 17, 2018
Golang application state pattern boilerplate/reference code
View Gopkg.toml
[prune]
go-tests = true
unused-packages = true
[[constraint]]
name = "github.com/sirupsen/logrus"
version = "1.0.5"
[[constraint]]
name = "github.com/pkg/errors"
View gist:1dc29eae8faa566175a7632182e57520
Verifying my Blockstack ID is secured with the address 1HdsXwLpYZXGGzerkoDSacA5Dinj7MSeAR https://explorer.blockstack.org/address/1HdsXwLpYZXGGzerkoDSacA5Dinj7MSeAR