Skip to content

Instantly share code, notes, and snippets.

View rknightuk's full-sized avatar

Robb Knight rknightuk

View GitHub Profile
@rknightuk
rknightuk / store.js
Created September 2, 2021 08:21 — forked from ccnokes/store.js
Example "store" for user data in an Electron app
const electron = require('electron');
const path = require('path');
const fs = require('fs');
class Store {
constructor(opts) {
// Renderer process has to get `app` module via `remote`, whereas the main process can get it directly
// app.getPath('userData') will return a string of the user's app data directory path.
const userDataPath = (electron.app || electron.remote.app).getPath('userData');
// We'll use the `configName` property to set the file name and path.join to bring it all together as a string
@rknightuk
rknightuk / mastondon.css
Last active December 26, 2018 12:21
mastodon.social user styles for Fluid
/**
Make toolbar go to the left below 650px
*/
@media screen and (max-width: 650px) {
.ui {
flex-direction: row!important;
}
.tabs-bar {
flex-direction: column!important;
{ "key": "cmd+r", "command": "workbench.action.gotoSymbol" }
@rknightuk
rknightuk / activetable.js
Created March 24, 2016 14:04 — forked from stevesouders/activetable.js
ActiveTable is a bookmarklet that makes any table sortable. It also allows you to remove columns, and it remembers the removed columns for next time. Use alt+click to UNhide all columns (and clear memory). To use it, create a bookmark called "ActiveTable" that has this URL: javascript:(function(){ var jselem=document.createElement('SCRIPT'); jse…
// ActiveTable - a bookmarklet to make tables sortable and editable
function init() {
var aHrows = getHrows();
var numHrows = aHrows.length;
var aHidden = getHiddenColumns();
ATpopup = document.createElement("div");
ATpopup.style.cssText = "position: absolute; visibility: hidden; padding: 0; font-family: Arial; background-color: rgba(255, 255, 255, 0.9); border-radius: .5em; text-align: center; box-shadow: .05em .05em .5em #00C;";
ATpopup.innerHTML = "<a href='sort' title='sort' onclick='sortColumn(); return false'><img border=0 src='http://stevesouders.com/images/sort_up_down.png' style='padding-top: 0.2em;'></a><br><a href='hide' style='color: #C00; font-family: monospace; font-size: 1.5em; text-decoration: none;' title='hide' onclick='hideColumn(); return false'>x</a>"; // TODO - use protocol-less URL for img
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
wget https://www.successphotography.com/traceimagefreepp.php?gpr=131196571000{1..9}&gpi= && \
wget https://www.successphotography.com/traceimagefreepp.php?gpr=13119657100{10..99}&gpi= && \
wget https://www.successphotography.com/traceimagefreepp.php?gpr=1311965710{100..342}&gpi=
#!/bin/sh
#
# This hook does two things:
#
# 1. update the "info" files that allow the list of references to be
# queries over dumb transports such as http
#
# 2. if this repository looks like it is a non-bare repository, and
# the checked-out branch is pushed to, then update the working copy.
# This makes "push" function somewhat similarly to darcs and bzr.
@rknightuk
rknightuk / bookmarklet.js
Last active May 15, 2024 17:26
Search Reddit bookmarklet
javascript:(function()%7Breddit%20%3D%20'http%3A%2F%2Fwww.reddit.com%2Fsearch%3Fq%3D'%3Burl%20%3D%20window.location%3Burl%20%3D%20url.hostname%20%2B%20url.pathname%3Bsearch%20%20%3D%20reddit%20%2B%20url%3Bwindow.location%20%3D%20search%7D)()
: "user1", "user2"
"include_users": [],
// Show the authors of Gists
"show_authors":
#!/bin/sh
#
# This hook does two things:
#
# 1. update the "info" files that allow the list of references to be
# queries over dumb transports such as http
#
# 2. if this repository looks like it is a non-bare repository, and
# the checked-out branch is pushed to, then update the working copy.
# This makes "push" function somewhat similarly to darcs and bzr.