Skip to content

Instantly share code, notes, and snippets.

@chriswayg
chriswayg / create-cloud-template.sh
Last active May 1, 2024 20:47
This script will download a cloud image of many Linux distros and create a Proxmox 6 KVM template from it.
#!/bin/bash
set -o errexit
clear
printf "\n*** This script will download a cloud image and create a Proxmox VM template from it. ***\n\n"
### HOW TO USE
### Pre-req:
### - run on a Proxmox 6 server
### - a dhcp server should be active on vmbr1
@millermedeiros
millermedeiros / osx_setup.md
Last active May 1, 2024 20:46
Mac OS X setup

Setup Mac OS X

I've done the same process every couple years since 2013 (Mountain Lion, Mavericks, High Sierra, Catalina) and I updated the Gist each time I've done it.

I kinda regret for not using something like Boxen (or anything similar) to automate the process, but TBH I only actually needed to these steps once every couple years...

@fanfare
fanfare / gist:96da458bc902292542b836a682a4586a
Created May 20, 2023 01:27
uBlock filters to hide Twitter's "Discover More" feature
twitter.com##div[data-testid="cellInnerDiv"]:has(h2):has-text(Discover more) ~ *
twitter.com##div[data-testid="cellInnerDiv"]:has(h2):has-text(Discover more)
@mfehrenbach
mfehrenbach / chrome-device-dimensions.md
Last active May 1, 2024 20:45
Modern device dimensions for Chrome DevTools.

Modern Device Dimensions for Chrome DevTools

These are modern โ€œEmulated Devicesโ€ (a.k.a. responsive dimensions) for Chrome DevToolsโ€™ Mobile Device Viewport Mode.

They are specifically Apple devices, subtracting for recent Safariย UI (asย in window.innerWidth/Height), andย cleverly sorted with some dark-arts unicode shenanigans. (This glitchy, unloved portion of the tools sorts lexicographically, because ofย course itย would.) Ergonomics!

before-after

Nest Hub Max? Come on. Iย dropped a bunch of devices that were older and/orย close toย these dimensions. Itย obviously doesnโ€™t cover everything (sorry Android/Chrome), but offers aย decent spread/increments for common 2023/2024ย viewports.

@werm
werm / dabblet.css
Created December 20, 2011 16:27
Web UI Kit in CSS
/* Web UI Kit in CSS */
body {
background: url('http://f.cl.ly/items/2y0S3r1h3B2h2c3K351y/Tile.png');
}
#container {
width: 300px;
position: relative;
margin: 0 auto;
}
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* States that the extension can be in.
*/
var StateEnum = {
@insung
insung / CrxMouse_Gesture.json
Created May 18, 2018 00:13
chrome crx mouse gesture setting
{
"cfgver": 2.3,
"others": {
"tuilink": false
},
"normal": {
"gesture": true,
"drag": true,
"scroll": false,
"autocancel": false,
@FerraBraiZ
FerraBraiZ / Desabilitar o CORS
Last active May 1, 2024 20:42
Desabilitar o CORS ( --disable-web-security ) no Linux e Windows no Google Chrome ou Chromium para fins de teste.
no Linux abra um terminal ( shell ):
google-chrome --disable-web-security --user-data-dir="/tmp/"
chromium-browser --disable-web-security --user-data-dir="/tmp/"
no Windows abra um terminal ( shell )
C:\Program Files (x86)\Google\Chrome\Application\chrome.exe --disable-web-security --user-data-dir="c:/tmp"
@beccasaurus
beccasaurus / . ๐Ÿ”ฅ๐Ÿ’‹ OkCupid "Who Likes You" Extension .md
Last active May 1, 2024 20:40
๐Ÿ”ฅ๐Ÿ’‹ OkCupid "Who Likes You" Extension

๐Ÿ’˜ OkCupid "Who Likes You" Extension


Yes, I did.

The Who Likes You page SUCKS to manage.

@netjoon
netjoon / Browser.pjson
Last active May 1, 2024 20:39
Browser
{"name":"mainLoop","projectname":"Browser","objectlist":[{"class":"ImageButton","resource-id":"softkey%253A%252Fcalltest","codegen":"","varname":"callTest_1","objecttable-uuid":"1633f19c-b6c2-4c3b-c1e0-40644a7155c4","action":"codegen","uititle":"ImageButton%250Asoftkey%253A%252Fcalltest","uinameinfo":"%253Csoftkey%253A%252Fcalltest%253E","actiontype":"script","calltestloop":"1","calltest":"startTest","loadfromsavedobject":true}],"objectindex":0}