This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# debug | |
image_count=0 | |
max_images=400 | |
# arguments | |
source_images="" | |
dest_images="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 && |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# === 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |