Skip to content

Instantly share code, notes, and snippets.

View corycollier's full-sized avatar
🏠
Working from home

Cory Collier corycollier

🏠
Working from home
View GitHub Profile
@corycollier
corycollier / issues.sh
Created June 21, 2019 02:53
Script to bulk delete gitlab issues.
#!/usr/bin/env bash
declare -i _page=0
declare -i _number_of_pages=0
declare _person_access_token="asdfasdfasdfsadf"
declare _gitlab_host="https://gitlab.example.com/api/v4"
declare _assignee="12345"
declare _url="${_gitlab_host}/issues?private_token=${_person_access_token}&assignee=${_assignee}&per_page=100"
_number_of_pages=$(curl -i -I "${_url}" | grep x-total-pages | awk '{print $2}' | sed 's/[^0-9]*//g')
{
"position": 0,
"update": {
"html": null,
"data": {
"rating": null,
"classification": "photoblurb",
"text": "IntoTheGloss: Meet the DIY blackhead mask that'll have you looking like Angelina w/o makeup ✨ … <a href=\"http://pic.twitter.com/xHVSgDLiKs\" target=\"_blank\">pic.twitter.com/xHVSgDLiKs</a>",
"id": 97479,
"praises": 0,
@corycollier
corycollier / test.js
Created November 30, 2016 01:28
bazaar code
var feed = new $FM.Feed('homepage-feed').get({
'success' : function(self, data) {
console.log(data);
}
});d
<VirtualHost *:80>
ServerName extranet.dev.ezyield.com
DirectoryIndex index.php
DefaultType text/html
DocumentRoot /Users/ccollier/Sites/extranet.ezyield.com/public
LogLevel debug
<?php
$label = Module_Helper_WebsiteTierLabel::getLabel(
'LABEL_PRIMARYSITES', $this->hotel
);
?>
<h2><?php echo $this->locale->getText($label); ?></h2>