Skip to content

Instantly share code, notes, and snippets.

View guog's full-sized avatar
🍄
Focusing

guog guog

🍄
Focusing
View GitHub Profile
<!--
In the past, the DOCTYPE was needed to specify HTML versions.
As of HTML5, providing `html` is sufficient.
It is somewhere between a proper HTML tag, and an HTML comment.
-->
<!DOCTYPE html>
<!-- Add the appropriate language for your site -->
<html lang="en">
<head>
@guog
guog / zshrc
Created April 20, 2023 05:01 — forked from wppoland/zshrc
# Load aliases
source ~/.bash_aliases
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# For brew, at least
export PATH=/usr/local/bin:$PATH
# NVM Stuff
export NVM_DIR="$HOME/.nvm"
@echo off
echo Delete HKEY_CURRENT_USER\Software\PremiumSoft\NavicatPremium\Registration[version and language]
for /f %%i in ('"REG QUERY "HKEY_CURRENT_USER\Software\PremiumSoft\NavicatPremium" /s | findstr /L Registration"') do (
reg delete %%i /va /f
)
echo.
echo Delete Info folder under HKEY_CURRENT_USER\Software\Classes\CLSID
for /f %%i in ('"REG QUERY "HKEY_CURRENT_USER\Software\Classes\CLSID" /s | findstr /E Info"') do (
@guog
guog / parallels_trial_fix.sh
Created February 9, 2022 10:19 — forked from MakeStuffWithAI/parallels_trial_fix.sh
Parallels Trial FIX / Reset
### DISCLAIMER: This code will delete all personal files regarding
###. your Parallels 17 installation and should fix any of the common
###. trial period bugs once you reinstall.
###. I created this for personal use but found there were so many
###. with a similar bug that I decided to share it.
### If you are actively using Parallels for longer than the trial
### period or using it for commercial purposes, you MUST register
### it or it is considered software piracy.
sudo rm -rfd ~/library/preferences/com.parallels*
@guog
guog / get-npm-package-version
Created September 16, 2020 08:59 — forked from yvele/get-npm-package-version.sh
Extract version from package.json (NPM) using bash / shell
# Version key/value should be on his own line
PACKAGE_VERSION=$(cat package.json \
| grep version \
| head -1 \
| awk -F: '{ print $2 }' \
| sed 's/[",]//g' \
| tr -d '[[:space:]]')
echo $PACKAGE_VERSION