Skip to content

Instantly share code, notes, and snippets.

View Pinjasaur's full-sized avatar

Paul Esch-Laurent Pinjasaur

View GitHub Profile
@Pinjasaur
Pinjasaur / keybase.md
Last active June 4, 2019 17:29
Keybase Proof

Keybase proof

I hereby claim:

  • I am pinjasaur on github.
  • I am pinjasaur (https://keybase.io/pinjasaur) on keybase.
  • I have a public key whose fingerprint is ED0C 83F1 ABC7 3745 FAB5 04D4 92B7 43AC 021F D2DB

To claim this, I am signing this object:

@Pinjasaur
Pinjasaur / readme.md
Last active March 5, 2019 01:49
Stylesheet for CK Shene's websites (CS3331, etc.)

Installation

This is a minimal stylesheet for CK Shene's website(s), primarily focusing on CS3331.

Using a browser plugin like Stylus, it's easy to apply the stylesheet:

  1. Copy + paste the link to the raw stylesheet into something like RawGit raw.githack.com (this is important as GitHub serves files with the wrong Content-Type to mitigate hotlinking) and copy the new URL to the file.
  2. Create a new style in Stylus or whatever style manager you're using:
@import url(URL_TO_STYLESHEET);
@Pinjasaur
Pinjasaur / slack-theme.txt
Last active February 9, 2022 06:22
Slack Theme
#1f1f1f,#595959,#787878,#ffffff,#595959,#ffffff,#2fd434,#d62f32,#595959,#ffffff
@Pinjasaur
Pinjasaur / massdropify-link.js
Last active September 17, 2019 04:11
Bookmarklet to copy a shareable URL of a (Mass)drop.com product page (appends "?mode=guest_open") to href so unregistered users can view the page. Firefox doesn't allow `execCommand` in non-user contexts i.e. from a bookmarklet so a `prompt` is gene
javascript:(function() {
var fromX, fromY;
var svg = document.createElementNS ('http://www.w3.org/2000/svg',"svg");
svg.setAttribute("style", "position: absolute; top:0;left:0;height: " + document.body.clientHeight + "px;width: 100%;z-index: 2147483647");
var line = document.createElementNS('http://www.w3.org/2000/svg','line');
line.setAttribute("style", "stroke-width: 4; stroke: red");
svg.appendChild(line);
document.body.appendChild(svg);
@Pinjasaur
Pinjasaur / .csscomb.json
Last active May 18, 2017 18:21
CSScomb config
{
"exclude": [
".git/**",
"node_modules/**",
"bower_components/**"
],
"always-semicolon": true,
"block-indent": 2,
"color-case": "lower",
"color-shorthand": true,
@Pinjasaur
Pinjasaur / .eslintrc.json
Created May 17, 2017 18:34
ESLint config (used with Prettier)
{
"rules": {
"one-var-declaration-per-line": ["error", "always"],
"indent": ["error", 2, {
"VariableDeclarator": {
"var": 2,
"let": 2,
"const": 3
}
}],
@Pinjasaur
Pinjasaur / config
Last active May 11, 2023 18:37
SSH setup/install
Host *
Port 22
IdentityFile ~/.ssh/id_ed25519
ServerAliveInterval 120
TCPKeepAlive no
# Keep this here, it's (potentially) important
# https://serverfault.com/a/869394
# XAuthLocation /opt/X11/bin/xauth
# Host with X11 forwarding
@Pinjasaur
Pinjasaur / make.md
Last active September 29, 2017 21:23
All about dem Makefiles.

Make

Automatic variables

  • $@ first name of target
  • $< first prereq
  • $? all prereqs newer than target (space delimitted)
  • $^ all prereqs (space delimitted)

Special targets

@Pinjasaur
Pinjasaur / git.md
Last active October 18, 2019 20:00
Gotta git gud, ya know?

Git

Change a remote

Base recipe:

  • git remote set-url <remote> <url>

HTTPS to SSH (GitHub):

  • git remote set-url <remote> git@github.com/<username>/<repository>.git