Skip to content

Instantly share code, notes, and snippets.

View neonexus's full-sized avatar

NeoNexus DeMortis neonexus

  • USA
  • 07:20 (UTC -05:00)
View GitHub Profile
@neonexus
neonexus / PwnedPasswordsAPI.md
Last active December 21, 2023 03:56
Check with PwnedPasswords.com API

Check with PwnedPasswords.com API

This little script will take in a raw password string, hash it, then search PwnedPasswords.com API using only the first 5 characters of the password hash.

See: https://haveibeenpwned.com/API/v2#PwnedPasswords

@neonexus
neonexus / General Programming Rules.md
Last active November 18, 2023 05:26
General rules to live by, that generally apply to most things programming, broadly speaking... generally.
  • Master branch (master) is treated as the best, current WIP, destined to be a PRODUCTION release.

    • Used as the basis for all remote DEVELOPMENT servers.
    • Force pushes are allowed.
  • Release branch (release) is treated as a final source of truth for remote PRODUCTION servers.

    • The current version of release should reflect what all PRODUCTION servers should be running (or updating to).
    • This is the branch from which all version tags are created.
    • Force pushes are NEVER ALLOWED. The history is immutable. If something must change, it must be reflected in its history, and not overwritten.
  • Version tags are immutable.

@neonexus
neonexus / Sails Request Logging.md
Last active December 23, 2022 03:05
Sails config files to capture request logs. Replace "_" in filenames with "/". See https://github.com/neonexus/sails-react-bootstrap-webpack for a working example.

Sails Request Logging

This is a set of files to configure Sails.js v1, to log all requests / responses in the database.

Replace underscores "_" in filenames with forward slashses "/".

@mandiwise
mandiwise / Count lines in Git repo
Last active July 4, 2024 16:56
A command to calculate lines of code in all tracked files in a Git repo
// Reference: http://stackoverflow.com/questions/4822471/count-number-of-lines-in-a-git-repository
$ git ls-files | xargs wc -l
@anativ
anativ / gist:2907134
Created June 10, 2012 19:56
Search Facebook Friends with jQuery
<script>
$(function() {
$( "#autocomplete-input" ).autocomplete({
source: function( request, response ) {
$.ajax({
url: "https://graph.facebook.com/me/friends?access_token=AAAAAAITEghMBAMDBQ94HP7mX7JoDeCS6JVhN19bC4mXSvGdAglokKNC2hUYcc1uOHTZBXtWvxhxIYU7ZCVCXKxnw46nISYSFfTO26QRQZDZD&callback=?",
dataType: "jsonp",
data: {
featureClass: "P",
style: "full",