Skip to content

Instantly share code, notes, and snippets.

@agmm
agmm / git-pass-reset.sh
Created November 4, 2018 13:34
Git Password Reset
git config --global --unset user.password
@agmm
agmm / git-push-change-disable.sh
Last active November 4, 2018 13:35
Change/Disable 'git push'
git remote set-url --push origin no_push

Move into the 'dist' directory inside the antd package.

Create a file with the following content and name it 'my-theme.less'

@import "./antd.less";   // Import Ant Design styles by less entry

@primary-color: #d228e9;                         // primary color for all components
@link-color: #1890ff;                            // link color
@success-color: #52c41a;                         // success state color

Start by installing the HTML minifier with:

npm install html-minifier -g

Execute the minifier command:

html-minifier --minify-css true --minify-js true input.htm -o output.htm
@agmm
agmm / jupyter-pygments.css
Created August 22, 2019 21:40
Jupyter Color Scheme for Pygments (the code highlighter)
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #408080; font-style: italic } /* Comment */
.highlight .err { border: 1px solid #FF0000 } /* Error */
.highlight .k { color: #008000; font-weight: bold } /* Keyword */
.highlight .o { color: #AA22FF } /* Operator */
.highlight .cm { color: #408080; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #BC7A00 } /* Comment.Preproc */
.highlight .c1 { color: #408080; font-style: italic } /* Comment.Single */
.highlight .cs { color: #408080; font-style: italic } /* Comment.Special */
.highlight .gd { color: #A00000 } /* Generic.Deleted */
@agmm
agmm / database.rules.json
Created August 23, 2019 16:40 — forked from codediodeio/database.rules.json
Common Database Rules for Firebase
// No Security
{
"rules": {
".read": true,
".write": true
}
}
git push -d <remote_name> <branch_name>
git branch -d <branch_name>
@agmm
agmm / disable-local-snapshots-time-machine.sh
Created September 4, 2019 20:33
Command to disable local Time Machine Snapshots
sudo tmutil disablelocal
@agmm
agmm / enable-local-snapshots-time-machine.sh
Created September 4, 2019 20:34
Command to enable local Time Machine snapshots
sudo tmutil enablelocal
@agmm
agmm / delete-node-modules.md
Created September 4, 2019 21:47
Command to delete 'node_modules' in all subdirectories

find . -name "node_modules" -type d -prune -exec rm -rf '{}' +