Skip to content

Instantly share code, notes, and snippets.

@urielka
urielka / ipin.py
Created September 3, 2012 12:37
iOS PNG uncrushers based on http://www.axelbrz.com.ar/?mod=iphone-png-images-normalizer with a fix for multiple IDAT
#---
# iPIN - iPhone PNG Images Normalizer v1.0
# Copyright (C) 2007
#
# Author:
# Axel E. Brzostowski
# http://www.axelbrz.com.ar/
# axelbrz@gmail.com
#
# References:
@danriti
danriti / hipchat-v2.sh
Last active July 18, 2024 14:34
HipChat API v2 - Send a message to a room using cURL
#!/bin/bash
# Set the ROOM_ID & AUTH_TOKEN variables below.
# Further instructions at https://www.hipchat.com/docs/apiv2/auth
ROOM_ID=XXX
AUTH_TOKEN=XXX
MESSAGE="Hello world!"
curl -H "Content-Type: application/json" \
@dvingerh
dvingerh / discord.extrabuttons.user.js
Last active July 30, 2018 01:23
Discord Userscript: Adds a NSFW button and adds a visibility toggle button for the channel bar in the server list. (Extra Buttons In Server List)
// ==UserScript==
// @name Discord Extra Buttons In Server List
// @description Adds a NSFW button and adds a visibility toggle button for the channel bar in the server list.
// @namespace Violentmonkey Scripts
// @grant none
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @match *://discordapp.com/*
// ==/UserScript==
//
var hidden = false;
@dvingerh
dvingerh / discord.extrafilebuttons.user.js
Last active July 30, 2018 01:23
Discord Userscript: Adds a direct download button and an 'open in new tab' button for content such as (embedded) images and uploaded files. (Discord Extra File Button Options v2)
// ==UserScript==
// @name Discord Extra File Button Options v2
// @description Adds a direct download button and an 'open in new tab' button for content such as (embedded) images and uploaded files.
// @namespace Violentmonkey Scripts
// @grant GM_addStyle
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @match *://discordapp.com/*
//
// ==/UserScript==
@rtrouton
rtrouton / gist:3ac68ac3770ab23ebae354c581f526b7
Last active April 23, 2024 01:17
MigrateADMobileAccountToLocalAccount.command script
#!/bin/bash
# Modified 4/5/2019
Version=1.4
# Original source is from MigrateUserHomeToDomainAcct.sh
# Written by Patrick Gallagher - https://twitter.com/patgmac
#
# Guidance and inspiration from Lisa Davies:
# http://lisacherie.com/?p=239
#
# Modified by Rich Trouton
@gurland
gurland / main.py
Last active December 7, 2023 11:08
How to delete all your messages from chat in telegram? Easy, just use this program
# Copyright (c) 2017 Stanislav Bobokalo & Alexey Borontov
# 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
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all
@dvingerh
dvingerh / twitter.imagehelper.user.js
Last active January 5, 2022 13:54
Twitter Image Helper modifies image sources so that the best available image quality is always being used in tweets. Also adds a download button for images in tweets and redirects direct image links from Twitter to show the largest available size. Also: No more jpg-orig etc. image extensions when downloading!
// ==UserScript==
// @name Twitter Image Helper v2
// @namespace Twitter Image Helper v2
// @version 0.1
// @description Twitter Image Helper modifies image sources so that the best available image quality is always being used in tweets. Also adds a download button for images in tweets and redirects direct image links from Twitter to show the largest available size. Also: No more jpg-orig etc. image extensions when downloading!
// @author You
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @require https://raw.githubusercontent.com/pie6k/jquery.initialize/master/jquery.initialize.min.js
// @include *pbs.twimg.com/media/*
// @include *twitter.com*
@rcx
rcx / delete-all-messages.js
Last active November 9, 2023 19:12 — forked from niahoo/delete-all-messages.js
Delete all your messages in a Discord channel
/*
* Discord: Don't copy stuff into this box
* Me: dOn'T COpy sTuFf iNtO tHIs bOx
*/
clearMessages = function (guild_id, author_id, authToken, deleted = new Set()) {
if (guild_id[0] == "_" && guild_id[guild_id.length - 1] == "_") {
alert("Oops! You forgot to set the guild_id. Please fill it in.")
return;
}
if (author_id[0] == "_" && author_id[author_id.length - 1] == "_") {