Skip to content

Instantly share code, notes, and snippets.

@askalee
askalee / readme.md
Last active June 22, 2018 01:50 — forked from benstr/readme.md
Gist Markdown Cheatsheet

Heading 1 by # Heading 1

Heading 2 by ## Heading 2

Heading 3 by ### Heading 3

Heading 4 by #### Heading 4

Heading 5 by ##### Heading 5
Heading 6 by ######Heading 6

Paragraph

@askalee
askalee / git-move-files-in-subfolder.md
Last active June 21, 2018 05:10 — forked from ajaegers/git-move-files-in-subfolder.md
Git: move files in an subfolder keeping history

Change structure of project folder with Git

I have this structure:

 project-folder/
     .git
     wp-admin/
     wp-content/
     wp-includes/

.htaccess

@askalee
askalee / gist:2c26aa57ca46efe2b1239da03c700497
Last active October 23, 2017 02:23 — forked from rb2k/gist:8372402
A jenkins script to clean up workspaces on slaves
// https://gist.github.com/askalee/2c26aa57ca46efe2b1239da03c700497
import hudson.model.*;
import hudson.util.*;
import jenkins.model.*;
import hudson.FilePath.FileCallable;
import hudson.slaves.OfflineCause;
import hudson.node_monitors.*;
def DEBUG_MODE = (build.getEnvironment(listener).get('DEBUG_MODE') == "true")