Skip to content

Instantly share code, notes, and snippets.

View jasisk's full-sized avatar
👋

Jean-Charles Sisk jasisk

👋
View GitHub Profile
@jasisk
jasisk / contact-key-verification.txt
Created December 21, 2023 00:46
Contact Key Verification
APKTIDFWrku426AbENXpGLMP1sNFa26rLt_h4AHu-316N6e22k7A
@jasisk
jasisk / autoreoji.js
Last active June 28, 2023 14:25
Automatically "react" to your own messages in Slack.
/**
*
* Think you're something special? Automatically "react"
* to your own Slack messages.
*
* Example:
* autoReact('crab') // automatically react with the crab emoji
*
* Related: http://slackhq.com/post/123561085920/reactions
*
@jasisk
jasisk / mount.sh
Created October 24, 2017 19:37
Mount an APFS ramdisk in High Sierra
SIZE=1024
DISKNAME=ramdisk
MOUNTPATH="$HOME/mnt"
DISK="$(basename $(hdiutil attach -nomount "ram://$(( ${SIZE} * 1024 * 1024 / 512 )))"
diskutil partitionDisk "${DISK}" GPT APFS %noformat% R
newfs_apfs -v "${DISKNAME} "${DISK}s1"
diskutil mount -mointPoint "${MOUNTPATH}" "${DISKNAME}"
package main
import (
"fmt"
"os"
"os/exec"
"os/signal"
"syscall"
)
@jasisk
jasisk / emoticons.json
Last active February 5, 2019 19:49
List of emoticons available in Skype
[
{
"angel": {
"Name": "Angel",
"Facebook": null,
"Skype": [
"(angel)",
"(A)",
"(a)"
]
/*
* $ echo "these are words" | confirm-pipe | xxd
* these are words
*
* type c to confirm, anything else to quit
* 00000000: 7468 6573 6520 6172 6520 776f 7264 730a these are words.
*
*/
package main
@jasisk
jasisk / kittens.js
Created February 3, 2012 02:43
kittens!!!
javascript:(function(){var a=document.getElementsByTagName('img'),i=a.length;while(b=a[--i]){b.setAttribute('src','http://placekitten.com/'+b.width+'/'+b.height);}}());
@jasisk
jasisk / install_stylus.sh
Created July 15, 2011 18:51
Steps to install Stylus (CSS Preprocessor) in home directory
curl http://nodejs.org/dist/node-v0.4.9.tar.gz | tar xz
cd node-v0.4.9/
./configure --prefix=~/local
mkdir ~/local
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
make install
curl http://npmjs.org/install.sh | sh
npm-g install stylus
@jasisk
jasisk / gist:848610
Created March 1, 2011 04:28
Kittenator Bookmarklet
javascript:(function(){var a=document.getElementsByTagName('img'),i=a.length;while(b=a[--i]){b.setAttribute('src','http://placekitten.com/'+b.width+'/'+b.height);}})();
@jasisk
jasisk / FB+JS.js
Created December 1, 2010 16:44
Loads Firebug Lite (if necessary) and jQuery (if necessary)
(function(){
if (typeof window.console === 'undefined'){
//Load Firebug Lite
var firebug_Script = document.createElement('script');
firebug_Script.setAttribute('src','https://getfirebug.com/firebug-lite.js#startOpened');
document.body.appendChild(firebug_Script);
var tI = setInterval(function(){
if(typeof window.console !== 'undefined'){
console.info('Firebug Lite attached.');
clearInterval(tI);