Skip to content

Instantly share code, notes, and snippets.

View hectormenendez's full-sized avatar
🪡
Focusing

Hector Menendez hectormenendez

🪡
Focusing
View GitHub Profile
@wybiral
wybiral / noscript-tracking.go
Last active September 11, 2023 08:53
Tracking cursor position in real-time with remote monitoring (without JavaScript)
// Tracking cursor position in real-time without JavaScript
// Demo: https://twitter.com/davywtf/status/1124146339259002881
package main
import (
"fmt"
"net/http"
"strings"
)
@timdp
timdp / list.sh
Created April 3, 2016 13:04
List npm dependents for all your packages
# Requirements:
# - curl
# - pup (https://github.com/ericchiang/pup)
# - npm-dependents (https://www.npmjs.com/package/npm-dependents)
curl -s 'https://www.npmjs.com/~timdp' | \
pup '.collaborated-packages a text{}' | \
xargs -n1 -I % sh -c 'echo -n %:\ ; npm-dependents % --list'
@btroncone
btroncone / rxjs_operators_by_example.md
Last active July 16, 2023 14:57
RxJS 5 Operators By Example
@fallroot
fallroot / open-notification-center-with-jxa.js
Created February 12, 2015 19:00
Open OSX Notification Center with JXA
Application('System Events')
.processes['SystemUIServer']
.menuBars
.menuBarItems
.whose({
name: 'Notification Center'
})
.menuBarItems()
.reduce(function(a, b) {
return a.concat(b);
@perusio
perusio / apache_killer.pl
Created August 20, 2011 16:24
Apache Killer by KingCope exploits mod_deflate vulnerability
#Apache httpd Remote Denial of Service (memory exhaustion)
#By Kingcope
#Year 2011
#
# Will result in swapping memory to filesystem on the remote side
# plus killing of processes when running out of swap space.
# Remote System becomes unstable.
#
use IO::Socket;