Skip to content

Instantly share code, notes, and snippets.

View Ghasak's full-sized avatar
🎯
Focusing

Ghasak Ibrahim Ghasak

🎯
Focusing
View GitHub Profile
@Ghasak
Ghasak / ZSH-Template_How_To_Write_Elegent_Install_Script.md
Created August 8, 2022 16:43
[ZSH-Template] Z-shell template script written in z-shell #z-shell #zsh-shell #template
#!/usr/bin/env zsh
#
# This script is a clone/fork of the spaceship-prompt install script and it was
# changed in order to install the typewritten prompt instead.
#
# Original author: Denys Dovhan, denysdovhan.com
# From: https://github.com/spaceship-prompt/spaceship-prompt
@Ghasak
Ghasak / GNU_Stow.md
Last active August 8, 2022 16:35
[Stow] GNU Stow dotfiles farm #GNU_Stow #stow #dotfiles

GNU Stow

I use stow file to restor and ammend several dotfile of my daily workflow. I also used .stow_local_ignore file to ignore some files which I will not be using

To stow dotfiles

Assume your current directory is the main dir and the parent directory is the targeted directory. (check stow -h)

$stow . --verbose=2
@Ghasak
Ghasak / Lepton_Configuration.md
Created August 8, 2022 15:17
[Lepton Configuration] Configuration file for Lepton app #config #lepton #configuration_lepton
@Ghasak
Ghasak / README.md
Created April 20, 2022 16:57 — forked from kevin-lee/README.md
Shellscript to install fonts for macOS and Linux

How to Use

# Move the the folder where the fonts are available. This script supports only otf and ttf.
# Then simply run the script like
$ ./path/to/script/install-fonts.sh 

Or you can add an alias to the ~/.bashrc or ~/.zshrc

alias install-fonts='/path/to/script/install-fonts.sh' 
@Ghasak
Ghasak / iterm2-solarized.md
Created October 30, 2020 15:35 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@Ghasak
Ghasak / gitcom.md
Created October 29, 2020 09:07 — forked from jednano/gitcom.md
Common git commands in a day-to-day workflow

Git Cheat Sheet

Initial Setup

Create an empty git repo or reinitialize an existing one

git init
@Ghasak
Ghasak / Makefile
Created June 11, 2020 14:38 — forked from lumengxi/Makefile
Makefile for Python projects
.PHONY: clean-pyc clean-build docs clean
define BROWSER_PYSCRIPT
import os, webbrowser, sys
try:
from urllib import pathname2url
except:
from urllib.request import pathname2url
webbrowser.open("file://" + pathname2url(os.path.abspath(sys.argv[1])))
endef
@Ghasak
Ghasak / Vim Commands Cheat Sheet.md
Created December 25, 2019 08:43 — forked from CoolOppo/Vim Commands Cheat Sheet.md
Vim Commands Cheat Sheet

Source

Vim Commands Cheat Sheet


How to Exit

:q[uit]

@Ghasak
Ghasak / jupyter_shortcuts.md
Created December 25, 2019 08:41 — forked from kidpixo/jupyter_shortcuts.md
Keyboard shortcuts for ipython notebook 3.1.0 / jupyter

Disclaimer : I just copied those shortcuts from Jupyter Menú > Help > Keyboard Shortcuts, I didn't wrote them myself.

Check your current shortcuts in your Help, shortcuts coule have been modified by extensions or your past self.

Toc

Keyboard shortcuts

The IPython Notebook has two different keyboard input modes. Edit mode allows you to type code/text into a cell and is indicated by a green cell border. Command mode binds the keyboard to notebook level actions and is indicated by a grey cell border.

@Ghasak
Ghasak / iterm2.md
Created December 25, 2019 08:41 — forked from squarism/iterm2.md
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)