Skip to content

Instantly share code, notes, and snippets.

View jwahdatehagh's full-sized avatar

Jalil Wahdatehagh jwahdatehagh

View GitHub Profile
@jwahdatehagh
jwahdatehagh / killport
Created May 29, 2026 11:55
killport — kill whatever is listening on a TCP port (LISTEN sockets only, so clients connected to the port are left alone)
#!/usr/bin/env bash
# killport <port> [signal]
# Kill whatever is *listening* on a TCP port (not clients merely connected to it).
set -euo pipefail
port="${1:-}"
signal="${2:-TERM}"
if [[ -z "$port" || ! "$port" =~ ^[0-9]+$ ]]; then
echo "usage: killport <port> [signal]" >&2
// Change these values
const COLLECTION_ADDRESS = "0xabc123"
const API_KEY = "b128..."
const START_ID = 1
const END_ID = 152
// Leave the below alone...
// Paste the entire file into the browser console and hit "Enter".
const delay = (ms) => new Promise(resolve => setTimeout(resolve, ms))
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jwahdatehagh
jwahdatehagh / easy-forms.js
Created January 11, 2015 18:28
ember-cli EasyForms initializer for Ember#1.9.1 & handlebars#2.0
import Ember from 'ember';
// ==========================================================================
// Project: Ember EasyForm
// Copyright: Copyright 2013 DockYard, LLC. and contributors.
// License: Licensed under MIT license (see license.js)
// ==========================================================================
// Version: 1.0.0.beta.1