Skip to content

Instantly share code, notes, and snippets.

View gusper's full-sized avatar

Gus Perez gusper

View GitHub Profile
@gusper
gusper / terminal.md
Last active October 26, 2021 15:58
Terminal related

$PROFILE

oh-my-posh --init --shell pwsh --config "C:\Users\gusp\OneDrive\Apps\OhMyPosh\gusper.omp.json" | Invoke-Expression
Import-Module -Name Terminal-Icons

OhMyPosh Theme

image

{

Keybase proof

I hereby claim:

  • I am gusper on github.
  • I am gusper (https://keybase.io/gusper) on keybase.
  • I have a public key ASD5QNOafOVzBfPMDuK3s9XFFxsz4gNaZkyyjsT5J-lWXAo

To claim this, I am signing this object:

@gusper
gusper / Migrate_Wix_To_Dev15.cmd
Last active November 14, 2016 23:13
Quick batch file to migrate WiX tools from a VS 2015 installation to a VS "15" preview installation.
@echo off
REM Make sure the path to the target Visual Studio installation is provided
IF [%1] == [] GOTO NoDev15PathSpecified
REM Copy extension binaries from Dev14 to Dev15 location
xcopy /e /y "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\WiX" %1\Common7\IDE\Extensions\Microsoft\WiX\
REM Copy MSBuild WiX files to Dev15 location
xcopy /e /y "C:\Program Files (x86)\MSBuild\Microsoft\WiX" %1\MSbuild\Microsoft\WiX\
@gusper
gusper / gist:381ba6ccbd4ca33bd803bd67d8d77b22
Created September 27, 2016 19:32
Outlook Custom Field for Received field
Example: 9/12 9:04, 9/8 14:04
Formula: Month([Received]) & "/" & Day([Received]) & " " & IIF(Hour([Received])>9,Hour([Received]),"0" & Hour([Received])) & ":" & IIF(Minute([Received])>9,Minute([Received]),"0" & Minute([Received]))
Example: 9/12 09:04, 9/8 14:04
Formula: Month([Received]) & "/" & Day([Received]) & " " & IIF(Hour([Received])>9,Hour([Received]),"0" & Hour([Received])) & ":" & IIF(Minute([Received])>9,Minute([Received]),"0" & Minute([Received]))
Example: 9/12 09:04a, 9/8 02:04p
Formula: Month([Received]) & "/" & Day([Received]) & " " & IIf(Hour([Received])>12,IIf(Hour([Received])-12>9,Hour([Received])-12,"0" & Hour([Received])-12),IIf(Hour([Received])>9,Hour([Received]),"0" & Hour([Received]))) & ":" & IIf(Minute([Received])>9,Minute([Received]),"0" & Minute([Received])) & IIf(Hour([Received])<=12,"a","p")
@gusper
gusper / settings.json
Last active September 23, 2015 03:32
VS Code settings
{
"editor.fontFamily": "BPMono",
"editor.fontSize": 15,
"editor.insertSpaces": true,
"editor.renderWhitespace": true,
"editor.tabSize": 2,
"files.trimTrailingWhitespace": true
}
@gusper
gusper / .bash_profile
Last active September 30, 2015 14:03
My bash profile
# Shell prompt
# ------------------------------------------------------------
export PS1="\[\033[38m\]\u\[\033[32m\] \w \[\033[31m\]\`ruby -e \"print (%x{git branch 2> /dev/null}.split(%r{\n}).grep(/^\*/).first || '').gsub(/^\* (.+)$/, '(\1) ')\"\`\[\033[37m\]\n>\[\033[00m\] "
# Aliases
# ------------------------------------------------------------
alias ls='ls -FGlAhp'
alias ll='ls -laghFG'
alias l='ls -laghFG'
@gusper
gusper / private.xml
Last active October 16, 2015 02:58
My Karabiner private.xml file
<?xml version="1.0"?>
<root>
<devicevendordef>
<vendorname>APPLE</vendorname>
<vendorid>0x05ac</vendorid>
</devicevendordef>
<devicevendordef>
<vendorname>MICROSOFT</vendorname>
<vendorid>0x045e</vendorid>
@gusper
gusper / macfontdiet.md
Last active September 8, 2015 23:33
Fixing overly bold fonts on OS X

Ever since Mac OS X Snow Leopard it's necessary to set the right value in the Terminal because Apple removed it from System Preferences:

  • Open Terminal (Applications > Utilities > Terminal)

  • Copy and paste the following at the terminal prompt and press Return:

    defaults -currentHost write -globalDomain AppleFontSmoothing -int 2

For the Terminal shy, this is what the command is doing: The defaults command manipulates the user defaults, also known as preferences. This particular use