Skip to content

Instantly share code, notes, and snippets.

View chris-cadev's full-sized avatar

Christian Camacho chris-cadev

View GitHub Profile
@chris-cadev
chris-cadev / README.md
Last active March 16, 2022 01:26 — forked from deviantony/README.md
Portainer admin password in a docker-compose environment

Portainer compose deployment with admin password preset

This file aims to explain how to deploy Portainer inside a compose file with the admin password already set.

Generate the admin password

For this example, we'll use the password superpassword.

Use the following command to generate a hash for the password:

### Keybase proof
I hereby claim:
* I am chris-cadev on github.
* I am cavila_arkus (https://keybase.io/cavila_arkus) on keybase.
* I have a public key ASC7J_Y736GkRD_Qt2HcLf1q-r3YnJe42y9NwN1gyY6NSQo
To claim this, I am signing this object:
<%*
const bulletRegex = /- [^\[]/;
const taskRegex = /- \[ \] /;
function createTasksFromBullets(content) {
let result = content.split('\n')
result = result.map(l => {
if (!bulletRegex.test(l)) {
return l
{
"$schema": "../node_modules/@tauri-apps/cli/schema.json",
"build": {
"beforeBuildCommand": "npm run build",
"beforeDevCommand": "npm run dev",
"devPath": "http://localhost:5173",
"distDir": "../build"
},
"package": {
"productName": "mission-11-enroller",
@chris-cadev
chris-cadev / list-worktrees.c
Last active December 20, 2024 22:51
Tools to prune Git worktrees by status, age, or pattern with sorting, dry-run, and custom options.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <sys/stat.h>
#include <time.h>
#include <dirent.h>
#include <limits.h> // For PATH_MAX
#include <unistd.h>