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
@sumect
sumect / wpstest.ino
Created May 8, 2018 15:50 — forked from copa2/wpstest.ino
Example for WPS connection with https://github.com/esp8266/Arduino
#include <ESP8266WiFi.h>
void setup() {
Serial.begin(115200);
delay(1000);
Serial.printf("\nTry connecting to WiFi with SSID '%s'\n", WiFi.SSID().c_str());
WiFi.mode(WIFI_STA);
WiFi.begin(WiFi.SSID().c_str(),WiFi.psk().c_str()); // reading data from EPROM, last saved credentials
while (WiFi.status() == WL_DISCONNECTED) {
@knownasilya
knownasilya / README.md
Last active May 8, 2018 16:06 — forked from thoov/user.hbs
Thought exercise on "Ember Controllerless"

@model, @action and @service basically expose the underlying thing that they decorate to the component set by @associatedComponent (which is made up and not a great name).

I can also see something like @model({ pauseRendering: false }) and @model({ waitForParent: false }) for the data loading.

<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 October 30, 2025 11:14 — 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 September 8, 2025 00:26
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