Skip to content

Instantly share code, notes, and snippets.

View holehan's full-sized avatar

Florian Grässle holehan

View GitHub Profile
@holehan
holehan / scrollbar.js
Created January 12, 2022 10:48 — forked from parafeu/scrollbar.js
Scrollbar plugin tailwindcss
const plugin = require("tailwindcss/plugin");
module.exports = plugin(function ({ addUtilities, matchUtilities, theme }) {
const scrollbarTrackColorValue = (value) => ({
'--scrollbar-track': value,
'&::-webkit-scrollbar-track': {
"background-color": value
}
})
@holehan
holehan / fisher.fish
Created November 5, 2019 10:51
Change fisher installation path. Place it in $fish_config/conf.d/fisher.fish
set -g fisher_path $HOME/.config/fisher_install
set fish_function_path $fish_function_path[1] $fisher_path/functions $fish_function_path[2..-1]
set fish_complete_path $fish_complete_path[1] $fisher_path/completions $fish_complete_path[2..-1]
for file in $fisher_path/conf.d/*.fish
builtin source $file 2> /dev/null
end
@holehan
holehan / karabiner.json
Created October 17, 2019 19:26
Hyper key for mac with karabiner elements
{
"profiles": [
{
"complex_modifications": {
"rules": [
{
"manipulators": [
{
"description": "Change caps_lock to command+control+option+shift.",
"from": {
@holehan
holehan / update-hugo.sh
Last active January 8, 2024 12:26
Install and update hugo extdended on linux 64bit including man pages and bash completion
#!/bin/bash
# Change to temporary directory
pushd /tmp/
# Get latest hugo version
if test -f "$HOME/.local/bin/hugo"; then
_currentver=$(hugo version | grep -m 1 -Eo '[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}')
else
_currentver="Not installed"
function markArchivedAsRead() {
var threads = GmailApp.search('label:unread -label:{inbox, Unsnoozed}');
for (var i=0; i<threads.length; i++)
{
var messages = threads[i].getMessages();
var markUnread = 1;
for (var j=0; j<messages.length; j++)
{
if (messages[j].isInInbox())
markUnread = 0;
@holehan
holehan / chrome-devtools.md
Created December 10, 2018 16:59 — forked from vbsessa/chrome-devtools.md
How to customize Chrome devtools fonts
  1. Enable #enable-devtools-experiments flag in chrome://flags section.

  2. Open Chorme Devtools and check Settings > Experiments > Allow custom UI themes.

  3. Create the following four files in a dedicated folder.

    3.1. devtools.html

    <html>
    <head></head>
    <body><script src="devtools.js"></script></body>
@holehan
holehan / fritzbox-cert-update.sh
Created November 11, 2017 10:31 — forked from wikrie/fritzbox-cert-update.sh
Fritzbox Fritz!Box AVM SSL Letsencrypt automatically update
#!/bin/bash
# parameters
USERNAME="maybe empty"
PASSWORD="fritzbox-password"
CERTPATH="path to cert eg /etc/letsencrypt/live/domain.tld/"
CERTPASSWORD="cert password if needed"
HOST=http://fritz.box
# make and secure a temporary file

Keybase proof

I hereby claim:

  • I am holehan on github.
  • I am holehan (https://keybase.io/holehan) on keybase.
  • I have a public key ASB9omSWoaLbN26tq6Wnnjp2DIz9TXhf515CJx2kxj5KcQo

To claim this, I am signing this object: