Skip to content

Instantly share code, notes, and snippets.

@ndraiman
ndraiman / ssh_into_wsl2.md
Last active April 29, 2024 20:36
SSH Into WSL2

Guide: How to SSH Into WSL2

Install WSL2 SSH server

  1. Open your wsl ubuntu terminal

  2. install open-ssh server

    sudo apt update 

sudo apt install openssh-server

@ndraiman
ndraiman / macos-disable-resize
Created June 30, 2020 09:29 — forked from olssonm/macos-disable-resize
Disable resizing of the macOS dock
defaults write com.apple.dock size-immutable -bool true; killall Dock
@ndraiman
ndraiman / npm-publish-dist-scripts.json
Created March 20, 2020 17:36 — forked from micimize/npm-publish-dist-scripts.json
Scripts to streamline/enforce the copy and publish subdir method (https://stackoverflow.com/a/39946795/2234013). idk if copying package.json is necessary
{
"prepublishOnly": "if [[ ! $PWD =~ dist$ ]]; then npm run _dist:nopublish; fi",
"_dist:nopublish": "echo 'Use `npm run dist` instead of `npm publish`!' && exit 1",
"_dist:prep": "yarn build && cp package.json dist && cp README.md dist",
"_dist:post": "rm -f dist/package.json && rm -f dist/README.md",
"dist": "npm run _dist:prep && npm publish dist && npm run _dist:post"
}
@ndraiman
ndraiman / MonacoEditor + AngularCli.md
Last active November 22, 2018 11:27
MonacoEditor + AngularCli

Example on how to integrate MonacoEditor with AngularCLI project.

npm i -S monaco-editor

@ndraiman
ndraiman / reclaimWindows10.ps1
Last active May 12, 2018 08:49 — forked from alirobe/reclaimWindows10.ps1
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults)
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <disassembler@dasm.cz>
# Modified by: alirobe <alirobe@alirobe.com> based on my personal preferences.
# Version: 2.12.1, 2018-03-15
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/
# Tweak difference:
#
# @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ...