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 / CoderCat Example.jpg
Last active November 8, 2020 11:13
A simple gimp plugin to easily create cartoon speech bubbles.
CoderCat Example.jpg
@blooalien
blooalien / README.md
Created September 7, 2012 18:29
Use 'kde-open' to load those pesky Windows .url files in your default web browser.

urlopen.py

A simple python script for KDE users which will use 'kde-open' to open those pesky Windows .url files in your default web browser.

License

Public Domain - This script is entirely too simple for me to care how it's used. Just enjoy it...

@blooalien
blooalien / dirwatcher
Last active January 3, 2019 14:20 — forked from kdart/dirwatcher
#!/usr/bin/python2.7
# -*- coding: utf-8 -*-
# vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab
"""
Watch for new downloads in ~/Downloads (or another directory) and take actions.
The actions are determined by the file extension (determining the mime type).
"""
from __future__ import absolute_import
from __future__ import print_function