Skip to content

Instantly share code, notes, and snippets.

View attackant's full-sized avatar

Damian attackant

  • 23:04 (UTC -06:00)
View GitHub Profile
@attackant
attackant / Update-branch.md
Created May 9, 2023 15:14 — forked from whoisryosuke/Update-branch.md
Bring your feature branch up to date with master. Deploying from Git branches adds flexibility. Bring your branch up to date with master and deploy it to make sure everything works. If everything looks good the branch can be merged. Otherwise, you can deploy your master branch to return production to its stable state.

Updating a feature branch

First we'll update your local master branch. Go to your local project and check out the branch you want to merge into (your local master branch)

$ git checkout master

Fetch the remote, bringing the branches and their commits from the remote repository. You can use the -p, --prune option to delete any remote-tracking references that no longer exist in the remote. Commits to master will be stored in a local branch, remotes/origin/master

@attackant
attackant / monitrc
Last active October 13, 2016 16:48 — forked from mikluko/gist:3897117
Basic monit config to monitor CPU, memory and disk usage
set daemon 30 with start delay 60
set logfile syslog facility log_daemon
set httpd port 2812
allow localhost
set mailserver localhost
set alert support@mindsharelabs.com but not on { instance }
mail-format {
From: no-reply@EXAMPLE.com
@attackant
attackant / 0_reuse_code.js
Created June 19, 2014 16:05
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console