Skip to content

Instantly share code, notes, and snippets.

View foxtbirdy's full-sized avatar
🏠
#^)

Ahnaf T. Jaheen foxtbirdy

🏠
#^)
View GitHub Profile
@ankitsejwal
ankitsejwal / save-github-credentials.md
Last active October 22, 2024 17:58
How to save username and password in git

Save credentials:

$ git config credential.helper store
$ git pull

#provide user-name and password and those details will be remembered later. The credentials are stored in the disk, with the disk permissions.

if you want to change password later:

$ git config credential.helper store 
@liamcain
liamcain / obsidian-pagebreaks.css
Created November 8, 2020 01:04
Obsidian Pagebreaks
/**
Create pagebreaks in exported Obsidian PDFs.
Example:
# Heading 1
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
when an unknown printer took a galley of type and scrambled it to make a type
@eyllanesc
eyllanesc / main.py
Created August 4, 2021 17:32
PDF Viewer with QtWebEngine
import sys
from PyQt5 import QtCore, QtWidgets, QtWebEngineWidgets
def main():
print(
f"PyQt5 version: {QtCore.PYQT_VERSION_STR}, Qt version: {QtCore.QT_VERSION_STR}"
)
@ashalva
ashalva / zsh-iterm-custom-commands.markdown
Last active October 22, 2024 07:57
Add custom bash commands to ZSH

Add custom commands for iTerm + ZSH.

  1. Create new file and name .my_custom_commands.sh
  2. Add some functions e.g
function ios() {
  open -a "Xcode" ~/Documents/iOS/MyiOSProject.xcodeproj
}