Skip to content

Instantly share code, notes, and snippets.

@tirzasrwn
tirzasrwn / docker_wordpress.md
Created December 12, 2023 09:10 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
@tirzasrwn
tirzasrwn / install_nerd_font_linux.md
Last active January 7, 2024 09:49
how to install nerd fonts in linux
  • Download here, just pick Fira Code for the the best font
  • Download install script from here, and name it install.sh
  • Run the script
vim install.sh
mkdir patched-fonts
mv <your-font>.zip ./patched-fonts
cd patched-fonts
unzip .zip
@tirzasrwn
tirzasrwn / dropbear
Created April 11, 2024 07:13 — forked from mad4j/dropbear
activating dropbear on embedded linux
Manual installation
1. copy dropbearmultin in /usr/sbin
2. create dropbearmulti aliases (call ./dropbearmulti)
Dropbear multi-purpose version 0.51
Make a symlink pointing at this binary with one of the following names:
'dropbear' - the Dropbear server
'dbclient' or 'ssh' - the Dropbear client
'dropbearkey' - the key generator
'dropbearconvert' - the key converter
@tirzasrwn
tirzasrwn / ping-stat.py
Created April 12, 2024 04:27
ping status lcd 1602 beaglebone black
#!/usr/bin/python
import time
import os
import Adafruit_CharLCD as LCD
# BeagleBone Black configuration:
lcd_rs = 'P8_8'
lcd_en = 'P8_10'
lcd_d4 = 'P8_18'
@tirzasrwn
tirzasrwn / wifi-bluethooth.md
Last active July 18, 2024 03:55
fix wifi slow when connect bluethooth
cd /etc/modprobe.d/
sudo cp iwlwifi.conf iwlwifi.conf.bak
sudo vi iwlwifi.conf
# add this line without #
# options iwlwifi bt_coex_active=0 swcrypto=1 11n_disable=8
# and save
sudo reboot

source: https://wiki.debian.org/iwlwifi

@tirzasrwn
tirzasrwn / certificate_generator.py
Created September 23, 2024 03:21
Example of Certificate Generator By Name List
import pandas as pd
from pdfrw import PdfReader, PdfWriter, PageMerge
from reportlab.pdfgen import canvas
# Load the names from the CSV file
names_df = pd.read_csv('names.csv')
# Path to your PDF template
template_path = 'template.pdf'