Skip to content

Instantly share code, notes, and snippets.

View shikhar-saxena's full-sized avatar

Shikhar Saxena shikhar-saxena

View GitHub Profile
@Prakasaka
Prakasaka / bash-colors.md
Created July 25, 2020 09:14 — forked from JBlond/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@ekzhang
ekzhang / ekzhang.sty
Last active February 26, 2023 05:27
LaTeX template and useful macros
\ProvidesPackage{ekzhang}
\usepackage{amsmath,amsfonts,amssymb,amsthm}
\usepackage{asymptote}
\usepackage{cancel}
\usepackage{color}
\usepackage[dvipsnames]{xcolor}
\usepackage{enumerate}
\usepackage[margin=1in]{geometry}
\usepackage{graphicx}
@coltenkrauter
coltenkrauter / fix-wsl2-dns-resolution
Last active April 26, 2024 06:32
Fix DNS resolution in WSL2
More recent resolution:
1. cd ~/../../etc (go to etc folder in WSL).
2. echo "[network]" | sudo tee wsl.conf (Create wsl.conf file and add the first line).
3. echo "generateResolvConf = false" | sudo tee -a wsl.conf (Append wsl.conf the next line).
4. wsl --terminate Debian (Terminate WSL in Windows cmd, in case is Ubuntu not Debian).
5. cd ~/../../etc (go to etc folder in WSL).
6. sudo rm -Rf resolv.conf (Delete the resolv.conf file).
7. In windows cmd, ps or terminal with the vpn connected do: Get-NetIPInterface or ipconfig /all for get the dns primary and
secondary.
@alchem0x2A
alchem0x2A / mathfont.org
Last active May 26, 2023 13:51
Useful math fonts in LaTeX

Math fonts that worth noting

Solutions taken from ftp://tug.ctan.org/pub/tex-archive/info/Free_Math_Font_Survey/survey.html in TUG.

Times-resemble math font

Use either txfonts or mathptmx for Times font support. I personally prefer txfonts since its mathcal symbols look more natural to me.

To use: include \usepackage{txfonts} or \usepackage{mathptmx} in

@thammuio
thammuio / git-commit-m.md
Last active June 11, 2022 14:55
My commit messages.

List of conventional Commit Types and their usage

Commit Type Title Description Emoji
feat Features A new feature
fix Bug Fixes A bug Fix 🐛
docs Documentation Documentation only changes 📚
style Styles Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc) 💎

|

@ziebelje
ziebelje / sublime_text.md
Last active November 28, 2023 18:56
Sublime Text
@dufferzafar
dufferzafar / Selections-Sublime.md
Created November 27, 2013 09:50
Selections and Multiple Cursors in Sublime Text 3

Selections and Multiple Cursors in Sublime Text 3

A handy list of selection shortcuts.

Here are the official docs: Keyboard and Mouse

Mouse

Building blocks:

  • Add to selection: Ctrl
  • Subtract from selection: Alt