Skip to content

Instantly share code, notes, and snippets.

View nhalstead's full-sized avatar
👨‍💻
Something. Maybe cool

Noah Halstead nhalstead

👨‍💻
Something. Maybe cool
View GitHub Profile
@jarbro
jarbro / symantec-vip-access-totp.md
Last active May 3, 2025 11:01
Generate Symantec VIP Access Token as TOTP

Generate Symantec VIP Access Token as OTP

Recently I came across a web service that required two-factor authentication using the Symantec VIP Access App. I already manage all of my OTP tokens in a different app (If you are on iOS I highly recommend using OTP Auth by Roland Moers.) and did not want to have to use yet another app to generate the TOTP.

There is a way to generate a Symantec VIP Access compatible token very easily if you have access to an environment which can run Python PIP. I happen to have Ubuntu Windows Subsystem Linux running on my machine. (If you are running Windows 10 and don't have this you should really check it out.) Let's get started...

hello

Instructions

Here we install python3-pip and qrencode so we can generate our secret, I

@lenconda
lenconda / get_subdomains.js
Last active December 31, 2018 08:01
获取子域名列表
const superagent = require('superagent');
const cheerio = require('cheerio');
const getSubdomains = (rootDomain) => {
return new Promise((resolve, reject) => {
superagent
.post('https://hackertarget.com/find-dns-host-records/')
.type('form')
.send({ theinput: rootDomain })
.send({ thetest: 'hostsearch' })
@iskandarsaleh
iskandarsaleh / Dockerfile
Created December 30, 2018 04:31 — forked from gustavomcarmo/Dockerfile
Example of Ansible playbook for building a custom Jenkins Docker image and running it in a remote host.
FROM jenkins/jenkins:lts
LABEL maintainer "Gustavo Muniz do Carmo <[email protected]>"
ENV JAVA_OPTS="-Djenkins.install.runSetupWizard=false"
COPY config-maven.groovy /usr/share/jenkins/ref/init.groovy.d/
COPY config-sonarqube.groovy /usr/share/jenkins/ref/init.groovy.d/
COPY harden-jenkins.groovy /usr/share/jenkins/ref/init.groovy.d/
COPY default-user.groovy /usr/share/jenkins/ref/init.groovy.d/
@01kbpatel
01kbpatel / hassio_ubuntu_install_commands.sh
Created December 30, 2018 04:29 — forked from frenck/hassio_ubuntu_install_commands.sh
Simple install command for installing Hass.io on a Generic Ubuntu/Debian machine
sudo -i
add-apt-repository universe
apt-get update
apt-get install -y apparmor-utils apt-transport-https avahi-daemon ca-certificates curl dbus jq network-manager socat software-properties-common
curl -sSL https://get.docker.com | sh
curl -sL "https://raw.githubusercontent.com/home-assistant/hassio-build/master/install/hassio_install" | bash -s
<?php
/**
* Gravity Forms Paynamics Add-On.
*
* @since 1.0
* @package GravityForms
* @author Rocketgenius
* @copyright Copyright (c) 2009 - 2018, Rocketgenius
*/
@hlashbrooke
hlashbrooke / wordpress.sql
Created December 13, 2018 11:56
Change site URLs in WordPress database - covers all areas where the URLs appear, except for seralised strings, like customiser and widget options. Those will need to be updated manually or by using WP-CLI.
UPDATE wp_options SET option_value = replace(option_value, 'OLDURL', 'NEWURL') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'OLDURL','NEWURL');
UPDATE wp_posts SET post_content = replace(post_content, 'OLDURL', 'NEWURL');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'OLDURL','NEWURL');
@cferdinandi
cferdinandi / headless-wp.md
Created November 30, 2018 22:39
A little exploration of how to run a headless WordPress install behind a static site generator for some server-side magic.

Headless WordPress

Since moving to a static-site generator, I occassionally need a server backend to handle logic for me.

In one case, I use it to handle user account creation for my learning platform. WordPress stores all of the usernames/passwords, and I can use JS to make calls to it, log users in, and surface "logged in only" user content.

More often, though, I'm using it as a middle-man for API calls that require the user of keys/secrets, or return data I don't want to fully expose publicly.

Here's how it works...

@hmnd
hmnd / anonymous_google_profile_images.md
Last active February 5, 2025 00:50
Definitive list of anonymous Google Profile Images
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active May 8, 2025 18:26
set -e, -u, -o, -x pipefail explanation
@phpfiddle
phpfiddle / fiddle_032932.php
Created September 11, 2018 08:29
[ Posted by Fillano ] simple Event Facilities.
<?php
class Event {
private static $events = [];
public static function Regist($eventName, Callable $callback) {
if(!is_callable($callback)) return false;
if(!array_key_exists($eventName, self::$events)) {
self::$events[$eventName] = [];
}
self::$events[$eventName][] = $callback;
return true;