Skip to content

Instantly share code, notes, and snippets.

View wzyboy's full-sized avatar

Zhuoyun Wei wzyboy

View GitHub Profile
/* box layout */
.pop_rwbox {
/*
top: 20%;
left: 20%;
transform: translate(-20%, -20%);
*/
left: 8%;
right: 8%;
@mariotaku
mariotaku / README.txt
Last active March 2, 2024 10:18
Twitter reverse proxy configuration for Nginx
Settings on Twidere:
API URL Format: https://your-host/[DOMAIN.]twitter.com/
Uncheck "Same OAuth signing URL"
Uncheck "No verion suffix"
Password login recommended.
@reorx
reorx / gist_print.js
Last active December 11, 2015 08:15
Bookmark to make gist more printable (tested for markdown file only)
javascript:void(
(function(w, d, j) {
// Header
j('.header.gist-header').remove();
j('.gist-detail-intro.gist-banner').remove();
// Main Head
j('.pagehead.repohead').remove();
// Main Container
j('.repository-meta').remove();
j('.file-header').remove()
@jjmaestro
jjmaestro / whisper-calculator.py
Last active November 26, 2019 07:13
whisper-calculator.py: Calculates the size of the whisper storage for the given retention (in frequency:history format)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
def archive_to_bytes(archive):
def to_seconds(s):
SECONDS_IN_A = {
's': 1,
'm': 1 * 60,
'h': 1 * 60 * 60,