Skip to content

Instantly share code, notes, and snippets.

View aluxian's full-sized avatar

Alexandru Rosianu aluxian

View GitHub Profile
@aluxian
aluxian / youtube-likes-dislikes-export.md
Last active December 22, 2024 12:09 — forked from bulletinmybeard/youtube-likes-dislikes-export.md
Export your YouTube liked and disliked videos (.csv)

Script

Create a bash script with the code below as export.sh, give it execution rights with chmod +x export.sh, and run it with your Google access token like so:

./export.sh ya29.a0Ad52N39hmTcEjI1QoL...

Token

@aluxian
aluxian / slack-files-downloader.sh
Last active August 9, 2024 09:51 — forked from greird/slack-files-downloader.sh
Download all files from a Slack workspace export folder (using unique file ID)
#!/bin/bash
#
# This script will browse a Slack export folder and download all files in a new /export folder
#
# HOW TO:
# 1. As a Workspace admin, download an export of your Slack history (https://www.slack.com/services/export)
# 2. Make sure you have jq installed (https://stedolan.github.io/jq/)
# 3. Place this file at the root of your Slack export folder, next to channels.json
# 4. Run `bash slack-files-downloader.sh` in your terminal
#
@aluxian
aluxian / disable_youtube_autoplay.js
Last active August 2, 2021 08:27 — forked from jeffmbellucci/disable_youtube_autoplay.js
Turn off/disable YouTube autoplay feature
// ==UserScript==
// @name Disable YouTube Autoplay
// @version 1.0
// @match *://www.youtube.com/*
// @run-at document-start
// @grant none
// ==/UserScript==
(function () {
"use strict";
@aluxian
aluxian / accounting.sql
Created April 14, 2020 07:04 — forked from 001101/accounting.sql
Basic double-entry bookkeeping system, for PostgreSQL.
CREATE TABLE accounts(
id serial PRIMARY KEY,
name VARCHAR(256) NOT NULL
);
CREATE TABLE entries(
id serial PRIMARY KEY,
description VARCHAR(1024) NOT NULL,
amount NUMERIC(20, 2) NOT NULL CHECK (amount > 0.0),
-- Every entry is a credit to one account...
@aluxian
aluxian / Install.txt
Created March 30, 2020 19:59 — forked from soderlind/Install.txt
macOS DoH! (DNS over HTTPS) using cloudflared
1) Install cloudflared using homebrew:
brew install cloudflare/cloudflare/cloudflared
2) Create /usr/local/etc/cloudflared/config.yaml, with the following content
proxy-dns: true
proxy-dns-upstream:
- https://1.1.1.1/dns-query
- https://1.0.0.1/dns-query
@aluxian
aluxian / git_fzf_key_bindings.fish
Last active October 28, 2024 20:52 — forked from junegunn/functions.sh
Key bindings for git+fzf ported to Fish shell https://junegunn.kr/2016/07/fzf-git/
function __git_fzf_is_in_git_repo
command -s -q git
and git rev-parse HEAD >/dev/null 2>&1
end
function __git_fzf_git_status
__git_fzf_is_in_git_repo; or return
git -c color.status=always status --short | \
fzf -m --ansi --preview 'git diff --color=always HEAD -- {-1} | head -500' | \
cut -c4- | \