Skip to content

Instantly share code, notes, and snippets.

View jkmartindale's full-sized avatar
:shipit:
Procrastinating

James Martindale jkmartindale

:shipit:
Procrastinating
View GitHub Profile
@phhusson
phhusson / gist:662af3573ad4fc91bb62e5fe7cde7250
Created March 14, 2022 13:12
Add rickroll Dialer option. Add rick.webm in assets
From f07ca2a26dcb0cc797dcc6fc0d2d4f16b89c481e Mon Sep 17 00:00:00 2001
From: Pierre-Hugues Husson <phh@phh.me>
Date: Mon, 14 Mar 2022 09:09:28 -0400
Subject: [PATCH] Add a rickroll button in heads-up notification to rickroll
caller
Change-Id: Ibe72535fb3e93f69a531723dc96ede05663ee251
---
assets/rick.webm | Bin 0 -> 1232413 bytes
.../NotificationBroadcastReceiver.java | 145 ++++++++++++++++++
@huytd
huytd / wordle.md
Last active May 16, 2024 20:39
Wordle in less than 50 lines of Bash

image

How to use:

./wordle.sh

Or try the unlimit mode:

@Siguza
Siguza / phoenix.c
Last active January 19, 2024 01:59
Phœnix exploit / iOS 9.3.5
// Bugs by NSO Group / Ian Beer.
// Exploit by Siguza & tihmstar.
// Thanks also to Max Bazaliy.
#include <stdint.h> // uint32_t, uint64_t
#include <stdio.h> // fprintf, stderr
#include <string.h> // memcpy, memset, strncmp
#include <unistd.h> // getpid
#include <mach/mach.h>
#include <stdlib.h>
@lrvick
lrvick / github-troll.md
Last active May 3, 2024 16:20
Trolling Github's DMCA repo with their own security flaws.
[alias]
br = branch -vv
brr = branch -r -vv
ci = commit
co = checkout
cp = cherry-pick
d = diff
dm = diff --submodule=log
ds = diff --staged
dsm = diff --staged --submodule=log
@TerrorBite
TerrorBite / bashttpd.sh
Last active February 5, 2021 11:37
A webserver… written as a shell script. This is a terrible idea. MIT license
#!/bin/bash
# Let's write a webserver in Bash because haha why not
# Copyright (c) 2017-2020 TerrorBite <terrorbite@lethargiclion.net>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@coolreader18
coolreader18 / segfault.py
Last active March 30, 2024 08:05
CPython segfault in 5 lines of code
class E(BaseException):
def __new__(cls, *args, **kwargs):
return cls
def a(): yield
a().throw(E)
@acutmore
acutmore / README.md
Last active January 21, 2024 20:30
Emulating a 4-Bit Virtual Machine in (TypeScript\JavaScript) (just Types no Script)

A compile-time 4-Bit Virtual Machine implemented in TypeScript's type system. Capable of running a sample 'FizzBuzz' program.

Syntax emits zero JavaScript.

type RESULT = VM<
  [
    ["push", N_1],         // 1
    ["push", False],       // 2
 ["peek", _], // 3
@Shugabuga
Shugabuga / shugaGreeter.js
Last active November 13, 2017 01:28
Greeter for the JavaScript console.
// Paste this into your JavaScript console. Seems to work in all browsers but Firefox.
console.log("%c_____%c Welcome to shuga.co!%c\nHi, I'm Shuga. Given that you are in the JavaScript console, I assume you're into computers in some degree. If so, you should check out my Twitter (@HeyItsShuga) or my GitHub (@Shugabuga), as I have some content that might interest you (such as cybersecurity and programming).", "background-image:url('https://shuga.co/inspectLogo.png');font-size:45px;font-family:'Times New Roman';color:transparent", "font-family:'PT Sans Caption';font-size:48px", "font-family:'PT Sans Caption';font-size:16px")
// Inspired off of console.image by adriancooney and James Martindale's implementation, but no code is shared.