Skip to content

Instantly share code, notes, and snippets.

@Dobby89
Dobby89 / Bash Commands.md
Last active January 13, 2022 17:47
Windows Terminal / Bash commands

Copy the output of the terminal directly into your clipboard (this works with Git Bash at least !)

<command> | clip

List all global NPM packages/modules

npm list -g --depth 0
git remote set-url origin new-repo-url.git
@Dobby89
Dobby89 / Delete Directory on Windows
Last active December 1, 2016 16:15
Delete a folder which has loads of child directories which cannot be deleted using Window's File Explorer. Read more here: https://blog.bertvanlangen.com/articles/path-too-long-use-robocopy/
robocopy temp_empty_folder folder_to_delete /purge
@Dobby89
Dobby89 / Regex recipes.md
Last active July 14, 2021 14:04
Regex recipes
vagrantfile:
target: local
vm:
provider:
local:
box: puphpet/debian75-x64
box_url: puphpet/debian75-x64
box_version: '0'
chosen_virtualizer: virtualbox
virtualizers:
@Dobby89
Dobby89 / Responsive background sprite
Created June 28, 2015 18:42
Very simple method of creating a responsive image sprite using background images (good with an SVG image sprite)
// The mixin
@mixin responsive-sprite(
$sprite-path,
$sprite-width,
$sprite-height,
$icon-width,
$icon-height,
$icon-pos-x,
$icon-pos-y){