Skip to content

Instantly share code, notes, and snippets.

View rm3l's full-sized avatar

Armel Soro rm3l

View GitHub Profile
kubectl create configmap ghost-export-k8s-to-s3-configmap \
--from-literal GHOST_URL="https://my.ghost.blog.com/ghost" \
--from-literal S3_DESTINATION="s3://my-s3-bucket/folder/my.ghost.blog.com.export.json"
apiVersion: v1
kind: ConfigMap
metadata:
name: ghost-export-k8s-to-s3-configmap
data:
GHOST_URL: https://my.ghost.blog.com/ghost
S3_DESTINATION: s3://my-s3-bucket/folder/my.ghost.blog.com.export.json
@rm3l
rm3l / install__rm3l_ghost-export-to-s3__helm_chart.sh
Last active March 13, 2021 22:21
Leveraging Kubernetes CronJobs for automated backups of a headless Ghost blog to AWS S3
helm repo add rm3l https://helm-charts.rm3l.org
helm install my-ghost-export-to-s3 rm3l/ghost-export-to-s3 \
--version 0.9.0 \
--set ghost.apiBaseUrl="https://my.ghost.blog/ghost" \
--set ghost.username="my-ghost-username" \
--set ghost.password="my-ghost-password" \
--set aws.accessKeyId="my-aws-access-key-id" \
--set aws.secretKey="my-aws-secret-key" \
--set aws.s3.destination="s3://path/to/my/s3-export.json" \
--set cronJob.schedule="@daily"
Byobu is a suite of enhancements to tmux, as a command line
tool providing live system status, dynamic window management,
and some convenient keybindings:
F1 * Used by X11 *
Shift-F1 Display this help
F2 Create a new window
Shift-F2 Create a horizontal split
Ctrl-F2 Create a vertical split
Ctrl-Shift-F2 Create a new session
@rm3l
rm3l / publish-mavencentral.gradle
Created March 1, 2021 23:10 — forked from zsmb13/publish-mavencentral.gradle
Basic MavenCentral script
apply plugin: 'maven-publish'
apply plugin: 'signing'
task androidSourcesJar(type: Jar) {
archiveClassifier.set('sources')
if (project.plugins.findPlugin("com.android.library")) {
from android.sourceSets.main.java.srcDirs
from android.sourceSets.main.kotlin.srcDirs
} else {
from sourceSets.main.java.srcDirs
{
"meta": {
"theme": "elegant"
},
"basics": {
"name": "Armel Soro",
"label": "Technical Lead / R&D Software Engineer",
"picture": "https://avatars.githubusercontent.com/u/593208?s=460",
"email": "armel@soro.io",
"phone": "",
@rm3l
rm3l / script-template.sh
Created December 16, 2020 19:52 — forked from m-radzikowski/script-template.sh
Minimal safe Bash script template - see the article with full description: https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
cat <<EOF
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...]
@rm3l
rm3l / mid_circle_radial_gauge.dart
Last active June 17, 2021 14:32
Sample code for creating a mid-circle radial gauge widget with Flutter. See https://rm3l.org/creating-a-mid-circle-radial-gauge-in-flutter/ for more details.
import 'dart:math';
import 'package:flutter/material.dart';
class MyCustomRadialGauge extends StatefulWidget {
@override
_MyCustomRadialGaugeState createState() => _MyCustomRadialGaugeState();
}
class _MyCustomRadialGaugeState extends State<MyCustomRadialGauge>

How to use this code

  1. Add the build_pull_request.sh to the root of your git repository;
  2. Add the android.yml file to .github/workflows/;
  3. Make build_pull_request.sh executable using: chmod +x build_pull_request.sh;
  4. Commit your code and push the changes

LICENSE

# MIT License
@rm3l
rm3l / networkCommand.md
Created February 11, 2020 23:47 — forked from raulmoyareyes/networkCommand.md
Linux command to check Internet connection speed.

# View public IP

  • curl -s checkip.dyndns.org | sed 's#.Address: (.)</b.*#\1#'
  • wget -qO - icanhazip.com
  • curl ifconfig.me
  • curl ident.me
  • dig +short myip.opendns.com @resolver1.opendns.com
  • lynx -dump ifconfig.me | grep 'IP Address'
  • curl ipecho.net/plain
  • curl bot.whatismyipaddress.com
  • curl ipinfo.io