Skip to content

Instantly share code, notes, and snippets.

@Jlabarca
Jlabarca / chinese_code_translator.ps1
Last active November 30, 2024 18:47
Powershell chinese code translator
param(
[Parameter(Mandatory=$true)]
[string]$projectPath,
[Parameter(Mandatory=$false)]
[string]$backupFolder = "backup_$(Get-Date -Format 'yyyyMMdd_HHmmss')",
[Parameter(Mandatory=$false)]
[int]$batchSize = 10
)
Add-Type -AssemblyName System.Web
@Jlabarca
Jlabarca / swapCTRLWIN - mac.ahk
Created February 2, 2021 04:54
Swap ctrl and windows key while using Teamviewer from a windows pc controlling a mac
#IfWinActive ahk_class TV_CClientWindowClass
RCtrl::RWin
RWin::RCtrl
LCtrl::LWin
LWin::LCtrl
Shader "Unlit/BillboardDiffuse"
{
Properties{
_Color("Color (RGBA)",color) = (1,1,1,1)
_MainTex("Albedo (RGB)", 2D) = "white" {}
_ScaleX("Scale X", Range(0,100)) = 1
_ScaleY("Scale Y", Range(0,100)) = 1
}
SubShader{
@Jlabarca
Jlabarca / nginx.conf
Last active August 18, 2017 13:52 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048