Skip to content

Instantly share code, notes, and snippets.

View albisserAdrian's full-sized avatar
🤘

Adrian Albisser albisserAdrian

🤘
View GitHub Profile
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# reload config file (change file location to your the tmux.conf you want to use)
@albisserAdrian
albisserAdrian / node-typescript-esm.md
Created November 21, 2023 22:34 — forked from khalidx/node-typescript-esm.md
A Node + TypeScript + ts-node + ESM experience that works.

The experience of using Node.JS with TypeScript, ts-node, and ESM is horrible.

There are countless guides of how to integrate them, but none of them seem to work.

Here's what worked for me.

Just add the following files and run npm run dev. You'll be good to go!

package.json

Convert OBJ and FBX models to JSON using Three.JS

  1. Download and install Node.js

  2. Download three.js

  3. Open in a text editor the <your threejs root folder >/utils/converters/fbx2three.js file

  4. At the top of the file add the following line import * as THREE from "../../build/three.module.js";

  5. Save and close.

@albisserAdrian
albisserAdrian / react-app-to-S3.yml
Created July 17, 2020 03:17
Monorepo react-app to S3 GitHub action.
name: Client Build
on:
push:
branches:
- master
defaults:
run:
working-directory: <DIRECTORY_PATH>
@albisserAdrian
albisserAdrian / DeleteDetailElements.cs
Last active August 28, 2019 06:50
Revit API Delete Detail Elements
public void DeleteDetailElements()
{
Document doc = this.Application.ActiveUIDocument.Document;
FilteredElementCollector detailLines = new FilteredElementCollector(doc).WhereElementIsNotElementType().OfCategory(BuiltInCategory.OST_Lines);
IList<ElementId> detailLineIds = new List<ElementId>();
foreach(CurveElement dl in detailLines)
{
detailLineIds.Add(dl.Id);
}
@albisserAdrian
albisserAdrian / README.md
Created February 21, 2019 21:59 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@albisserAdrian
albisserAdrian / gist:49f6674a5e8c22ef250795110fee4e93
Created February 21, 2019 21:54 — forked from digitaljhelms/gist:4287848
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
@albisserAdrian
albisserAdrian / boxstarter-script.ps1
Last active June 21, 2020 10:10
My Boxstarter Script
. { iwr -useb https://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
$Boxstarter.RebootOk=$true
$Boxstarter.NoPassword=$false
$Boxstarter.AutoLogin=$true
Update-ExecutionPolicy Unrestricted
#--- TEMPORARY ---
Disable-UAC
@albisserAdrian
albisserAdrian / revit-addins-folder-location.md
Last active March 17, 2018 00:54
Revit Add-ins folder location

In a non-user-specific location in "application data":

  • C:\ProgramData\Autodesk\Revit\Addins\

In a user-specific location in "application data":

  • C:\Users\<user>\AppData\Roaming\Autodesk\Revit\Addins\

  • %appdata%\Autodesk\Revit\Addins\