Skip to content

Instantly share code, notes, and snippets.

View attackant's full-sized avatar

Damian attackant

  • 18:17 (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 / keybase.md
Created August 25, 2016 22:12
My publicly-auditable identity

Keybase proof

I hereby claim:

  • I am attackant on github.
  • I am mindshare (https://keybase.io/mindshare) on keybase.
  • I have a public key whose fingerprint is C1EB CDD7 B371 ADB5 C5B0 DFDA 4A36 2732 70CC 93BF

To claim this, I am signing this object:

<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingOne">
<h4 class="panel-title">
<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne"> Title 1</a>
</h4>
</div>
<div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
<div class="panel-body">Content 1</div>
</div>
@attackant
attackant / website_qa_checklist.md
Last active September 19, 2015 06:39
Prelaunch QA Checklist

Prelaunch QA Checklist

Content & Style

Typography and layout

  • Check for incorrect punctuation marks, particularly apostrophes, quotation marks and hyphens/dashes
  • Check headings for where you could potentially use ligatures
  • Check for widow/orphan terms in important paragraphs

Spelling, grammar and consistency

javascript:void((function(){var loc = location.href; loc.indexOf("?") == -1 ? (location.href = loc+"?clearcache") : (location.href = loc+"&clearcache");})());
@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
@attackant
attackant / sort_array_by_array.php
Last active August 29, 2015 13:56
Sort an associative PHP array by HTML content, keeping array indexes (also sort one array by another)
<?php
// sort a multidimensional array by value, stripping HTML, keeping array indexes, sorting by the contents of original HTML putting the HTML back
$options = array(
1001 => "<a href='?post=590&amp;action=edit'>James Whistler</a>",
1004 => '<a href="106">Francisco Toledo</a>',
1002 => '<a href="103">Franco Marzilli</a>',
1000 => '<a href="100">John Bashor</a>',
1003 => '<a href="105">Daniel LaRue Johnson</a>',
1006 => '<a href="108">Ray Kass</a>',