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
$('[field="amount_usdollar"]') | |
.map(function(index, value){ | |
return $(value) | |
.text() | |
.trim() | |
.replace(',', '') | |
.replace('€',''); | |
}) | |
.toArray() | |
.map(function(value){ |
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
apt install golang-go | |
export GOPATH=$HOME/go | |
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin | |
mkdir ~/go | |
git clone git://github.com/drone/drone.git $GOPATH/src/github.com/drone/drone | |
cd $GOPATH/src/github.com/drone/drone | |
make deps | |
make gen | |
make build | |
docker build -t drone/drone:0.5 . |
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
Ubuntu 16.04 (xenial): 7.0 https://packages.ubuntu.com/xenial/php | |
Debian 9 (stretch): 7.0 https://packages.debian.org/stretch/php | |
SUSE Linux Enterprise Server 12: 7.0 https://scc.suse.com/docs/lifecycle/sle/12/modules (Web and Scripting Module) | |
CentOS/Red Hat 7: 5.4 http://mirror.centos.org/centos/7/os/x86_64/Packages | |
CentOS/Red Hat 7 with RHSCL: 7.1 https://developers.redhat.com/products/softwarecollections/updates/ |
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
<!doctype html> | |
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
<html> | |
<head> | |
<title>iOS 8 web app</title> | |
<!-- CONFIGURATION --> |
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
<?php | |
$branchesOutput = shell_exec('git branch | egrep -v "^\\*"'); | |
$branches = explode("\n", $branchesOutput); | |
foreach ($branches as $branch) { | |
$branch = trim($branch); | |
if ($branch === '') { | |
continue; | |
} |
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
var parent = document.querySelectorAll('[class*="matrix__list"]')[0]; | |
if (parent) { | |
document.querySelectorAll('[class*="status_number__failure"]').forEach(item => parent.prepend(item.parentNode.parentNode.parentNode)); | |
} |
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
let parent = document.querySelectorAll('[class*="matrix__list"]')[0]; | |
if (parent) { | |
document.querySelectorAll('[class*="status_number__failure"]').forEach(item => parent.prepend(item.parentNode.parentNode.parentNode)); | |
} | |
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
<?php | |
/* | |
Script that cleans up old builds of all repos of a drone server. | |
Dependencies: | |
$ # having PHP and composer installed | |
$ composer require "guzzlehttp/guzzle=^6.3" |
OlderNewer