Skip to content

Instantly share code, notes, and snippets.

View Fooftilly's full-sized avatar
🤺

Nikola Perović Fooftilly

🤺
View GitHub Profile
@alexpchin
alexpchin / Setting_upa_new_repo.md
Last active May 3, 2025 05:28
Create a new repository on the command line

Setting up a new Git Repo

##Create a new repository on the command line

touch README.md
git init
git add README.md
git commit -m "first commit"

git remote add origin [email protected]:alexpchin/.git

@jatcwang
jatcwang / gist:ae3b7019f219b8cdc6798329108c9aee
Created February 2, 2017 23:44
List of all setxkbmap configuration options (including models/layout/etc)
! model
pc101 Generic 101-key PC
pc102 Generic 102-key (Intl) PC
pc104 Generic 104-key PC
pc105 Generic 105-key (Intl) PC
dell101 Dell 101-key PC
latitude Dell Latitude series laptop
dellm65 Dell Precision M65
everex Everex STEPnote
flexpro Keytronic FlexPro
@sieste
sieste / arch-brother-dcp-j4120dw-installation.md
Last active November 29, 2024 06:23
Minimal instructions to install Printer/Scanner combo "Brother DCP-J4120DW" under Arch Linux

General

  • Power up the printer, install cartridges
  • Settings -> Wi-Fi -> Setup-Wizard to connect printer to your network
  • Settings -> Wi-Fi -> TCP/IP, note IP address (mine is 192.168.1.8)
  • check if printer is reachable on the network: ping 192.168.1.8
  • create new user "lp" in group "lp": sudo useradd -s /bin/false -g lp lp

Install printer

  • install driver from AUR: yay brother-dcpj4120dw
// ==UserScript==
// @name Cookie Clicker auto buying script
// @version 0.1
// @description this scrip will calculate what the best building to buy is, and then buy it. it also buys your upgrades and clicks golden cookies.
// @author Triktron
// @match https://orteil.dashnet.org/cookieclicker/
// @grant none
// ==/UserScript==
function IsReady() {
@acrisci
acrisci / default-media-player.sh
Last active January 1, 2024 15:23
A helper script to set a default media player in Linux
#!/usr/bin/env bash
help_string=$(cat <<EOF
Usage: $0 [-h|-l] APPLICATION
Set a video player as the default.
Example:
# List candidate desktop files for media players.
@theprojectsomething
theprojectsomething / Firefox Pretty Tree Style Tab.md
Last active April 30, 2025 10:04
Tree Style Tab: Sliding sidebar / pinned + active tabs

Firefox pretty sliding sidebar / pinned / active tab theme for Tree Style Tab

Features

  • Auto-sliding draw for TST
  • Leaves 'pinned' and 'active' tabs visible in standard browser chrome
  • Leaves 'last-active' tabs visible for 3 minutes after becoming inactive
  • Where an active tab is pinned, leaves 'last-active' tab (x1) visible for 1hr

tree-style-tabs-theme

// This app initially started from Flavio Copes analytics example
// but diverged quite a bit to generate images as well as track views
// https://flaviocopes.com/count-visits-static-site/
const express = require('express')
const app = express()
// no db - so global var to keep track of count
let counter = 0
@Fooftilly
Fooftilly / wget.md
Last active August 18, 2020 18:36
wget whole site download

wget -c -e robots=off -r --no-check-certificate --convert-links --adjust-extension --page-requisite

@bitingsock
bitingsock / ytdl-preload.lua
Last active April 24, 2025 08:23
Precache the next entry in your playlist if it is a network source by downloading it to a temp file ahead of time. Change Line 20 to temp directory. It will delete the directory on exit.
----------------------
-- #example ytdl_preload.conf
-- # make sure lines do not have trailing whitespace
-- # ytdl_opt has no sanity check and should be formatted exactly how it would appear in yt-dlp CLI, they are split into a key/value pair on whitespace
-- # at least on Windows, do not escape '\' in temp, just us a single one for each divider
-- #temp=R:\ytdltest
-- #ytdl_opt1=-r 50k
-- #ytdl_opt2=-N 5
-- #ytdl_opt#=etc