Public content for La Cucaracha
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make sure to replace 'my-host' '[email protected]', 'my-jira-api-token' and 'issue-id' below with valid values | |
# Access check using curl | |
curl -v https://my-jira-host.atlassian.net/rest/api/latest/issue/issue-id --user [email protected]:my-jira-api-token | |
# Access check using node | |
node -e "const JiraApi = require('jira-client'); new JiraApi({protocol: 'https', host: 'my-jira-host.atlassian.net', username: '[email protected]', password: 'my-jira-api-token', apiVersion: '2', strictSSL: true}).findIssue('issue-id').then((result) => console.log(result));" | |
# it should result in the issue information |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2018 Google LLC | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
################################################################################################################ | |
# | |
# This script will quickly set you up with Github Pages and jrnl to get you up and running journaling online for | |
# whatever your purpose is. | |
# | |
# How to run: `source one-step-to-journal.sh && bootstrap_github_journal_page` | |
# | |
# A few things to note: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alertWhenDone = function() { if($('.summary-message.running').length === 0) alert('Build is done') } | |
setInterval(alertWhenDone, 20*1000) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PR_JIRA_ISSUE=`g s | cut -d '/' -f 2` | |
BRANCH_DESCRIPTION=`g s | cut -d '/' -f 3` | |
PR_TITLE="${BRANCH_DESCRIPTION//-/ }" | |
g pull-request -r "viewthespace/convertibles" -l "qa" -m "[$PR_JIRA_ISSUE] $PR_TITLE This PR will... @viewthespace/convertibles" -e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is my task requested by mom every time we would go grocery shopping | |
function checkCookiePrice() { | |
var defer = $q.defer(); | |
setTimeout(function () { | |
// very random. I could only believe in God back then... | |
var random = Math.floor(Math.random() * 3); | |
if (random == 0) | |
// YES! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -type f -name '*.js.coffee' -exec sed -i '' s#find#replace#g {} + |
NewerOlder