Skip to content

Instantly share code, notes, and snippets.

@Uberi
Uberi / Binary.ahk
Last active December 17, 2015 00:39
Functions for converting between binary, text, and integers.
;AHK v1
#NoEnv
/*
MsgBox % BinaryToText(Temp1 := TextToBinary("Test")) . "`n" . Temp1
MsgBox % BinaryToNumber(Temp1 := NumberToBinary(1234)) . "`n" . Temp1
*/
TextToBinary(ByRef InputText)
{
@TLMcode
TLMcode / IPToInt().ahk
Last active December 20, 2015 02:48
IP to Integer (Hex, Decimal formats)
msgbox % IPToInt("64.190.207.31", "H")
; params ip >> format (Hex, Decimal)
msgbox % 1+1
IPToInt(ip, fmt)
{
RegExMatch(ip,"(\d+)\D+(\d+)\D+(\d+)\D+(\d+)",oct_)
SetFormat, Integer, % fmt
Int:=(oct_1*(256**3))+(oct_2*(256**2))+(oct_3*256)+oct_4
@danfinlay
danfinlay / How to download streaming video.md
Last active March 23, 2024 03:32
How to download a streaming video with Google Chrome

How to download streaming video

Streaming just means a download that they don't want you to keep. But Chrome's developer tools make it easy to access what's really going on under the hood.

Open Developer Tools

From the page where you want to download some things, go into your chrome menu to open the developer tools. You can either:

1.  (On a mac): Command-option-J
2. (On a PC): Control-alt-J
@ezimuel
ezimuel / install.sh
Created April 19, 2016 11:59
Verify and install composer from bash command line
#!/bin/bash
# Verify and install composer from https://getcomposer.org/installer
me=`basename "$0"`
if [[ $# -eq 0 ]] ; then
echo "Usage: $me <hash>"
echo 'where <hash> is the hash value of the installer to verify'
exit 1
fi
@jagrosh
jagrosh / Github Webhook Tutorial.md
Last active May 21, 2024 15:55
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings