Skip to content

Instantly share code, notes, and snippets.

View pepitoria's full-sized avatar

Jose Luis Montes Jiménez pepitoria

View GitHub Profile
@Composable
fun pokemon() {
Column(modifier = Modifier) {
Row(modifier = Modifier.padding(16.dp)) {
Text(text = "Bulbasaur")
Spacer(modifier = Modifier.weight(1f))
Text(text = "#001")
}
Box(
@pepitoria
pepitoria / piholesync.sh
Last active February 15, 2022 11:48
Quick and dirty script to sync two pihole instances.
BKP_DATE=$(date +%Y%m%d_%H%M%S)
PIHOLE_ORIGIN_IP=192.168.0.10
PIHOLE_ORIGIN_USER=pi
LOCAL_USER=pep
PIHOLE_LOCAL_CONFIG=/home/pep/docker/config/pihole
GRAVITYDB_ORIGIN_PATH=/home/pi/docker/config/pihole/etc-pihole/gravity.db
GRAVITYDB_LOCAL_PATH=/home/pep/docker/config/pihole/etc-pihole/gravity.db
GRAVITYDB_LOCAL_BACKUP_PATH=/home/pep/docker/config/gravity.db.bkp.${BKP_DATE}
@pepitoria
pepitoria / update.containers.sh
Last active February 8, 2022 10:16
Script to update all containers configured in the user docker directory with docker-compose.
# your docker folder path
DOCKER_DIR=/home/pep/docker
cd $DOCKER_DIR \
&& docker-compose pull \
&& docker-compose up --force-recreate --build -d \
&& docker image prune -f