Skip to content

Instantly share code, notes, and snippets.

@trmwzm
trmwzm / add_wsl_exclusions.ps1
Created November 12, 2022 05:02 — forked from ian-p-cooke/add_wsl_exclusions.ps1
powershell script to add WSL exclusions
$win_user = "ipc"
$linux_user = "ipc"
$package = "CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc"
$base_path = "C:\Users\" + $win_user + "\AppData\Local\Packages\" + $package + "\LocalState\rootfs"
$dirs = @("\bin", "\sbin", "\usr\bin", "\usr\sbin", "\home\" + $linux_user + "\.cargo\bin")
$dirs | ForEach { Add-MpPreference -ExclusionProcess ($base_path + $_ + "\*") }
Add-MpPreference -ExclusionPath $base_path
@trmwzm
trmwzm / doom_wsl2.md
Created November 11, 2022 20:20 — forked from GiulioCentorame/doom_wsl2.md
Doom Emacs on WSL2
@trmwzm
trmwzm / cmake install with configuration type
Created September 18, 2022 16:49 — forked from bjoernsauer/cmake install with configuration type
CMake install with Configuration Directory CMake. Shows how to use the install() command to install into a directory that includes the current configuration type as subfolder. For Example lib/MyLibrary/Release or lib/MyLibrary/Debug
project(cmake-install)
cmake_minimum_required(VERSION 3.12)
add_library(MyLibrary main.cpp)
target_include_directories(MyLibrary
PRIVATE
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/src>
PUBLIC
@trmwzm
trmwzm / webex-ubuntu.md
Created March 31, 2020 18:21 — forked from mshkrebtan/webex-ubuntu.md
Run Cisco Webex on 64-bit Ubuntu 16.04

Run Cisco Webex on 64-bit Ubuntu 16.04

With Audio and Screen Sharing Enabled

Enable support for 32-bit executables

Add the i386 architecture to the list of dpkg architectures :

sudo dpkg --add-architecture i386
build deps is to download the control file for the new version from a debian package, run:
mk-build-deps newPythonControlFile,
then install the generated package with something like sudo gdebi python3.7-build-deps_1.0_amd64.deb.
Right now, it's the right-most link under "versioned links" here tracker.debian.org/pkg/python3.7 and
named control-3.7.2-1 - though you might need to gently modify it (e.g. change the gcc version).
You could do mk-build-deps python3.5 instead, but it might not get all of them.
@trmwzm
trmwzm / CMakeLists.txt
Last active December 8, 2020 21:25
blt fetch
#------------------------------------------------------------------------------
# BLT Tutorial Example: Calc Pi.
#------------------------------------------------------------------------------
cmake_minimum_required(VERSION 3.17)
project( pi_playground )
#------------------------------------------------------------------------------
# Setup BLT
#------------------------------------------------------------------------------
@trmwzm
trmwzm / keybase.md
Created August 19, 2019 15:17
keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@trmwzm
trmwzm / spacemacs-cheshe.md
Last active March 3, 2018 20:04 — forked from robphoenix/spacemacs-cheshe.md
Spacemacs Cheat Sheet

Useful Spacemacs commands

  • SPC q q - quit
  • SPC w / - split window vertically
  • SPC w - - split window horizontally
  • SPC 1 - switch to window 1
  • SPC 2 - switch to window 2
  • SPC w c - delete current window
  • SPC TAB - switch to previous buffer
  • SPC b b - switch buffers
@trmwzm
trmwzm / spacemacs_hint.md
Created January 18, 2017 18:28 — forked from ivar/spacemacs global search and replace.md
spacemacs - global search and replace

There's a couple of ways, one way is

  • Get search results
    • Do SPC / and type in your search string
    • or SPC x S and search string - where x is your scope indicator (p for project, d for directory, etc..)
  • Once you have the occurences you want, hit C-c C-e inside the helm buffer to put all your match occurences and puts them into a special buffer called the edit buffer or something like that
  • in that buffer you can use any commands you'd normally use on a buffer
  • the C-c C-c to commit your changes.
@trmwzm
trmwzm / spacemacs-cheatsheet.md
Created January 18, 2017 18:22 — forked from qxcv/spacemacs-cheatsheet.md
Spacemacs cheatsheet

emacs --daemon to run in the background. emacsclient.emacs24 <filename/dirname> to open in terminal

M-m and SPC can be used interchangeably. I've used Ldr (for "leader") as a compromise.

  • Undo - C-/
  • Redo - C-?
  • Change case: 1. Camel Case : M-c 2. Upper Case : M-u
  1. Lower Case : M-l