Skip to content

Instantly share code, notes, and snippets.

View pleasemarkdarkly's full-sized avatar
🎯
Pushing buttons.

pleasemarkdarkly

🎯
Pushing buttons.
  • Earth
View GitHub Profile
@pleasemarkdarkly
pleasemarkdarkly / ad_images.sh
Last active January 9, 2020 13:45
Convert a folder of images into FB friendly ads with watermark.
#!/bin/bash
# debug
image_count=0
max_images=400
# arguments
source_images=""
dest_images=""
#!/bin/bash
function nano_install () {
wget https://www.nano-editor.org/dist/v4/nano-4.7.tar.xz
tar -xvf nano-4.7.tar.xz
cd nano-4.7
./configure --prefix=/usr \
--sysconfdir=/etc \
--enable-utf8 \
--docdir=/usr/share/doc/nano-4.7 &&
@pleasemarkdarkly
pleasemarkdarkly / docker-compose.yml.mautic
Last active January 16, 2020 18:32
mautic stack, after starting up, chmod -R a+rwx on mautic_db and then restart db
version: "3"
services:
percona:
image: percona/percona-server:5.7
container_name: percona
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci
restart: always
ports:
- 3306:3306
environment:
session=$(date "+%F_%T")
echo "sourcing webpages.list"
source ./webpages.list
set -m # Enable Job Control
number=0
for topics in "${webpages[@]}"; do
if [ $((number % 2)) -eq 0 ]; then
@pleasemarkdarkly
pleasemarkdarkly / config
Last active January 26, 2020 06:50
todo.sh install config
# === EDIT FILE LOCATIONS BELOW ===
# Your todo.txt directory (this should be an absolute path)
export TODO_DIR="$HOME/.todo"
#export TODO_DIR=$(dirname "$0")
# Your todo/done/report.txt locations
export TODO_FILE="$TODO_DIR/todo.txt"
export DONE_FILE="$TODO_DIR/done.txt"
export REPORT_FILE="$TODO_DIR/report.txt"
@pleasemarkdarkly
pleasemarkdarkly / todo.txt-cli_install.sh
Last active January 28, 2020 06:29
todo.txt-cli app install
#!/usr/bin/env bash
git clone https://github.com/todotxt/todo.txt-cli
cd todo.txt-cli
make
make install
make test
eche "customization of paths as follows"
echo "make install CONFIG_DIR=/etc INSTALL_DIR=/usr/bin BASH_COMPLETION_DIR=/usr/share/bash-completion/completions"
const program = require('commander'),
replace = require('replace-in-file'),
chalk = require('chalk'),
normal = chalk.blue,
error = chalk.bold.red,
warning = chalk.keyword('orange');
const EmailValidator = require('email-deep-validator'),
lineByLine = require('n-readlines'),
fs = require('fs');
apt install fontconfig
mkdir font_installs
cd font_installs
echo "preffered font, Meslo for poweline"
wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf
wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf
wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf
wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf
#!/bin/sh
# Package
PACKAGE="debian-chroot"
DNAME="Debian Chroot"
# Others
INSTALL_DIR="/usr/local/${PACKAGE}"
PATH="${INSTALL_DIR}/bin:${PATH}"
CHROOTTARGET=`realpath ${INSTALL_DIR}/var/chroottarget`
version: '2'
services:
mariadb:
image: 'bitnami/mariadb:10.3'
environment:
- MARIADB_USER=bn_suitecrm
- MARIADB_DATABASE=bitnami_suitecrm
- ALLOW_EMPTY_PASSWORD=yes
volumes:
- '${PWD}/mariadb_data:/bitnami'