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
<script id="p14405_top">
(window.rttr1011 = window.rttr1011 || { queue: [] }).queue.push({
name: 'p14405',
selector: 'p14405_top',
template: '<a href="{%link%}" style="color: green"><img src="{%imgLink%}" /></a>',
settings: {
offers: [
{
priority: 3,
userAgent: {
@phpfiddle
phpfiddle / fiddle_080222.php
Created March 30, 2018 05:37
[ Posted by Shubham Nitin Joshi ] This is login file
<?php
include("config.php");
session_start();
$error='';
// $_SESSION['testcomplete'] = 'yes';
if($_SERVER["REQUEST_METHOD"] == "POST") {
@Otiel
Otiel / Prevent screensaver.ahk
Last active October 4, 2023 10:35
AutoHotkey script to prevent Windows or your screen from going to sleep
CoordMode, Mouse, Screen
Loop
{
; Move mouse
MouseMove, 1, 1, 0, R
; Replace mouse to its original location
MouseMove, -1, -1, 0, R
; Wait before moving the mouse again
Sleep, 600000
}
@jhaddix
jhaddix / cloud_metadata.txt
Last active May 8, 2025 09:39 — forked from BuffaloWill/cloud_metadata.txt
Cloud Metadata Dictionary useful for SSRF Testing
## AWS
# from http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-categories
http://169.254.169.254/latest/user-data
http://169.254.169.254/latest/user-data/iam/security-credentials/[ROLE NAME]
http://169.254.169.254/latest/meta-data/iam/security-credentials/[ROLE NAME]
http://169.254.169.254/latest/meta-data/ami-id
http://169.254.169.254/latest/meta-data/reservation-id
http://169.254.169.254/latest/meta-data/hostname
http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key
@tommyready
tommyready / ImapService.php
Last active June 18, 2018 18:23
Laravel IMAP Service
<?php
namespace App\Services;
class ImapService {
protected $imapHost;
protected $imapEmail;
protected $imapPassword;
protected $searchCriteria;
@garygreen
garygreen / 2018_02_13_142413_add_renews_at_column_to_subscriptions.php
Last active January 24, 2024 00:20
Sync Stripe Renewal Date for all subscriptions - Laravel Console Command
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddRenewsAtColumnToSubscriptions extends Migration
{
/**
* Run the migrations.
@dikiaap
dikiaap / git-io-custom-url.md
Last active December 5, 2024 06:42
git.io custom URL

Update: As of 11 January 2022, git.io no longer accepts new URLs.

Command:

curl https://git.io/ -i -F "url=https://github.com/YOUR_GITHUB_URL" -F "code=YOUR_CUSTOM_NAME"

URLs that can be created is from:

  • https://github.com/*
  • https://*.github.com
@teeberg
teeberg / circleci_2_0_cancel_redundant_builds.py
Last active October 4, 2019 16:32
CircleCI cancel redundant builds within workflows
import json
import logging
import os
import sys
from os.path import dirname, join
from time import sleep
sys.path.insert(0, join(dirname(__file__), '.env'))
import arrow
@BBcan177
BBcan177 / MS-4
Created January 1, 2018 20:52
pfBlockerNG: webtransparency.cs.princeton.edu - The following is the list of sites from Alexa top 1 million which embed scripts that extract email addresses from the browsers' built-in login (password) managers.
# https://webtransparency.cs.princeton.edu/no_boundaries/autofill_sites.html
# The following is the list of sites from Alexa top 1 million which embed scripts that extract email addresses from the browsers'
# built-in login (password) managers.
1000sunny.net
1001trucscoolsafaire.fr
123boutchou.com
12zawodnik.pl
1pic1day.com
2012un-nouveau-paradigme.com
247nigerianewsupdate.co
@calumroy
calumroy / win10_AutoStart.md
Last active September 26, 2024 19:33
Windows 10 automatically login and start a program.

Auto start a user program and hide windows 10 home from a user.

The goal is to setup a windows 10 home computer that automatically starts up and runs a user .exe program. No windows logos should be shown and the user should not be able to interact with other windows applications.

Upon shutdown of the .exe the computer should shutdown.

Regedit

Windows 10 home or pro doesn't allow you to directly set a classic windows app such as a user .exe program as the startup. We instead call a batch script that calls our .exe. instead.

A windows batch script is used to make a .exe run on startup.