ffmpeg -ss 00:00:30 -i orginalfile -t 00:00:05 -vcodec copy -acodec copy newfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dolphin Gamecube/Wii emulator / Xbox One Controller profile | |
# Gamecube Controller | |
# Location -> C:\User\<your user>\Documents\Dolphin Emulator\Config\Profiles\GCPad\Xbox Controller (GCPad).ini | |
[Profile] | |
Device = XInput/0/Gamepad | |
Buttons/A = `Button A` | |
Buttons/B = `Button B` | |
Buttons/X = `Button X` | |
Buttons/Y = `Button Y` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Faster to copy files using ADB than than using MTP apparently | |
adb pull sdcard/DCIM/Camera %USERPROFILE%\Desktop\Camera |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# AUTHOR | |
# DANIEL E. GILLESPIE (2016) | |
# https://github.com/dantheman213 | |
# DESCRIPTION | |
# Export your app's table schemas and stored functions from a PostgreSQL | |
# database into individual *.sql files for easy management and source control. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Create game proxy server to forward traffic to your home network through VPN. | |
# Great for a cheap Linode, Digital Ocean, etc $5/mo server for modest traffic. | |
# Keep your home network and IP safe by setting up an isolated VPN to connect your public external proxy to your protected home network | |
# Keep costs down by using a server you already have at home instead of paying large sums every month just to host some games with your friends. | |
# Example diagram | |
# User / Game Client -> Internet -> Your cheap VPS proxy server -> OpenVPN -> Your home network -> Your home server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Net.NetworkInformation; | |
using System.Net.Sockets; | |
namespace GetPrimaryNetworkDeviceInfoExample | |
{ | |
public class Program | |
{ | |
public static void Main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Reset Docker to a clean vanilla state. Will destroy all containers, images, networks, volumes, and cache. | |
[ $(docker ps | wc -l) -ne 1 ] && echo "Stopping all containers..." && docker stop $(docker ps | sed -n '1d;p' | awk -F" " '{print $1}') | |
[ $(docker ps -a | wc -l) -ne 1 ] && echo "Deleting all containers..." && docker rm $(docker ps -a | sed -n '1d;p' | awk -F" " '{print $1}') | |
[ $(docker images | wc -l) -ne 1 ] && echo "Deleting all images..." && docker image rm $(docker images | sed -n '1d;p' | awk -F" " '{print $3}') | |
echo "Pruning networks, volumes, and cache..." && docker system prune -a -f --volumes | |
echo "Docker is back to Vanilla... COMPLETE!" |
To completely uninstall Docker:
Step 1
dpkg -l | grep -i docker To identify what installed package you have:
Step 2
sudo apt-get purge -y docker-engine docker docker.io docker-ce
NewerOlder