Skip to content

Instantly share code, notes, and snippets.

View blooalien's full-sized avatar
🎯
Focusing

Bloo Alien blooalien

🎯
Focusing
View GitHub Profile
@blooalien
blooalien / command.txt
Created February 28, 2023 06:17 — forked from nrk/command.txt
Using ffprobe to get info from a file in a nice JSON format
ffprobe -v quiet -print_format json -show_format -show_streams "lolwut.mp4" > "lolwut.mp4.json"
@blooalien
blooalien / docker_wordpress.md
Created May 13, 2022 10:02 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
@blooalien
blooalien / Private-pypi-howto
Created April 21, 2022 08:33 — forked from Jaza/Private-pypi-howto
Guide for how to create a (minimal) private PyPI repo, just using Apache with directory autoindex, and pip with an extra index URL.
*
@blooalien
blooalien / bash-colors.md
Created April 14, 2022 21:30 — forked from Prakasaka/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple

Create a new project

poetry new <project-name>

Add a new lib

potry add <library>

Remove a lib

@blooalien
blooalien / ANSI.md
Created March 17, 2022 16:44 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
#!/usr/bin/python3
'''A script that reads episode filenames from standard input, one per line,
and prints out the corresponding filenames in a standard format on standard
output, one per line. The tvnamer Python library is used to generate the
new filenames, and TheTVDB is used to access episode titles. So this does
basically the same thing as tvnamer, except that instead of actually
renaming files, it just transforms filenames.'''
import os.path, sys, json
@blooalien
blooalien / AndYetItMovesSteam.sh
Created May 9, 2018 20:59 — forked from janhaag/AndYetItMovesSteam.sh
Fixed AYIM startup script for linux steam
#!/bin/bash
### And Yet It Moves' Simple Startscript
### Run, jump and turn the world upside-down with And Yet It Moves!
### Enjoy!
### webs
rootdir="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
libdir="lib"
bin=lib/AndYetItMoves
@blooalien
blooalien / knotify.py
Created July 22, 2017 07:05 — forked from ducin/knotify.py
KNotify (KDE DBUS notifications); use it with: ./knotify.py "header" "content" (credited to http://www.documentroot.net/en/linux/knotify-python)
#!/usr/bin/python
import sys, dbus
knotify = dbus.SessionBus().get_object("org.kde.knotify", "/Notify")
try: title, text = sys.argv[1:3]
except: print 'Usage: knotify.py title text'; sys.exit(1)
knotify.event("warning", "kde", [], title, text, [], [], 0, 0, dbus_interface="org.kde.KNotify")
@blooalien
blooalien / keybase.md
Last active August 29, 2017 03:18
Bloo Alien (Me) at keybase.io

Keybase proof

I hereby claim:

  • I am blooalien on github.
  • I am blooalien (https://keybase.io/blooalien) on keybase.
  • I have a public key ASC9Y9Pc-7sp_5trwNKMzXJo0UQwaY1CX1ZvkHhqwlr6dwo

To claim this, I am signing this object: