Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Cory Collier corycollier

🏠
Working from home
View GitHub Profile
@corycollier
corycollier / issues.sh
Created Jun 21, 2019
Script to bulk delete gitlab issues.
View issues.sh
#!/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')
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=\"http://pic.twitter.com/xHVSgDLiKs\" target=\"_blank\">pic.twitter.com/xHVSgDLiKs</a>",
"id": 97479,
"praises": 0,
View test.js
var feed = new $FM.Feed('homepage-feed').get({
'success' : function(self, data) {
console.log(data);
}
});d
View gist:7878336
<VirtualHost *:80>
ServerName extranet.dev.ezyield.com
DirectoryIndex index.php
DefaultType text/html
DocumentRoot /Users/ccollier/Sites/extranet.ezyield.com/public
LogLevel debug
View gist:7547889
<?php
$label = Module_Helper_WebsiteTierLabel::getLabel(
'LABEL_PRIMARYSITES', $this->hotel
);
?>
<h2><?php echo $this->locale->getText($label); ?></h2>