Skip to content

Instantly share code, notes, and snippets.

View t3chn0m4g3's full-sized avatar

Marco Ochse t3chn0m4g3

View GitHub Profile
@mattsizzle
mattsizzle / powerline_configuration.md
Last active February 2, 2023 11:49
Powerline Configuration (Debian 11 optionally with GIT support)

Powerline Configuration (Debian/Ubuntu/PopOS optionally with GIT support)

Powerline

Powerline is a statusline plugin for vim, and provides status lines and prompts for several other applications, including zsh, bash, fish, tmux, IPython, Awesome, i3, and Qtile.

In other words, it is a very powerful and very cool piece of software, and I use it in some capacity on all my servers. It can be installed a few ways with binaries available in most distro's main repositories and many derivatives available. I prefer the Python userspace installation method outlined below as it lends itself to portability and works better with my virtualization practices.

Notes

@aymericbeaumet
aymericbeaumet / delete-likes-from-twitter.md
Last active July 20, 2024 14:26
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }
{
"$schema": "https://vega.github.io/schema/vega/v3.0.json",
"data": [
{
"name": "data",
"values": {
"aggregations": {
"pairs": {
"buckets": [
{"key": "aa:cc", "doc_count": 10},
@taoyuan
taoyuan / npm-using-https-for-git.sh
Last active July 18, 2024 05:36
Force git to use https:// instead of git://
# npm using https for git
git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://".insteadOf git://
# npm using git for https
git config --global url."git@github.com:".insteadOf https://github.com/
git config --global url."git://".insteadOf https://
@jdiaz5513
jdiaz5513 / ascii_arty.py
Last active December 30, 2023 02:32
Console ASCII Art Generator
#! /usr/bin/env python2
# Requires: PIL, colormath
#
# Improved algorithm now automatically crops the image and uses much
# better color matching
from PIL import Image, ImageChops
from colormath.color_conversions import convert_color
from colormath.color_objects import LabColor
from colormath.color_objects import sRGBColor as RGBColor