Skip to content

Instantly share code, notes, and snippets.

View cabiamdos's full-sized avatar
🌴
On vacation

William cabiamdos

🌴
On vacation
View GitHub Profile
@lucasgruwez
lucasgruwez / tex.snippets
Last active April 13, 2024 05:43
Snippets I use with vim for super-productive latex editing
################################################################################
# Set math environment, to allow some snippets to run only when in inline or
# disp math. i.e. sr ==> disregard != di^2egard.
################################################################################
global !p
texMathZones = ['texMathZone'+x for x in ['A', 'AS', 'B', 'BS', 'C', 'CS', 'D', 'DS', 'E', 'ES', 'F', 'FS', 'G', 'GS', 'H', 'HS', 'I', 'IS', 'J', 'JS', 'K', 'KS', 'L', 'LS', 'DS', 'V', 'W', 'X', 'Y', 'Z']]
texIgnoreMathZones = ['texMathText']

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@doulmi
doulmi / download_all_branches.sh
Created June 23, 2017 14:16
Download All branches
#!/bin/bash
set -x #echo on
remote_url=$(git config --get remote.origin.url)
for branch in $(git branch --all | grep '^\s*remotes' | egrep --invert-match '(:?HEAD|master)$'); do
branch_name=$(echo $branch| cut -d'/' -f 3)
git clone -b $branch_name $remote_url $branch_name
done
@Mido22
Mido22 / download-vsix-link
Last active January 12, 2023 14:57
In Visual Studio Code: for adding a download link to download extension in .vsix format to install offiline