Skip to content

Instantly share code, notes, and snippets.

View anacondaf's full-sized avatar
🤩
Brilliant!!!

anacondaf anacondaf

🤩
Brilliant!!!
View GitHub Profile
@anacondaf
anacondaf / gist:ca9b909df0db856271a428267961e433
Created December 6, 2024 18:06 — forked from tayvano/gist:6e2d456a9897f55025e25035478a3a50
complete list of ffmpeg flags / commands
Originall From: Posted 2015-05-29 http://ubwg.net/b/full-list-of-ffmpeg-flags-and-options
This is the complete list that’s outputted by ffmpeg when running ffmpeg -h full.
usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}…
Getting help:
-h — print basic options
-h long — print more options
-h full — print all options (including all format and codec specific options, very long)
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"newline": true,
"segments": [
{
"background": "#feae34",
"foreground": "#262b44",
@anacondaf
anacondaf / EndpointExtensions.cs
Created April 20, 2024 06:41
Example of collecting API endpoints. Considering how to get type from assembly in line assembly.GetTypes()...
public static class EndpointExtensions
{
public static IServiceCollection AddEndpoints(this IServiceCollection services, Assembly assembly)
{
var types = assembly
.GetTypes()
.Where(
t =>
t is { IsInterface: false, IsAbstract: false } &&
typeof(IEndpoint).IsAssignableFrom(t)
@anacondaf
anacondaf / Uninstall python
Created November 2, 2021 17:37
Python notes
## To list all python versions in default locations
ls /usr/bin/python*
## To remove just python3 package
sudo apt-get remove python3.5
## plus it's dependent packages
sudo apt-get remove --auto-remove python3.5
## plus configuration and/or data files of python3
sudo apt-get purge python3.5
@anacondaf
anacondaf / bash.sh
Created September 1, 2021 10:10 — forked from bradtraversy/myscript.sh
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"
@anacondaf
anacondaf / docker-help.md
Created August 5, 2021 01:56 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@anacondaf
anacondaf / ssh.md
Created July 24, 2021 15:11 — forked from minhthong582000/ssh.md
SSH & DevOps Crash Course Snippets

SSH Cheat Sheet

Login via SSH with password (LOCAL SERVER)

$ ssh [email protected]

Create folder, file, install Apache (Just messing around)

$ mkdir test

$ cd test

@anacondaf
anacondaf / History|-2ff46403|ErW1.json
Last active November 18, 2022 07:52
Visual Studio Code Settings Sync Gist
{
"workbench.startupEditor": "newUntitledFile",
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"editor.fontSize": 16,
"workbench.iconTheme": "material-icon-theme",
"material-icon-theme.showWelcomeMessage": false,
"liveServer.settings.donotShowInfoMsg": true,
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"