Skip to content

Instantly share code, notes, and snippets.

View dearrrfish's full-sized avatar
🐈
If cats could talk, they wouldn't.

Yu Jin dearrrfish

🐈
If cats could talk, they wouldn't.
View GitHub Profile
@dearrrfish
dearrrfish / 55-bytes-of-css.md
Created September 27, 2022 22:17 — forked from JoeyBurzynski/55-bytes-of-css.md
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@dearrrfish
dearrrfish / custom-website-fonts.userstyle.css
Last active September 17, 2021 23:52
UserStyles - Custom Website Fonts
/* ==UserStyle==
@name Custom website fonts
@namespace github.com/dearrrfish/my-userscripts
@version 1.0.0
@description Override fonts & styles on websites
@author Me
==/UserStyle== */
body {
-webkit-font-smoothing: subpixel-antialiased !important;
/* font-family: 'LXGW WenKai UI' */
@dearrrfish
dearrrfish / adlists.txt
Created July 13, 2021 00:02
pihole lists
https://anti-ad.net/domains.txt
@dearrrfish
dearrrfish / surfingkeys_config
Last active March 15, 2021 18:43
SurfingKeys extension configurations
// an example to create a new mapping `ctrl-y`
mapkey('<Ctrl-y>', 'Show me the money', function() {
Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).');
});
// an example to replace `T` with `gt`, click `Default mappings` to see how `T` works.
map('gt', 'T');
// an example to remove mapkey `Ctrl-i`
unmap('<Ctrl-i>');
@dearrrfish
dearrrfish / .cVimrc
Last active November 20, 2019 01:33
" vim: set ft=vim :
set smoothscroll
let scrollduration = 250
"let barposition = "bottom"
let completionengines = ["google", "wikipedia", "amazon", "youtube"]
"set noautofocus
"let zoomfactor=0.1
@dearrrfish
dearrrfish / xnsCloud_v3.py
Created September 11, 2016 01:11 — forked from p0we7/xnsCloud_v3.py
Cloudxns DDNS Script v3.1 [ 代码末尾有安装方法 ]
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: p0we7
# Email : i@iu.vc
def handle_import_error():
print '\n' + "Import Error:"
print 'Please install the required 3rd-party modules ' + '\033[4;95m' + 'requests' + '\033[0m' + '\n'
import sys
sys.exit()
@dearrrfish
dearrrfish / curl_request_wrapper.js
Created June 19, 2015 23:32
Send Request function uses the CURL command line tool
// http://zurb.com/forrst/posts/Alternative_HTTP_Request_method_for_Node_js_usin-Jek
/**
* Send Request
*
* Send Request function uses the CURL command line tool
* rather than Node's built-in HTTP functions because
* it makes specifiying a proxy connection much easier
*/
function send_request(opts, callback) {
var curl = spawn('curl', ['--proxy', 'myproxy.com:1234', '-s', '-S', opts.uri]),
@dearrrfish
dearrrfish / private.xml
Last active August 29, 2015 14:14 — forked from lucifr/private.xml
<?xml version="1.0"?>
<root>
<item>
<name>F19 to F19</name>
<appendix>(F19 to Hyper (ctrl+shift+cmd+opt) + F19 Only, F19)</appendix>
<identifier>private.f192f19</identifier>
<autogen>
--KeyOverlaidModifier--
KeyCode::F19,
KeyCode::COMMAND_L,
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'