Skip to content

Instantly share code, notes, and snippets.

Working from home

Cory Collier corycollier

Working from home
View GitHub Profile
corycollier /
Created Jun 21, 2019
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=""
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')
View data.json
"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=\"\" target=\"_blank\"></a>",
"id": 97479,
"praises": 0,
View test.js
var feed = new $FM.Feed('homepage-feed').get({
'success' : function(self, data) {
View gist:7878336
<VirtualHost *:80>
DirectoryIndex index.php
DefaultType text/html
DocumentRoot /Users/ccollier/Sites/
LogLevel debug
View gist:7547889
$label = Module_Helper_WebsiteTierLabel::getLabel(
'LABEL_PRIMARYSITES', $this->hotel
<h2><?php echo $this->locale->getText($label); ?></h2>