Skip to content

Gists from PCH - since github doesn't support actual gists for an org :(

License

Notifications You must be signed in to change notification settings

Packet-Clearing-House/gists

Repository files navigation

PCH gists

About

Gists from PCH - since github doesn't support actual gists for an org :(

Gists

  • IMPACT.wget.recursive.sh - wget bash script to download IMPACT (formerly PREDICT) datasets hosted at PCH
  • nonce.php - a snippet of how we do nonces for anti-CSRF on pch.net
  • random.htpassphrase.sh - bash script to generate pass phrases
  • random.htpasswds.sh - bash script to populate an .htpassword file with usernames and rand passwords
  • dns.stats.wget.csv.sh - wget based bash script to download DNS query stats
  • PchDnsStats.java - java code to download DNS query stats
  • dns.stats.curl.csv.sh - curl based bash script to download DNS query stats
  • maptable.percentile.helper.js - JavaScript helper methods if you want to generate ranks for your maptable values which you can then use to generate percentile color transforms. Used on all pch.net maps (eg IXP Dir). Requires jQuery.
  • sha512.php - Simple PHP script to take clear text password and generate SHA512 hash. Uses openssl_random_pseudo_bytes() to generate 10 char salt and uses 5000 rounds of hashing - both via crypt(). This does have two lines endemic PCH css and logo - but they only output if the files are present via is_file()
  • apachetop.load.ps.sh - While debugging our web server running Apache on Centos 6.8 we needed a way to easily correlate high load average with web traffic. This bash script which logs load average, top process by count and top IP/Count/Directory from the apache access_log solved the problem nicely!
  • dump.sql.gpg.sh - Working through our process to be GDPR compliant, we now encrypt all database dumps/backups with GPG. This script enables developers to easily make encrypted backups with a mini-wizard on an ad-hoc basis. Be sure the run gpg --import KEY with they key you want to use in backup first.
  • onetimesecret.php - PCH needed a secure way to share secrets. This is simplistic copy of onetimesecret.com.

License

MIT

About

Gists from PCH - since github doesn't support actual gists for an org :(

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published