Skip to content

Instantly share code, notes, and snippets.

View tkvw's full-sized avatar

Dennie de Lange tkvw

View GitHub Profile
@tkvw
tkvw / package.json
Last active October 14, 2022 12:57
sveltekit package unpack
{
"name": "svelte-package-unpack",
"description": "the gist to run it with npx command",
"version": "0.1.0",
"type":"module",
"bin": "./unpack.js"
}
@tkvw
tkvw / dev-setup.md
Created November 11, 2021 10:29 — forked from AbhieSpeaks/dev-setup.md
Development environment setup: Installing WSL2, Hyper, ZSH, VSCode, OhMyZsh

Installing Windows Subsystem for Linux 2, Hyper, ZSH, Node.js and VSCode extensions

Preview

Requirements

Steps

@tkvw
tkvw / add_local_trusted_ca_for_valid_https.md
Last active September 10, 2020 20:10 — forked from mwidmann/add_local_trusted_ca_for_valid_https.md
Generating trusted SSL keys for development

Generating SSL keys for development

Installation

Thanks to minica it is very easy to create trusted SSL certificates that have a very long expiration date.

In order to get started you have to have the go tools installed and set up correctly in your environment or alternatively you can use docker.

Setup

@tkvw
tkvw / gist:1587b81ff19cdd50c57c4017484da727
Last active September 29, 2020 18:54
Xrdp installation Ubuntu 20 server
@see: https://linuxize.com/post/how-to-install-xrdp-on-ubuntu-20-04/
In short:
```
sudo apt update
sudo apt install --no-install-recommends ubuntu-desktop # or for xcfe sudo apt install --no-install-recommends xubuntu-desktop
sudo apt install xrdp
sudo adduser xrdp ssl-cert
sudo systemctl restart xrdp
@tkvw
tkvw / antlr.json
Last active January 31, 2022 12:22
Scoop apps
{
"version": "4.9.3",
"description": "Standalone binary inspection tool for android apps (APK).",
"homepage": "https://github.com/google/android-classyshark/",
"license": "Apache-2.0",
"url": "http://www.antlr.org/download/antlr-4.9.3-complete.jar#/antlr.jar",
"installer": {
"script": [
"Set-Content \"$dir\\antlrv4.bat\" (@(\"@java -Xmx500M -cp $dir/antlr.jar org.antlr.v4.Tool %*\") -join \"`r`n\") -Encoding ASCII",
"Set-Content \"$dir\\antlrgrun.bat\" (@(\"@java -Xmx500M -cp .;$dir/antlr.jar org.antlr.v4.gui.TestRig %*\") -join \"`r`n\") -Encoding ASCII"
@tkvw
tkvw / micronaut-starter.json
Last active September 8, 2020 23:03
Development environment
{
"version": "2.0.1",
"description": "Micronaut Launch- Generates Micronaut applications.",
"homepage": "https://github.com/micronaut-projects/micronaut-starter",
"license": "Apache-2.0",
"url": "https://github.com/micronaut-projects/micronaut-starter/releases/download/v2.0.1/mn-win-amd64-v2.0.1.zip",
"hash":"AAFBF8C0FFA997C06D16EAF27C33674EB807FC146F6989A99113D24F94987657",
"extract_dir": "mn-win-amd64-v2.0.1",
"bin": "bin\\mn.exe",
"env_set": {

Keybase proof

I hereby claim:

  • I am tkvw on github.
  • I am tkvw (https://keybase.io/tkvw) on keybase.
  • I have a public key ASD3yR6kJp94vgxUzrV6s7O_PaCQV5SJKx7rRPEGyFiyTQo

To claim this, I am signing this object:

@tkvw
tkvw / Install
Last active August 9, 2018 19:55
Install
# Install node version manager
# Install Docker (https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce)
sudo apt-get remove docker docker-engine docker.io
sudo apt-get update
sudo apt-get --assume-yes install \
apt-transport-https \
ca-certificates \
curl \
# Script commands
alias -- qq-update="rm ~/.bashrc_remote && exit 0"
# Basic OS aliases
alias ls="ls -la"
# Ubuntu Desktop aliases
alias -- qq-open-file="xdg-open"
@tkvw
tkvw / OnChangeDebounce.js
Last active October 11, 2017 13:26
React helper functions
import React from 'react';
import PropTypes from 'prop-types';
import debounce from 'lodash/debounce';
class OnChangeDebounce extends React.Component{
constructor(props){
super(props);
this.isValueSourceProps = this.props.hasOwnProperty(this.props.valueProperty);
this._createDebounceFunction(props);