Skip to content

Instantly share code, notes, and snippets.

@neichen
neichen / FileReader-image-preview.html
Created December 17, 2023 08:54 — forked from Arguseye/FileReader-image-preview.html
FileReader 解析Excel文件
<!doctype html>
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>Image preview example</title>
<script type="text/javascript">
oFReader = new FileReader(), rFilter = /^(?:image\/bmp|image\/cis\-cod|image\/gif|image\/ief|image\/jpeg|image\/jpeg|image\/jpeg|image\/pipeg|image\/png|image\/svg\+xml|image\/tiff|image\/x\-cmu\-raster|image\/x\-cmx|image\/x\-icon|image\/x\-portable\-anymap|image\/x\-portable\-bitmap|image\/x\-portable\-graymap|image\/x\-portable\-pixmap|image\/x\-rgb|image\/x\-xbitmap|image\/x\-xpixmap|image\/x\-xwindowdump)$/i;
oFReader.onload = function (oFREvent) {
document.getElementById("uploadPreview").src = oFREvent.target.result;
@neichen
neichen / gist:4e1050949f20154f0076bbad8ec04ff0
Created November 28, 2023 12:50 — forked from levelsio/gist:5bc87fd1b1ffbf4a705047bebd9b4790
Secret of Monkey Island: Amsterdam (by @levelsio) or how to create your own ChatGPT image+text-based adventure game
# 2023-11-27 MIT LICENSE
Here's the open source version of my ChatGPT game MonkeyIslandAmsterdam.com.
It's an unofficial image+text-based adventure game edition of Monkey Island in Amsterdam, my home town.
Please use it however you want. It'd be nice to see more ChatGPT-based games appear from this. If you get inspired by it, please link back to my X https://x.com/levelsio or this Gist so more people can do the same!
Send me your ChatGPT text adventure game on X, I'd love to try it!
@neichen
neichen / shanbay_remember.js
Created December 1, 2020 07:25 — forked from yihong0618/shanbay_remember.js
扇贝加密破解自动发送今日新词到 telegram
const https = require("https");
const token = ""; // change this to you telegram bot token!
const chatId = ""; // change this to your telegram chat id!
const cookie = ""; // change this to your shanbay cookie!
const PATH_API = (page) =>
`/wordsapp/user_material_books/blozps/learning/words/today_learning_items?ipp=10&page=${page}&type_of=NEW`;
const options = {
{"sig":"228eb35dc3f53c92b7cea1429b464da861ceff00a3299a70739955b8c6bc2c71b410aae1ebadbe94d7f7035ef91b95c9f0fee451926fee0a4145f0fdc6b2e730","msghash":"0093a6d1a5769de3aedc75faf75253f9d354edfeb889c862be8037d2852a6d00"}
@neichen
neichen / ip_blacklist.txt
Created January 3, 2018 08:55 — forked from anonymous/ip_blacklist.txt
IP Blacklist 2018-01-01
This file has been truncated, but you can view the full file.
1.0.172.203
1.0.201.93
1.0.209.111
1.0.220.166
1.1.129.24
1.1.133.37
1.1.157.202
1.1.186.173
1.1.227.39
1.1.248.14
@neichen
neichen / breachcompilation.txt
Created December 19, 2017 05:02
1.4 billion password breach compilation wordlist
wordlist created from original 41G stash via:
grep -rohP '(?<=:).*$' | uniq > breachcompilation.txt
Then, compressed with:
7z a breachcompilation.txt.7z breachcompilation.txt
Size:
@neichen
neichen / .sql
Created December 15, 2017 13:02
* dumb split on first : * dumb convert any unknown utf-8 to surrogates and replace * can re-run on db if db has unique constraint on user&pass tuple
CREATE DATABASE pw
WITH
OWNER = XXXXXXXXXXXXXX
ENCODING = 'UTF8'
LC_COLLATE = 'en_US.UTF-8'
LC_CTYPE = 'en_US.UTF-8'
TABLESPACE = pg_default
CONNECTION LIMIT = -1;
CREATE TABLE public.passwords
@neichen
neichen / curl.md
Created October 20, 2017 13:30 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@neichen
neichen / log.md
Created June 8, 2017 06:36 — forked from m-jowett/log.md
Setup LibreOffice Online (Log/Guide) [WIP]

Setup LibreOffice Online (Log/Guide) [WIP]

About

This guide/log is based off my experience attempting to build and install LibreOffice Online and it's dependencies on my system.

The end goal is to get LibreOffice Online integrated with Karoshi Server.

LibreOffice Online is still in development (17/06/16).

Keybase proof

I hereby claim:

  • I am neichen on github.
  • I am nei (https://keybase.io/nei) on keybase.
  • I have a public key whose fingerprint is 9731 4BDB 094F D7D9 993B 7E62 5D2C FA34 5D2E 4FC4

To claim this, I am signing this object: