Change file permission:
chmod +x commiters-share.php
Move the scripts to your bin folder:
function calcAge(birth_date) { | |
var today = new Date; | |
var age = { | |
years: 0, | |
months: 0 | |
}; | |
age.years = today.getFullYear() - birth_date.getFullYear(); |
wget --mirror -p --convert-links -P ./LOCAL http://website.address.com |
#!/bin/bash | |
# Make sure that all text is parsed in the same language | |
export LC_MESSAGES=en_US.UTF-8 | |
export LC_COLLATE=en_US.UTF-8 | |
export LANG=en_US.utf8 | |
export LANGUAGE=en_US:en | |
export LC_CTYPE=en_US.UTF-8 | |
# Calculate how much memory and swap is free |
#! /bin/bash | |
set -eou pipefail | |
#usage: sudo ./docker-cleanup-volumes.sh [--dry-run] | |
docker_bin=$(which docker.io 2> /dev/null || which docker 2> /dev/null) | |
# Default dir | |
dockerdir=/var/lib/docker |
#!/bin/bash | |
while ! ping -n -c 1 8.8.8.8 | |
do | |
sleep 10 | |
done | |
echo "network is working" |
{ | |
"name": "caique/otp", | |
"authors": [ | |
{ | |
"name": "Caique de Castro", | |
"email": "[email protected]" | |
} | |
], | |
"require": { | |
"rych/otp": "^1.1", |
<?php | |
class SimpleWorkerThread extends Thread | |
{ | |
private $workerId = 0; | |
public function __construct($id) | |
{ | |
$this->workerId = $id; | |
} |
#!/usr/bin/env sh | |
# Prints a random line from a file | |
# Script by @augustohp | |
lines_on() { | |
file=$1 | |
wc -l $file | awk '{print $1}' | |
} | |
random_until() { | |
max=$1 |