Skip to content

Instantly share code, notes, and snippets.

View Puxirepublic's full-sized avatar
🍺

Puxirepublic

🍺
  • behave exclusively as 従順な原子化消費者
View GitHub Profile
@unruthless
unruthless / CSS for <sup> and <sub>
Created May 26, 2010 01:31
CSS for <sub> and <sup>
sub, sup {
/* Specified in % so that the sup/sup is the
right size relative to the surrounding text */
font-size: 75%;
/* Zero out the line-height so that it doesn't
interfere with the positioning that follows */
line-height: 0;
/* Where the magic happens: makes all browsers position
@jessedearing
jessedearing / vim cheatsheet.md
Last active April 1, 2022 18:05
Vim Cheatsheet

#Vim Cheat Sheet

  • gqip - Reformats paragraph to textwidth
  • gq - Reformats selection
  • :Tab /= - Equally spaces based on the = symbol (requires Tabular vim plugin)
  • :setf language - Changes current language
  • :set language=language - Changes current language
  • <C-a> - Increments the number under the cursor
  • <C-x> - Decrements the number under the cursor
  • ~ - Toggles case and moves to next character in normal mode
@jandk
jandk / cleanup.sh
Last active December 21, 2018 14:30
Clean up some gentoo files
#!/bin/sh
echo "Space free"
df -h | head -n 2
echo "Removing foreign man pages"
find /usr/share/man -type d -not -name man*
echo "Removing gtk docs"
rm -rf /usr/share/gtk-doc
/*
Here's a CSS code to hide the most of GoldenDict's Scan Popup buttons.
Enable or disable them as you wish.
*/
/* ScanPopup #goBackButton, */
/* ScanPopup #queryError */
ScanPopup #goBackButton,
ScanPopup #goForwardButton,
ScanPopup #wordListButton,
@Tvangeste
Tvangeste / article-style.css
Last active October 31, 2022 04:25
My qt-style.css
#.dsl_headwords
#{
# white-space: nowrap;
#}
#.gddictname
#{
# width: 50%;
# white-space: nowrap;
# text-overflow: ellipsis;
# overflow: hidden;
@codebrainz
codebrainz / gist:8621904
Last active December 14, 2018 08:06
fontconfig settings
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
Disable "faked bold" done when font doesn't have bold style
-->
<match target="font">
<test name="spacing" compare="eq">
@flying-sheep
flying-sheep / plasmoid-tempinstall-run.sh
Last active December 6, 2018 14:28
installs and runs a plasmoid with a plugin
#!/bin/sh
#usage: ./plasmoid-tempinstall-run.sh plasmoidname
export QML2_IMPORT_PATH="$HOME/.local/share/qml"
myplasmoid=$1
mysopath="$QML2_IMPORT_PATH/org/kde/plasma/private/$myplasmoid"
if [[ -d "$HOME/.local/share/plasma/plasmoids/org.kde.plasma.$myplasmoid" ]]; then
plasmapkg2 -u ./package
@tuxfight3r
tuxfight3r / vim-shortcuts.md
Last active February 14, 2025 08:24
VIM SHORTCUTS

VIM KEYBOARD SHORTCUTS

MOVEMENT

h        -   Move left
j        -   Move down
k        -   Move up
l        -   Move right
$        -   Move to end of line
0        -   Move to beginning of line (including whitespace)
@Earnestly
Earnestly / fonts.adoc
Last active March 14, 2025 05:44
Better Defaults for Freetype

Better Defaults for Freetype

Table of Contents

Introduction

--- a/pixman/pixman-glyph.c 2014-04-24 06:34:14.000000000 +0200
+++ b/pixman/pixman-glyph.c 2015-08-07 22:34:08.457721370 +0200
@@ -32,4 +31,263 @@
#include <stdlib.h>
+static unsigned char actable[65536] = {
+0,0,1,2,2,3,4,4,5,5,6,7,7,8,9,9,10,11,11,12,13,13,13,14,15,15,16,17,17,18,19,19,20,21,21,22,23,23,24,24,25,26,27,28,28,29,29,30,31,31,32,33,33,34,34,35,36,37,37,38,39,39,40,41,41,42,43,43,44,45,45,46,47,47,48,49,49,50,51,52,52,53,53,55,55,56,57,57,58,58,59,60,61,62,62,63,64,64,65,66,66,67,68,69,70,70,71,72,72,73,74,74,75,76,76,77,78,79,79,80,81,82,83,84,84,85,86,87,88,88,89,90,91,91,91,92,93,94,95,95,96,97,98,99,100,100,101,102,103,104,105,106,107,107,107,108,109,110,111,112,113,114,115,116,116,117,118,119,120,121,122,123,124,124,125,126,127,128,129,129,130,131,132,134,135,135,136,137,138,140,141,141,142,143,144,146,146,147,148,150,150,151,152,154,155,155,157,158,160,160,161,163,164,164,166,168,168,169,171,173,173,175,176,176,178,180,182,182,184,186,186,189,191,191,193,196,196,199,201,201,204,207,207