Skip to content

Instantly share code, notes, and snippets.

@ivymyt
ivymyt / phabricator.user.css
Last active November 20, 2020 04:06
Phabricator userstyle
/* Match body text monospace font to code block monospace font */
.phabricator-remarkup tt.remarkup-monospaced {
font-family: "Menlo","Consolas","Monaco",monospace;
font-size: 0.85em;
}
/* Send TOC button to right (otherwise it disappears if your window size is between 920px and 1180px) */
.phui-document-view-pro .phui-document-toc {
left: inherit;
right: 32px;
@ivymyt
ivymyt / google-sites-readability.css
Last active March 16, 2019 01:40
User style for Google Sites
#sites-canvas-main-content {
font-family: Charter, serif;
font-size: 16px;
line-height: 1.5;
}
.sites-codeblock {
line-height: 1.4;
}

Deleting your Livejournal without agreeing to the new Terms of Service:

  1. Install this userstyle
  2. Go to LJ's account status page, select the journal you want to deactivate, and follow the instructions. If you want to delete all of your comments and/or posts in communities, remember to do this here too.
  3. After you're done, make sure to tell LJ why you're deleting!

I've only verified that this works with an account that's already logged in.

@ivymyt
ivymyt / minipng.md
Last active October 23, 2015 19:43
Compressing PNGs

Compressing PNGs

It's always a good idea to keep the original image.

Also, you'll need to recompress PNGs every time you resize them.

Tools you'll need:

@ivymyt
ivymyt / symlinkimages.sh
Last active October 20, 2015 01:46
Create `~ipad` symlinks for all `@ 2x` pngs and jpgs in the current folder
#!/bin/sh
inputimgs=`ls -1 | grep "@2x\.\(png\|jpg\)"`
for img in $inputimgs; do
newimg=`echo $img | sed s/@2x/~ipad/`
eval "ln -s $img $newimg"
done