Skip to content

Instantly share code, notes, and snippets.

View JonasAlfredsson's full-sized avatar
💭
youtu.be/ykuNZKOGPig

Jonas Alfredsson JonasAlfredsson

💭
youtu.be/ykuNZKOGPig
View GitHub Profile
@JonasAlfredsson
JonasAlfredsson / Install_WSL_on_Windows_Server.md
Last active April 15, 2019 23:05
Guide on how to install and uninstall Windows Subsystem for Linux on Windows 10 Server (i.e. without Microsoft Store).

Windows Subsystem for Linux on Windows 10 Server

Microsoft seems to prefer you installed WSL through their Windows Store, but the problem is that this Store does not exist on the server versions of Windows 10. This gist is therefore my notes on how to install it manually, using PowerShell.

[The official guide][1] is already quite short and informative, so this will basically just be a recap with some informative notes throughout.

Enable WSL

@JonasAlfredsson
JonasAlfredsson / Fix_Firefox.md
Last active August 16, 2019 20:56
Some modifications to make Firefox behave more consistent with the Widows version, while also tweaking some security settings.

Firefox Custom Fixes

Firefox on Linux does some things different compared to the Windows counterpart. I generally prefer the Windows way these settings are configred, and the following settings are therefore made to improve the overall experience on Linux.

Open the Configuration Menu

All of these settings are accessed by typing

about:config
@JonasAlfredsson
JonasAlfredsson / GitHub_Authentication_Token.md
Last active October 18, 2019 11:34
Guide on how to create an authentication token to be used with HTTPS instead of SSH when it is blocked by a proxy.

GitHub Authentication Token Behind Corporate Proxy

When your are behind a corporate proxy it might be difficult to use SSH to communicate with [github.com][3], since this type of traffic may be blocked. A way to get around this is to authenticate over HTTPS instead, and supplying a username and password.

However, if two factor authentication is enabled, as it should be, this method will fail since the current interface does not support this. The solution is to create an authentication token to use for this specific machine.

@JonasAlfredsson
JonasAlfredsson / docker_functions
Last active April 16, 2020 14:20
Useful Docker Functions
# Docker Functions
# A small collection of commands that can be quite useful when
# working with Docker.
# Stop all containers on the system.
stop_all_containers() {
docker stop $(docker ps -aq)
}
# Stop all containers on the system and remove them.