Skip to content

Instantly share code, notes, and snippets.

View geekwolverine's full-sized avatar

Blaze geekwolverine

View GitHub Profile
@geekwolverine
geekwolverine / optimal-video-to-gif-imagemagick.md
Created August 31, 2025 03:53 — forked from CoolOppo/optimal-video-to-gif-imagemagick.md
Converting videos to GIFs optimally using ImageMagick

ImageMagick Video to GIF Optimization Summary

A software developer who uses IM to create Movie GIFs, Benoit Rouleau, in discussion with me, gave me a AVI video of a plane flying over, to help us mutually explore IM video conversion techniques.

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@geekwolverine
geekwolverine / getting-started.md
Created August 10, 2025 16:09 — forked from joepie91/getting-started.md
Getting started with Node.js

"How do I get started with Node?" is a commonly heard question in #Node.js. This gist is an attempt to compile some of the answers to that question. It's a perpetual work-in-progress.

And if this list didn't quite answer your questions, I'm available for tutoring and code review! A donation is also welcome :)

Setting expectations

Before you get started learning about JavaScript and Node.js, there's one very important article you need to read: Teach Yourself Programming in Ten Years.

Understand that it's going to take time to learn Node.js, just like it would take time to learn any other specialized topic - and that you're not going to learn effectively just by reading things, or following tutorials or courses. _Get out there and build things!

@geekwolverine
geekwolverine / node-and-express.md
Created August 10, 2025 16:08 — forked from anotheruiguy/node-and-express.md
Set up a new Node.js project with Express >4.0: a newb's guide

And my article is deprecated!

As of just writing this, Express 4.0 was released and there are points in there that no longer matter. So, this remains as a great >4.0 article.

Node.js is the red-hot new hotness! You can't throw a stick on the internet without hitting someone talking about Node. But why? For one, it's built on JavaScript which is completely ubiquitous. So, why not build a development stack and server on JavaScript? I would argue that the installation is almost painless while the terseness of the language is not.

While you can create apps 100% from Node.js, the Express framework is a great tool that helps you solve many standard problems without having to write boilerplate code.

Node.js is here and it's not going anywhere anytime soon. So if you are new to Node.js, Express, and even JavaScript in general, this is a great newb's step-by-step guide to get started.

--[[
Twitch.tv extension v0.0.2 by Stefan Sundin
https://gist.github.com/stefansundin/c200324149bb00001fef5a252a120fc2
The only thing that this extension does is to act as a helper to seek to the
correct time when you open a twitch.tv url that contains a timestamp.
You must have the playlist parser installed as well!
Usage:
1. Install the playlist parser: https://addons.videolan.org/p/1167220/
@geekwolverine
geekwolverine / README.md
Created July 20, 2025 19:54 — forked from Dimich-x33/README.md
Stream audio from pulseaudio over tcp to Android

Stream audio from pulseaudio over tcp to Android

HOWTO

  • Download and install Simple Protocol Player
  • Create the sh file with content listed above in this gist
  • List source devices via pactl list sources short pactl list | grep "Monitor Source" | awk '{print $3}', you will get something like that: alsa_output.pci-0000_00_1f.3.analog-stereo.monitor
  • chmod +x filename.sh
  • Run it: filename.sh start
  • Launch Simple Protocol Player, put the IP:PORT into corresponding input fields
@geekwolverine
geekwolverine / pulse_sreaming.md
Created July 20, 2025 18:37 — forked from savegame/pulse_sreaming.md
PulseAudio / PipeWire streaming audio from Client to remote PulseAudio / PipeWire Server

We have Server machine, this computer with Headphones, and we have Client computer, this is remote PC with music =) On Server we should first open port for listening connections from Client :

# on ubuntu 
sudo ufw allow from <Client_IP> to any port 4656 proto tcp
# on fedora ( with firewalld ) 
sudo firewall-ctl --add-port 4656/tcp

note: port 4656 just for sample. you can use any port you want
than on Server, from current user add listening for connections

Generating SSL certificates

req:

openssl req -x509 -subj /CN=root.yourdomain.com -days 3650 -noenc \
    -out root.crt -keyout root.key
  # -x509 - generate a certificate
  # -subj - subject
  # -days - validity period

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@geekwolverine
geekwolverine / convert_flv_to_mp4.md
Created February 4, 2025 12:21 — forked from abhishek77in/convert_flv_to_mp4.md
Convert video from MP4 format to FLV format.

Convert video from MP4 format to FLV format

$brew install ffmpeg
$ffmpeg -i input_file.mp4 -f flv output.flv
  • ffmpeg - runs the program
  • -i input_file.mp4 - input file
  • -f flv - force format followed by format
  • output.flv - output file