Skip to content

Instantly share code, notes, and snippets.

@andreas22
andreas22 / ubuntu_change_keyboard_layout.sh
Created December 27, 2016 20:54
Ubuntu 16: Change keyboard layout (English UK) on command line to English US
setxkbmap gb
@andreas22
andreas22 / php7.1.upgrade
Created February 1, 2017 17:46
Upgrade to php 7.1 in Ubuntu
accepted
There is no official PHP 7.1 in the Ubuntu 16.04 repos.
If you want PHP 7.1, there is a version available in ppa:ondrej/php
You can install it like this:
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
@andreas22
andreas22 / links.txt
Last active June 21, 2017 19:45
Useful links
@andreas22
andreas22 / convert.bat
Created November 29, 2018 21:14
Batch file for converting JVC MOD files to MP4
@echo off
set CopyFolder="converted"
set AcceptedExtension=".MOD"
if not exist %CopyFolder% mkdir "%CopyFolder%"
for /r %%i in (*) do (
if %AcceptedExtension% == "%%~xi" (
@andreas22
andreas22 / bash-script-template.sh
Last active December 21, 2020 06:19
Template that can be used for creating a bash script with named parameters and help instructions
#!/bin/bash
# Initialize argument values
follow=""
tail=""
version="1.0.0"
help() {
echo "(Version: ${version}) Usage: $0 [ARGUMENTS]"
echo