Skip to content

Instantly share code, notes, and snippets.

@tayvano
tayvano / gist:6e2d456a9897f55025e25035478a3a50
Created February 19, 2017 05:29
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)
@Mehmetyaz
Mehmetyaz / lib.rs
Created May 6, 2024 21:33
Rust learning
use std::cell::RefCell;
use serde::{Serialize, Deserialize};
use serde_json::{Value};
use std::collections::HashMap;
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Message {
id: u32,
path: String,
data: HashMap<String, Value>,
@devmahmud
devmahmud / generate-pem.md
Last active May 6, 2024 22:24
Generate pem file to login into remote server

We can use pem file to login into remote server from our local machines. Infact if you use AWS, the only way to SSH into the server is using pem file.

1. On your local Machine from where you require access, Home directory of the user is preferable

cd ~
ssh-keygen -t rsa -b 2048
Generating public/private rsa key pair.
Enter file in which to save the key (/home/user/.ssh/id_rsa):
@joakin
joakin / git-find-me-the-fucking-deleted-file.sh
Last active May 6, 2024 22:24
finding a deleted file in a git repository
# If you don't remember the exact path/name, search the log for deleted files
git log --diff-filter=D --summary | grep delete
# Find the file you want to get from the ouput, and use the path
# Find the commits that involved that path
git log --all -- some/path/to/deleted.file
# Bring the file back to life to the current repo (sha commit of parent of commit that deleted)
git checkout shaofthecommitthatdeletedthefile^ -- some/path/to/deleted.file
def create_template_pipeline() -> Pipeline:
""" Template declareed here with real inputs, but placeholder outputs and parameters """
return Pipeline(
[
node(
func=create_model_inputs,
inputs=[ # These inputs are never overriden
"feat_days_since_last_shutdown",
"feat_days_between_shutdown_last_maintenance",
"feat_fte_maintenance_hours_last_6m",
@kconner
kconner / macOS Internals.md
Last active May 6, 2024 22:20
macOS Internals

macOS Internals

Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.

Starting Points

How to use this gist

You've got two main options:

@Frost-Lord
Frost-Lord / ColdTurkeyBlockerPremium.md
Last active May 6, 2024 22:20
Cold Turkey Blocker Premium Activator

Step one: Close cold turkey app and the minitray icon of coldTurkey

Create a file called ColdTurkeyBlockerPremium.py then open CMD to this dir.

Run this code (The one above is formatted incorrectly): name it ColdTurkeyBlockerPremium.py

import json
import sqlite3
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 6, 2024 22:13
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@bmaupin
bmaupin / tiling-extensions-for-gnome.md
Last active May 6, 2024 22:13
Tiling extensions for Gnome

Goal: find a Linux alternative to FancyZones for Windows

Name Recommended Type Supports main colum Supports layouts Multiple windows in same tile Windows can span multiple zones Notes
gSnap 👍👍 Gnome extension yes yes yes yes Can be configured almost just like FancyZones; in the settings:
  • disable Show tabs
  • enable Hold CTRL to snap windows
gTile Gnome extension no?
Tiling Assistant 👍 Gnome extension yes yes yes yes Layout support is "experimental" and the UX is a bit unintuitive; after enabling layouts, you have to click the star icon beside a layout to mark it as a favourite before you can then hold Alt while dragging
@goffinet
goffinet / install_config-win2k19_no_gui-proxmox.md
Last active May 6, 2024 22:12 — forked from gryte/install_config-win2k16_core-proxmox.md
Install and Configure - Windows Server 2019 no GUI on ProxMox VM

Install and Configure - Windows Server 2016 Core on ProxMox VM

stage drivers locally

# display available drives
Get-PSDrive

# create local driver directory
mkdir c:\drivers