Skip to content

Instantly share code, notes, and snippets.

View suttree's full-sized avatar
🤔
copacetic/autotelic

Duncan Gough suttree

🤔
copacetic/autotelic
View GitHub Profile
@suttree
suttree / gist:8ccff8943cf309e4fd76b864d4a7dcf6
Last active March 16, 2023 11:00
Smart Photos - steganograpy, identity, and pfps
from PIL import Image
from stegano import lsb
# To store a message
secret = lsb.hide("./uodh.jpg", "http://tinyurl.com/5j4nng")
secret.save("./uodh.png")
# To read a message
clear_message = lsb.reveal("./uodh.png")
print(clear_message)
// If more than one screen is attached to the computer, run the
// code at the full dimensions across all of the attached screens
int x = 0;
void setup() {
fullScreen(P2D, SPAN);
background(0);
noStroke();
fill(102);
npm install http://github.com/maccman/Socket.IO-node/tarball/master
npm info it worked if it ends with ok
npm info version 0.2.2
npm info fetch http://github.com/maccman/Socket.IO-node/tarball/master
npm ERR! Error installing http://github.com/maccman/Socket.IO-node/tarball/master
npm ERR! Error: ENOENT, No such file or directory '/home/suttree/.node_libraries/.npm/.tmp/1285618288536-0.8118845261633396/package.json'
npm ERR! at node.js:757:9
npm ERR! try running: 'npm help install'
npm ERR! Report this *entire* log at <http://github.com/isaacs/npm/issues>
npm ERR! or email it to <npm-@googlegroups.com>
# Author: Pieter Noordhuis
# Description: Simple demo to showcase Redis PubSub with EventMachine
#
# Requirements:
# - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby
# - a browser with WebSocket support
#
# Usage:
# ruby redis_pubsub_demo.rb
#
# Author: Pieter Noordhuis
# Description: Simple demo to showcase Redis PubSub with EventMachine
#
# Requirements:
# - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby
# - a browser with WebSocket support
#
# Usage:
# ruby redis_pubsub_demo.rb
#
#! /usr/bin/env python
# Wikemail.py - import your emails into dokuwiki to create
# a searchable, wiki-able archive of you mail - Duncan Gough 23/10/04
import getpass, imaplib, re, rfc822, commands, email, os
#from TaskThread import TaskThread
import threading
class ImapWiki(threading.Thread):
<script id="kzScript" type="text/javascript">
1function killzoneFlashLoaded(){var flashDiv = document.getElementById("killzoneFlash");flashDiv.style.height="100%";}function closeKillzone(){objects = document.getElementsByTagName("object");embeds=document.getElementsByTagName("embed");if(objects.length > 1){for(var i = 0; i<objects.length; i++){objects[i].style.display = "block";}}else if(objects.length == 1){objects[0].style.display="block";}if(embeds.length > 1){for(var i = 0; i<embeds.length; i++){embeds[i].style.display = "block";}}else if(embeds.length == 1){embeds[0].style.display="block";}var killzoneFlash = document.getElementById("killzoneFlash");var killzoneScript = document.getElementById("kzScript");document.body.removeChild(killzoneFlash);document.body.removeChild(killzoneScript);}function getBgPng(){return 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA+sAAAH6CAYAAAB/Fd1eAAAgAElEQVR4nOydd1hUV/64SdlkN5vNZje7v91kk292s5vEDtgARRlNNKJGxQYWZKSjREERBURAxIKd2LGh9I70IlKlIxbsiCVEIBYUkCrv74+ZucxQFKMbk82c5