Skip to content

Instantly share code, notes, and snippets.

@dave1010
dave1010 / .htaccess
Created May 11, 2011 13:21
PHPUnit config
deny from all
# put this in your tests and test-reports folders if you don't want the world seeing them
@cjtallman
cjtallman / README.md
Last active February 24, 2024 01:12
Vagrant Gitlab Server

Vagrant Gitlab Server

Quickly set up a local Gitlab CE server using Vagrant.

Run vagrant up to setup the virtual server.

Server Details

  • Ubuntu 16.04
  • Installs latest Docker
@bcnzer
bcnzer / postman-pre-request.js
Last active July 17, 2024 15:53
Postman pre-request script to automatically get a bearer token from Auth0 and save it for reuse
const echoPostRequest = {
url: 'https://<my url>.auth0.com/oauth/token',
method: 'POST',
header: 'Content-Type:application/json',
body: {
mode: 'application/json',
raw: JSON.stringify(
{
client_id:'<your client ID>',
client_secret:'<your client secret>',
@rgomezcasas
rgomezcasas / tcr.sh
Last active June 16, 2020 07:14
TCR
# -----------
# Explanation
mkdir tmp
echo "exit 0" > test
./test && echo "commit" || echo "revert"
# Should output "commit"
echo "exit 1" > test
./test && echo "commit" || echo "revert"
@RienNeVaPlus
RienNeVaPlus / letsencrypt-certbot-arangodb.md
Last active February 28, 2024 12:31
Using Let's Encrypt's Certbot SSL-Certificates with ArangoDB

Using Let's Encrypt's Certbot Certificates with ArangoDB

Let's Encrypt generates SSL certificates for free.
Follow these steps to create and use an SSL certificate with ArangoDB.

1. Install the Certbot from LetsEncrypt (Certbot instructions)

sudo apt-get update
sudo apt-get install software-properties-common
@hongkongkiwi
hongkongkiwi / main.tf
Last active November 16, 2023 23:38
Initialises Terraform HTTP backend to Gitlab. Here's a nice script which will ask for details in an interactive way.
# More information can be found at https://docs.gitlab.com/ee/user/infrastructure/#gitlab-managed-terraform-state
terraform {
backend "http" {
}
}