Skip to content

Instantly share code, notes, and snippets.

View XiaoPanPanKevinPan's full-sized avatar

潘仰祐 Kevin Pan XiaoPanPanKevinPan

View GitHub Profile
@XiaoPanPanKevinPan
XiaoPanPanKevinPan / Readme.md
Last active July 22, 2024 18:36
Vencord For Firefox (Self-built, Non-official)

Obviously, Vencord has stopped uploading their extension to addons.mozilla.org due to the long-waiting review, and they also decided not to go self-hosting. But I need to use that, therefore I decided to try build the addon.

Some packages are required to be installed in advance:

(Version numbers above are for reference only. Usually, you don't need to follow them.)

Here's what I've done:

@rvaiya
rvaiya / zip.js
Last active July 5, 2023 08:13
tinyzip.js - A tiny zip file generator in 70 lines of javascript.
// Author: Raheman Vaiya
// License: WTFPL
//
// A tiny zip generator in < 70 lines of javascript.
// Produces an uncompressed zip blob when fed an array
// of the form:
//
// [{name: 'filename', data: <Uint8Array>}]
//
// Useful for bookmarklets, don't use this in production :P.
@Anime4000
Anime4000 / readme.md
Last active May 21, 2024 11:49
Linux Mail Server Postfix Dovecot Virtual User, no sql database

Linux Mail Server

In this guide, I will show you how to make a Linux Mail Server in fast and easy way. This guide was taken from tiq's tech-blog for recent version, Linux distro I using is Ubuntu 20.04 LTS

Certificate

Make sure you have Certificate and Key file ready to use.

You can use existing Web Server SSL certificate, since we going to use same domain, example.com.

If you plan to use mx.example.com or mail.example.com you need create another one for these.

@nameoverflow
nameoverflow / weasel.custom.yaml
Last active October 20, 2019 06:33
小狼毫高仿 Win10 内置输入法
patch:
preset_color_schemes/metro:
back_color: 0xffffff
border_color: 0x444444
hilited_back_color: 0xffffff
hilited_candidate_back_color: 0x444444
hilited_candidate_text_color: 0xffffff
hilited_text_color: 0x000000
name: "metro"
text_color: 0x000000
@unhammer
unhammer / window-toggle-decorations.py
Created February 13, 2012 08:55
toggle gtk window decorations
#! /usr/bin/python2
import gtk.gdk
w = gtk.gdk.window_foreign_new( gtk.gdk.get_default_root_window().property_get("_NET_ACTIVE_WINDOW")[2][0] )
w.set_decorations( (w.get_decorations()+1)%2 ) # toggle between 0 and 1
gtk.gdk.window_process_all_updates()
gtk.gdk.flush()
# now bind this to super-r or something