Skip to content

Instantly share code, notes, and snippets.

View miclgael's full-sized avatar
🐱
Looking at pictures of my cats

Michael Gale (he/him) miclgael

🐱
Looking at pictures of my cats
View GitHub Profile
@miclgael
miclgael / domagick.sh
Created April 6, 2021 04:33 — forked from Sacristan/push_commits_by_chunks.sh
Push commits by chunks
REMOTE=origin
BRANCH=$(git rev-parse --abbrev-ref HEAD)
BATCH_SIZE=10
# check if the branch exists on the remote
# if git show-ref --quiet --verify refs/remotes/$REMOTE/$BRANCH; then
# # if so, only push the commits that are not on the remote already
# range=$REMOTE/$BRANCH..HEAD
# else
# # else push all the commits
@miclgael
miclgael / install-extensions.sh
Last active March 11, 2020 21:28
VS Code Extensions Reference (archived)
# My VS Code Extensions
## If you have the `code` command in your Shell, you can paste this in to install them all in one shot.
## List all your extensions with: `code --list-extensions`
# 1. Misc. Syntax packs
code --install-extension budparr.language-hugo-vscode --force && \
code --install-extension bungcip.better-toml --force && \
code --install-extension mechatroner.rainbow-csv --force && \
code --install-extension yzhang.markdown-all-in-one --force && \
@miclgael
miclgael / php-style-guide.md
Created February 11, 2020 03:08 — forked from ryansechrest/php-style-guide.md
PHP style guide with coding standards and best practices.

PHP Style Guide

All rules and guidelines in this document apply to PHP files unless otherwise noted. References to PHP/HTML files can be interpreted as files that primarily contain HTML, but use PHP for templating purposes.

The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

Most sections are broken up into two parts:

  1. Overview of all rules with a quick example
  2. Each rule called out with examples of do's and don'ts
@miclgael
miclgael / release.bat
Created January 1, 2020 21:19
Ubuntu / Windows 10 / macOS triple boot can't connect to wired internet after Windows boot
# Release the ethernet card to alternative
# operating systems before restarting Windows
# https://askubuntu.com/a/808027
ipconfig /release
@miclgael
miclgael / .gitignore
Last active May 7, 2019 01:47 — forked from salcode/.gitignore
.gitignore for WordPress
# -----------------------------------------------------------------
# .gitignore for WordPress
# Bare Minimum Git
# http://ironco.de/bare-minimum-git/
# ver 20150227
#
# This file is tailored for a WordPress project
# using the default directory structure
#
# This file specifies intentionally untracked files to ignore
@miclgael
miclgael / cloudSettings
Last active March 8, 2022 10:21
VS Code extensions reference
{"lastUpload":"2022-03-08T10:20:57.049Z","extensionVersion":"v3.4.3"}
@miclgael
miclgael / target-retina-devices.css
Last active August 29, 2015 14:20
Target retina devices with media queries
@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (min-device-pixel-ratio: 1.5) {
// target devices here
}