Skip to content

Instantly share code, notes, and snippets.

View Bizzaro's full-sized avatar
🚀

Albert Fung Bizzaro

🚀
  • just a programmer @manulife-ca
  • turonno, the great white north
  • 15:30 (UTC -05:00)
View GitHub Profile
@mtilson
mtilson / README.md
Last active June 1, 2022 18:51
how to get external IP on different clouds [linux] [aws] [gcp]

Common methods for AWS EC2 and GCP GCE

# AWS
$ dig +short myip.opendns.com @resolver1.opendns.com
18.224.203.147
# GCP
@rexwhitten
rexwhitten / Install-Com.ps1
Created March 2, 2019 02:13
Powershell script to install a COM+ Application and or Component
<#
.EXAMPLE .\Install-Com.ps1 -applicationName "test.application" `
-applicationIdentity "someuser" `
-componentBinPath "C:\where\is\your\dll\some.dll"
This will install 1 COM+ component to an application
If you have 1 application with 3 components
- call this 3 times for each COM+ Component dll path
#>
@telegraphic
telegraphic / parse_nvidia_smi.py
Created September 23, 2016 00:37
Parse nvidia-smi from python
"""
Parse output of nvidia-smi into a python dictionary.
This is very basic!
"""
import subprocess
import pprint
sp = subprocess.Popen(['nvidia-smi', '-q'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
@laptrinhcomvn
laptrinhcomvn / Sublime Text 3 cheating.md
Last active November 17, 2023 06:53
Sublime Text 3 patching

Ref: https://gist.github.com/vertexclique/9839383

Important Note

Please use built-in Terminal.app (of Mac OS X) to type and rune the command, do not use another tool (like iTerm2).

Common step after enter run the patch command:

  • After run the commands, start new Sublime Text app, go to Main Menu > Help > Enter License. On the popup type in any text (example "a") and click Use Licence .
@grantland
grantland / README.md
Last active August 1, 2024 14:31
NextBus API
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active November 14, 2024 15:40
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k