Skip to content

Instantly share code, notes, and snippets.

View dnordstrom's full-sized avatar

Daniel Nordstrom dnordstrom

View GitHub Profile
@atnbueno
atnbueno / shortcut-preview.user.js
Last active June 1, 2023 18:49
Greasemonkey: Add "Preview" button to iOS shortcut's iCloud links, linking to showcuts.app, and fixes the icon CSP bug
// ==UserScript==
// @name iOS Shortcut Preview
// @namespace https://www.atnbueno.com/
// @match https://showcuts.app/share/view
// @match https://www.icloud.com/shortcuts/*
// @version 2.0
// @grant GM_addStyle
// ==/UserScript==
/*
@Vermaak5
Vermaak5 / kill
Created September 27, 2019 09:19
killwindow
#!/bin/bash
# add to sway config:
# bindsym Mod1+q exec ~/kill.sh
# this script kills the window UNLESS the name matches. If the name matches the SIGTERM signal is send to the target process
# in case of wayland, the attribute 'app_id' is used while X11 windows use 'class'
current_window=$(swaymsg -t get_tree | grep -A 45 '"focused": true' | egrep 'app_id|class' | cut -d \" -f 4 | grep .)
@iiiGerardoiii
iiiGerardoiii / userChrome.css
Last active August 29, 2020 06:59
Firefox chrome folder
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/autohide_bookmarks_toolbar.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
#PersonalToolbar{
--uc-bm-height: 21px; /* Might need to adjust if the toolbar has other buttons */
--uc-bm-padding: 4px; /* Vertical padding to be applied to bookmarks */
--uc-autohide-toolbar-delay: 600ms; /* The toolbar is hidden after 0.6s */
/* 0deg = "show" ; 90deg = "hide" ; Set the following to control when bookmarks are shown */
--uc-autohide-toolbar-focus-rotation: 0deg; /* urlbar is focused */
@nerdius
nerdius / vimium-arc-dark.css
Last active September 28, 2023 20:19
Arc Dark theme for styling Vimium link hints
/*
Arc Dark theme for styling Vimium link hints
By Giorgi Gzirishvili (@giogziro95). This code is in the public domain.
To use:
1. Copy the code.
2. Go to the Vimium options.
3. Click Show Advanced Options.
@AlcaDesign
AlcaDesign / index.js
Created January 8, 2017 10:04
A command bot example
const tmi = require('tmi.js'),
request = require('request'),
countdown = require('countdown'),
kraken = request.defaults({
baseUrl: 'https://api.twitch.tv/kraken/',
json: true,
headers: {
'Client-ID': '',
Accept: 'application/vnd.twitchtv.v3+json'
@facundovictor
facundovictor / .eslintrc.yaml
Last active April 30, 2019 19:39
Vim configuration file with Vim-Plug, powerline, Syntastic, Nerdtree, and some other nice configs.
---
parser: babel-eslint
parserOptions:
ecmaVersion: 6
sourceType: "module"
ecmaFeatures:
jsx: true
plugins:
- react
env:
@noromanba
noromanba / twitch-irc-with-weechat.mkd
Last active January 24, 2024 01:17
How to join Twitch IRC w/ WeeChat
# Get all the provisioned packages
$Packages = (get-item 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Appx\AppxAllUserStore\Applications') | Get-ChildItem
# Filter the list if provided a filter
$PackageFilter = $args[0]
if ([string]::IsNullOrEmpty($PackageFilter))
{
echo "No filter specified, attempting to re-register all provisioned apps."
}
else
@AlcaDesign
AlcaDesign / index.html
Last active November 16, 2023 17:14
[OUTDATED] An almost complete tmi.js example (browser)
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Chat</title>
<link href='http://fonts.googleapis.com/css?family=Roboto:400,700,300' rel='stylesheet' type='text/css'>
<link href="style.css" rel="stylesheet" type="text/css">
<script src="https://d2g2wobxbkulb1.cloudfront.net/0.0.19/tmi.js"></script> <!--For developement-->
<!--<script src="https://d2g2wobxbkulb1.cloudfront.net/0.0.19/tmi.min.js"></script>--> <!--For "production"-->
</head>
@morganrallen
morganrallen / _README.md
Last active January 15, 2023 19:41
Janky Browser

JankyBrowser

The only cross-platform browser that fits in a Gist!

One line install. Works on Linux, MacOSX and Windows.

Local Install

$&gt; npm install http://gist.github.com/morganrallen/f07f59802884bcdcad4a/download