Skip to content

Instantly share code, notes, and snippets.

@mxmtsk
mxmtsk / tweetcount.js
Last active December 15, 2017 19:53
Simple Tampermonkey Script that will show the tweet character count on Twitter!
// ==UserScript==
// @name Show Twitter Count
// @namespace mxmtsk.twittercount
// @version 0.1
// @description Show good old twitter count instead of the donut
// @author mxmtsk
// @match https://twitter.com/*
// @grant none
// @run-at document-idle
// ==/UserScript==
@mondain
mondain / public-stun-list.txt
Last active May 5, 2024 18:13
Public STUN server list
23.21.150.121:3478
iphone-stun.strato-iphone.de:3478
numb.viagenie.ca:3478
s1.taraba.net:3478
s2.taraba.net:3478
stun.12connect.com:3478
stun.12voip.com:3478
stun.1und1.de:3478
stun.2talk.co.nz:3478
stun.2talk.com:3478
@kkosuge
kkosuge / sample.php
Last active April 8, 2022 09:46
PHP <=> Ruby ( OpenSSL AES-256-CBC )
<?php
const PASSWORD = '!!!!!sufficiently_long_password!!!!!';
const CIPHER_METHOD = 'AES-256-CBC';
function encrypt($str) {
$iv_length = openssl_cipher_iv_length(CIPHER_METHOD);
$iv = mcrypt_create_iv($iv_length, MCRYPT_RAND);
$str = $iv.$str;
$val = openssl_encrypt($str, CIPHER_METHOD, PASSWORD, 0, $iv);
@armornick
armornick / apputils.pas
Created May 10, 2014 09:36
Free Pascal program to make Lazarus portable (based off the earlier batch script but more versatile)
unit AppUtils;
{$mode objfpc}{$H+}
interface
uses
SysUtils;
function CheckDir(path:string):Boolean;