This file contains hidden or 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 | |
sudo apt update | |
sudo apt upgrade | |
sudo apt install git | |
sudo apt install vim | |
sudo apt install wget curl | |
sudo apt install make procps |
This file contains hidden or 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
ALTER USER root@localhost IDENTIFIED BY 'password'; | |
CREATE DATABASE testdb; | |
CREATE USER `newuser` IDENTIFIED BY 'userpass'; | |
GRANT ALL ON *.* TO `newuser` WITH GRANT OPTION; | |
CREATE USER `appuser` IDENTIFIED BY 'appuser'; | |
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, LOCK TABLES, CREATE VIEW, SHOW VIEW ON testdb.* TO `appuser`; |
This file contains hidden or 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: | |
maria: | |
image: mariadb | |
restart: always | |
ports: | |
- 3306:3306 | |
volumes: | |
- ./data:/var/lib/mysql | |
- ./workdir:/work |
This file contains hidden or 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
[automount] | |
enabled = true | |
root = /mnt/ | |
options = "metadata,umask=22,fmask=11" |
This file contains hidden or 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 | |
compare $2 $1 png:- | montage -geometry +4+4 $2 png:- $1 /tmp/diff.png | |
open /tmp/diff.png |
This file contains hidden or 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
import os | |
import sys | |
import datetime | |
import json | |
import csv | |
from operator import itemgetter | |
fName = 'trello.json' | |
csvName = 'trello.csv' | |
timeFormat = '%Y-%m-%d' |