Skip to content

Instantly share code, notes, and snippets.

View evanjs's full-sized avatar

Evan Stoll evanjs

View GitHub Profile
@ashelly
ashelly / getopt.c
Last active August 25, 2024 03:25
"Port of GNU getopt() to Win32 for anyone who's tired of dealing with getopt() calls in Unix-to-Windows ports." Ported by Pete Wilson. Recovered from the Internet Archive's snapshot of www.pwilson.net/sample.html.
/* Getopt for GNU.
NOTE: getopt is now part of the C library, so if you don't know what
"Keep this file name-space clean" means, talk to [email protected]
before changing it!
Copyright (C) 1987,88,89,90,91,92,93,94,95,96,98,99,2000,2001
Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@goodjob1114
goodjob1114 / howToModifyOvaFile.md
Last active January 27, 2024 10:49
how to modify .ova file on linux/Mac using terminal....export vm (OVF 1.0) from virtualbox, then modify some tag and hash value for import vm to ESXi

extract ova files from an archive

$ tar -xvf vmName.ova

modify ovf for some invalid tag

$ vi vmName.ovf
@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)
@t-mart
t-mart / forensic_files.json
Last active January 12, 2022 06:16
Forensic Files Episodes on Netflix
[
{
"netflix_collection_number": 1,
"netflix_episode_number": 1,
"title": "If I Were You",
"series_number": 285,
"season": 11,
"season_number": 28,
"air_date": "2007-01-24"
},
@adisbladis
adisbladis / envrc.bash
Created May 7, 2018 05:20
Better python dev experience with direnv + nix + pipenv
use nix
layout_nix_pipenv() {
if [[ ! -f Pipfile ]]; then
log_error 'No Pipfile found. Use `pipenv` to create a Pipfile first.'
exit 2
fi
# Use ram as virtualenv storage
@jtojnar
jtojnar / flashback-xmonad.nix
Last active July 14, 2019 18:47 — forked from chpatrick/flashback-xmonad.nix
Gnome Flashback with XMonad on NixOS
{
services.displayManager.extraSessionFilePackages =
let gnome-flashback-xmonad = {wmName, wmLabel, wmCommand}: pkgs.callPackage ({ stdenv, gnome3, bash, haskellPackages, glib, wrapGAppsHook }: stdenv.mkDerivation {
name = "gnome-flashback-${wmName}";
buildInputs = [ gnome3.gnome-flashback gnome3.gnome-panel bash haskellPackages.xmonad glib ];
nativeBuildInputs = [ wrapGAppsHook ];
unpackPhase = "true";
@diogotito
diogotito / package_managers_search.ps1
Last active February 1, 2024 13:56
Search winget, Scoop and Chocolatey simultaneously in Windows Terminal with `pkg <search terms>` in PowerShell
# Search winget, Scoop and Chocolatey simultaneously in Windows Terminal
function pkg([string] $name) {
function Build-SearchCmd([string] $cmd) {
"C:\Windows\system32\cmd.exe", "/C", (@("ECHO ^> $cmd", "$cmd", "PAUSE") -join ' & ')
}
wt split-pane --vertical --size 0.5 (Build-SearchCmd "winget search $name") `; `
split-pane --horizontal --size 0.66 (Build-SearchCmd "scoop search $name") `; `
split-pane --horizontal --size 0.5 (Build-SearchCmd "choco search $name") `; `
focus-pane --target 0