Skip to content

Instantly share code, notes, and snippets.

View lolmaus's full-sized avatar
🐹
Reducing entropy

Andrey Mikhaylov (lolmaus) lolmaus

🐹
Reducing entropy
View GitHub Profile
@dfrankland
dfrankland / steps-to-use-pritunl-on-a-server.md
Last active April 5, 2023 14:11
Steps to use Pritunl on a server or headless environment
@primaryobjects
primaryobjects / tplink-archer-t4u.md
Last active June 18, 2024 04:45
Steps to Install the TP-Link Archer T4U Plus AC1300 USB WiFi Adapter on Linux Mint
@d4v3y0rk
d4v3y0rk / howto.md
Created March 14, 2020 13:04
Encryption with DM_CRYPT in WSL2

Encrypted Volumes in WSL2

Description

This is a quick guide on how to setup dm_crypt under WSL2 for working with encrypted volumes. I use an encrypted volume to store things like password recovery codes and 2nd factor backup codes etc. I recently switched over to using WSL2 and wanted to figure out how to enable this functionality there. This is the distilled howto for getting it to work.

Guide

First thing you have to do is create a custom WSL2 kernel. Inside your already installed and running WSL2 (ubuntu) installation:

  • Install some required packages.
@artursmirnov
artursmirnov / .projections.json
Created August 7, 2019 14:31
Projections for Ember application (classic layout)
{
"app/models/*.js": {
"type": "model",
"alternate": "app/adapters/{}.js"
},
"app/adapters/*.js": {
"type": "adapter",
"alternate": "app/serializers/{}.js"
},
"app/serializers/*.js": {
@rijulg
rijulg / gamma.html
Created January 4, 2019 11:13
An implementation of Gamma filter in HTML5 Canvas
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HTML5 Canvas Gamma Adjust</title>
<meta name="og:title" content="HTML5 Canvas Gamma Adjust"/>
<meta name="author" content="Rijul Gupta">
<meta name="description" content="An implementation of Gamma filter in HTML5 Canvas"/>
</head>
@dweldon
dweldon / install-docker.sh
Last active April 8, 2022 11:18
Install docker CE on Linux Mint 18.3
#!/usr/bin/env bash
# https://docs.docker.com/install/linux/docker-ce/ubuntu/
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"
sudo apt-get update
sudo apt-get install docker-ce
# https://docs.docker.com/compose/install/
@justinribeiro
justinribeiro / instruct.md
Last active December 20, 2021 08:42
ssh-agent-windows
  1. Open git-bash on Windows.
  2. Make sure you have a .profile: touch .profile
  3. Open .profile and add:
env=~/.ssh/agent.env

agent_load_env () { test -f "$env" && . "$env" >| /dev/null ; }

agent_start () {
@BrianSipple
BrianSipple / ember-addon-essentials.md
Last active April 17, 2017 18:27
Ember Addon Essentials -- A checklist of some of the finer details to keep in mind when developing Ember addons

Ember Addon Essentials

This document is meant to be a brief "checklist" of things to setup for your Ember addon when beginning development in order to have the best possible architecture and workflow out of the gate. For more comprehensive material, the following are bookshelf-caliber:

Filling out package.json

@KOBA789
KOBA789 / css_ident.js
Created March 18, 2015 00:41
CSS IDENT REGEXP
var CSS_IDENT = /-?(?:[_a-z]|[\240-\377]|(?:(:?\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?)|\\[^\r\n\f0-9a-f]))(?:[_a-z0-9-]|[\240-\377]|(?:(:?\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?)|\\[^\r\n\f0-9a-f]))*/;
@caridy
caridy / export-syntax.js
Last active January 15, 2022 14:22
ES6 Module Syntax Table
// default exports
export default 42;
export default {};
export default [];
export default foo;
export default function () {}
export default class {}
export default function foo () {}
export default class foo {}