Skip to content

Instantly share code, notes, and snippets.

View cowmix's full-sized avatar

M March cowmix

View GitHub Profile
@KristofferRisa
KristofferRisa / choco-install-apps.ps1
Last active November 14, 2024 02:42
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
@2E0PGS
2E0PGS / linux-usb-file-copy-fix.md
Last active November 16, 2024 17:56
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

@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
@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 \