Skip to content

Instantly share code, notes, and snippets.

View harmancode's full-sized avatar
🐜
Mostly on GitLab

E. Harman harmancode

🐜
Mostly on GitLab
View GitHub Profile
@harmancode
harmancode / how-to-install-cocoapods-on-macos.md
Created November 12, 2022 02:17
How to install CocoaPods on a new macOS
@harmancode
harmancode / gist:35060e5c26c420a06342cc0e0f637472
Created October 19, 2022 19:24
How to Install and Use Silver Searcher on Linux
How to Install and Use Silver Searcher on Linux
On Debian and Ubuntu, use the following command:
sudo apt install silversearcher-ag
search term:
ag searchterm
search phrase:
ag \"this is a phrase\"
@harmancode
harmancode / gist:de93cf246be070dff4b8180a37af8df0
Last active October 13, 2022 19:19
How to use lnav with docker-compose logs
# Assuming you're using oh-my-zsh and zsh
# Go to your custom plugin directory
cd ~/.oh-my-zsh/custom/plugins
# Get the plugin
git clone https://github.com/rsteube/dclnav.git
vim ~/.zshrc
# Add dclnav into plugins array, save the file
# Restart shell
source ~/.zshrc
# You're ready to use dclnav
@harmancode
harmancode / nvmCommands.js
Created October 3, 2022 15:23 — forked from chranderson/nvmCommands.js
Useful NVM commands
// check version
node -v || node --version
// list installed versions of node (via nvm)
nvm ls
// install specific version of node
nvm install 6.9.2
// set default version of node
@harmancode
harmancode / gist:9ca25e90900bb71f7c023dac12035287
Created September 10, 2022 19:28
How to verify Notepad++ digital signature
Installer executable has a signature checked by Windows when it runs.
In addition to that verification, I'll explain here how to verify its
digital signature as an example of how to do gpg signature verifications.
Disclaimer: This gist is a published note for my future self.
Use it at your own risk.
1. Go to https://github.com/notepad-plus-plus/notepad-plus-plus
and note the key fingerprint:
@harmancode
harmancode / gist:d0de94cfede08b2d92c4a6ee107dd5c9
Last active June 1, 2022 22:21
How to install and use pyenv and pyenv virtualenv
How to install and use pyenv and pyenv virtualenv
by @harmancode | https://github.com/harmancode | https://harman.page
This work is licensed under a Creative Commons Attribution 4.0 International License.
pyenv
https://github.com/pyenv/pyenv
1. Install:
$ brew update
@harmancode
harmancode / gist:d385c6c69a786637299ba1e994977ff1
Created December 11, 2021 00:03
How to get Caesar III to run in windowed mode on Win 10
I've found a working solution to the problem if setting 16-bit colors isn't working out (like it wasn't for me). It is using DXWnd which is a software that wraps around other applications running them in a window. So start off with downloading that and potentially the 1920x1080 resolution exe file if you want to play in a higher resolution.
Download DXWnd: https://sourceforge.net/projects/dxwnd/
Download C3 1920x1080.exe: http://dl.dropbox.com/s/9rujui8kqlm4cql/c3%20-%201920x1080.exe
The later isn't 100% needed but I like to run it in that resolution.
Step 1a) Copy the c3 - 1920x1080.exe file to your Caesar 3 installation folder. It should be the same folder as the c3.exe file is located in.
@harmancode
harmancode / Sync gh-pages + master branches
Last active May 17, 2021 03:03 — forked from mandiwise/Sync gh-pages + master branches
Keep gh-pages up to date with a master branch
// Reference: http://lea.verou.me/2011/10/easily-keep-gh-pages-in-sync-with-master/
// I have changed "master" with main, and used "switch" instead of "checkout". - @harmancode
$ git add .
$ git status // to see what changes are going to be commited
$ git commit -m 'Some descriptive commit message'
$ git push origin main
$ git switch gh-pages // go to the gh-pages branch
@harmancode
harmancode / gist:f1a5755aa76dc2fb2d461822ed29c5a9
Created February 13, 2021 00:20
How to solve black screen issue after logging in to KDE Plasma on Virtualbox
Give following commands:
pkcon refresh
pkcon update
@harmancode
harmancode / gist:21ca44edf4b4111ded34a88472a9e940
Created February 8, 2021 01:45
How to verify and install GPG4Win
## How to verify and install GPG4Win
by Ertugrul Harman
26 December 2020
1. Download GPG4win from https://www.gpg4win.org
2. Verify its integrity by verifying its SHA checksums: