Skip to content

Instantly share code, notes, and snippets.

View cowmix's full-sized avatar

M March cowmix

View GitHub Profile
@EitanGoldfrad
EitanGoldfrad / compile-ffmpeg.sh
Last active June 14, 2021 23:15
This bash script will compile a static Ffmpeg build with NVENC and VAAPI hardware-accelerated support on Ubuntu in your home directory. You can modify the script to customize the build options as you see fit.
#!/bin/bash
#This script will compile and install a static ffmpeg build with support for nvenc un ubuntu.
#See the prefix path and compile options if edits are needed to suit your needs.
#install required things from apt
installLibs(){
echo "Installing prerequisites"
sudo apt-get update
sudo apt-get -y --force-yes install autoconf automake build-essential libfreetype6-dev libgpac-dev \
@sergeyf
sergeyf / install-choco-script.bat
Last active July 13, 2020 23:31 — forked from zaccb/install-choco-script.bat
Chocolatey install script
:: Install choco .exe and add choco to PATH
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
:: for ease of updating
choco install ChocolateyGUI -fy
:: basics
choco install googlechrome -fy
choco install agentransack -fy
choco install vlc -fy
@2E0PGS
2E0PGS / linux-usb-file-copy-fix.md
Last active August 26, 2024 23:25
Fix Ubuntu and other Linux slow/hanging file copying via USB.

If your running a x64 bit Ubuntu or other Linux and find USB transfers hang at the end apply this fix:

echo $((16*1024*1024)) > /proc/sys/vm/dirty_background_bytes
echo $((48*1024*1024)) > /proc/sys/vm/dirty_bytes

I suggest you edit your /etc/rc.local file to make this change persistant across reboots.

sudo nano /etc/rc.local

@KristofferRisa
KristofferRisa / choco-install-apps.ps1
Last active May 4, 2024 00:39
Choco install scripts
# Install script for Kristoffer
# Created 06.08.2015
ECHO Installing apps
ECHO Configure chocolatey
choco feature enable -n allowGlobalConfirmation
#choco install visualstudiocode
choco install notepadplusplus