These steps require a non-root user and doas!
doas pacman -S powerpill
cd /tmp
git clone https://aur.archlinux.org/paru-bin.git
cd paru-bin
{ | |
// miscellaneous | |
"javascript.updateImportsOnFileMove.enabled": "always", | |
"typescript.updateImportsOnFileMove.enabled": "always", | |
"diffEditor.ignoreTrimWhitespace": false, | |
// window | |
"window.title": "🦙⚡🫡 – ${activeEditorShort}${separator}${rootName} – 🫡⚡🦙", | |
"window.clickThroughInactive": false, |
import subprocess | |
def remesh(blender_path: str, # Path to blender executable | |
model_path: str, # Path to input model | |
export_path: str, # Path to output model | |
faces: int, # Number of faces for remesh | |
merge: bool = False, # Merge duplicate vertices before exporting | |
preserve_uvs: bool = False | |
) -> None: | |
""" |
# extend Python's functionality to work with file paths | |
import pathlib | |
# give Python access to Blender's functionality | |
import bpy | |
def remove_libraries(): | |
"""remove the linked blend files""" | |
bpy.data.batch_remove(bpy.data.libraries) |
#--- NOT ADMIN | |
# . SCOOP | |
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser | |
Invoke-Expression (new-object net.webclient).downloadstring('https://get.scoop.sh') | |
scoop install git gcc cmake make ninja openssh python sudo gow xming | |
#--- ADMIN |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Runtime.InteropServices; | |
using Newtonsoft.Json; | |
using System.IO; | |
using System.Text.RegularExpressions; | |
using System.Text; | |
using System.Threading; |
// GLFW and OpenGL example with very verbose comments and links to documentation for learning | |
// By Soren Saket | |
// semi-colons ; are not requied in odin | |
// | |
// Every Odin script belongs to a package | |
// Define the package with the package [packageName] statement | |
// The main package name is reserved for the program entry point package | |
// You cannot have two different packages in the same directory |
Shader "Mobile VR Highlight" { | |
Properties { | |
_ColorOutline ("Outline", Color) = (1,1,1,1) | |
_ColorInterior ("Interior", Color) = (0.25,0.25,0.25,0.25) | |
_ColorInteriorFaded ("Interior Faded", Color) = (0.1,0.1,0.1,0.1) | |
_ColorInteriorOcc ("Interior Occluded", Color) = (0.15,0.15,0.15,0.15) | |
_ColorInteriorOccFaded ("Interior Occluded Faded", Color) = (0.05,0.05,0.05,0.05) | |
_PulseRateMod ("Pulse Rate Modifier", Float) = 4.0 | |
_OutlneWidth ("Outline Pixel Width", Float) = 1.0 | |
} |
This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.
Description | Syntax |
---|---|
Get the length of a string | ${#VARNAME} |
Get a single character | ${VARNAME[index]} |
$userPath = $env:USERPROFILE | |
$pathExclusions = New-Object System.Collections.ArrayList | |
$processExclusions = New-Object System.Collections.ArrayList | |
$pathExclusions.Add('C:\Windows\Microsoft.NET') > $null | |
$pathExclusions.Add('C:\Windows\assembly') > $null | |
$pathExclusions.Add($userPath + '\AppData\Local\Microsoft\VisualStudio') > $null | |
$pathExclusions.Add('C:\ProgramData\Microsoft\VisualStudio\Packages') > $null | |
$pathExclusions.Add('C:\Program Files (x86)\MSBuild') > $null | |
$pathExclusions.Add('C:\Program Files (x86)\Microsoft Visual Studio 14.0') > $null |