From here.
Run git config --global --edit
and add the following under the [alias]
section.
squash = "!f(){ git reset --soft HEAD~${1} && git commit --edit -m\"$(git log --format=%B --reverse HEAD..HEAD@{1})\"; };f"
{ | |
"enable_highlight": true, | |
"github_mode": "gfm", | |
"github_inject_header_ids": true, | |
"enable_autoreload": true, | |
} |
/** | |
* This parses multipart/form-data when passed into a Lambda function through | |
* API Gateway using the following Integration Request Mapping Template: | |
#set($allParams = $input.params()) | |
{ | |
"body" : $input.json('$'), | |
"params" : { | |
#foreach($type in $allParams.keySet()) | |
#set($params = $allParams.get($type)) |
#!/usr/bin/env python | |
# | |
# Hi There! | |
# You may be wondering what this giant blob of binary data here is, you might | |
# even be worried that we're up to something nefarious (good for you for being | |
# paranoid!). This is a base85 encoding of a zip file, this zip file contains | |
# an entire copy of pip. | |
# | |
# Pip is a thing that installs packages, pip itself is a package that someone | |
# might want to install, especially if they're looking to run this get-pip.py |
From here.
Run git config --global --edit
and add the following under the [alias]
section.
squash = "!f(){ git reset --soft HEAD~${1} && git commit --edit -m\"$(git log --format=%B --reverse HEAD..HEAD@{1})\"; };f"
mkdir em && robocopy em node_modules /MIR | |
rmdir em && rmdir node_modules |
/** | |
* Merge two JS Objects | |
* | |
* returns a new Object with values of | |
* first and second added to each other. | |
* | |
* Note: | |
* Object items should only have integers for values | |
* ..otherwise, boom! | |
*/ |
This is basically the first thing I do after installing git.
From here by Filipe Kiss.
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
<?php | |
/** | |
* Basic mailer. | |
* @author Willem Labu | |
* | |
* | |
*/ | |
// Edit this: |
<snippet> | |
<content><![CDATA[ | |
echo "<pre>"; | |
print_r (\$${1:variable}); | |
echo "</pre>"; | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>echopre</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<scope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