Skip to content

Instantly share code, notes, and snippets.

@darkleon
darkleon / buildenv.sh
Created December 31, 2015 09:23 — forked from dpwiz/buildenv.sh
Prepare to deploy stuff
mkdir -p reports
REPO="http://127.0.0.1:8888"
echo Checking for local repo at ${REPO}
curl -f --head ${REPO} > /dev/null 2>&1 || REPO='http://pypi.python.org/simple'
echo "... will use ${REPO}"
echo 'Creating "venv" environment...'
virtualenv --distribute --no-site-packages venv
@darkleon
darkleon / package.sh
Created January 12, 2016 08:18 — forked from jewelsea/package.sh
Shell script to package java code as a native OS X application.
#! /bin/bash
################
# package.sh
#
# Packages java code as a native OS X application
#
# - Fetches source for a Java Swing HelloWorld application from the web
# - Compiles the source
# - Packages the source into a native Mac application
@darkleon
darkleon / README.md
Created June 23, 2017 09:22 — forked from oodavid/README.md
Backup MySQL to Amazon S3

Backup MySQL to Amazon S3

This is a simple way to backup your MySQL tables to Amazon S3 for a nightly backup - this is all to be done on your server :-)

Sister Document - Restore MySQL from Amazon S3 - read that next

1 - Install s3cmd

this is for Centos 5.6, see http://s3tools.org/repositories for other systems like ubuntu etc

@darkleon
darkleon / alert.sh
Created September 23, 2023 15:55 — forked from cherti/alert.sh
send a dummy alert to prometheus-alertmanager
#!/bin/bash
name=$RANDOM
url='http://localhost:9093/api/v1/alerts'
echo "firing up alert $name"
# change url o
curl -XPOST $url -d "[{
\"status\": \"firing\",
@darkleon
darkleon / 0_prerequisites.md
Created December 29, 2024 19:07 — forked from dehsilvadeveloper/0_prerequisites.md
Installing Docker on WSL 2 with Ubuntu 22.04

Prerequisites

Before start the installation process, make sure you meet the following prerequisites:

  • A Windows 10 operating system with WSL 2 support.
  • WSL 2 enabled.
  • Ubuntu 22.04 installed on WSL 2.