Skip to content

Instantly share code, notes, and snippets.

View tbvinh's full-sized avatar
🧑‍🍼
I may be slow to respond.

Vinh Tran tbvinh

🧑‍🍼
I may be slow to respond.
  • Ho Chi Minh - Vietnam
View GitHub Profile
@tbvinh
tbvinh / README-apache-balancer-with-stickysession.md
Last active November 25, 2022 06:10 — forked from drmalex07/README-apache-balancer-with-stickysession.md
Setup apache as a load balancer with sticky sessions. #apache #balancer #stickysession
@tbvinh
tbvinh / build.xml
Created November 22, 2021 04:57 — forked from greghelton/build.xml
ANT: Project for Managing a SQLite Database
<project name="sqlite" basedir="." default="echo">
<property name="sqldriver.jar" value="${user.home}/dev/bin/sqlite/sqlitejdbc-v056.jar"/>
<property name="db.name" value="programmers.db"/>
<property name="url" value="jdbc:sqlite:data"/>
<property name="driver" value="org.sqlite.JDBC"/>
<property name="userid" value="root"/>
<property name="password" value="root"/>
<target name="echo">
@tbvinh
tbvinh / sampleREADME.md
Created October 23, 2021 03:23 — forked from FrancesCoronel/sampleREADME.md
A sample README for all your GitHub projects.

FVCproductions

INSERT GRAPHIC HERE (include hyperlink in image)

Repository Title Goes Here

Subtitle or Short Description Goes Here

@tbvinh
tbvinh / fix-wordpress-permissions.sh
Created June 8, 2021 08:28 — forked from Adirael/fix-wordpress-permissions.sh
Fix wordpress file permissions
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
#
WP_OWNER=www-data # <-- wordpress owner
WP_GROUP=www-data # <-- wordpress group
WP_ROOT=$1 # <-- wordpress root directory
@tbvinh
tbvinh / tomcat_ssl_keytool.sh
Created May 27, 2021 08:45 — forked from mortenbra/tomcat_ssl_keytool.sh
Generate Certificate Signing Request (CSR) and install SSL certificate (CRT) into Java keystore used by Tomcat
# create a new keystore
keytool -genkey -alias server -keyalg RSA -keysize 2048 -keystore foobar_com.jks -dname "CN=foobar.com,OU=IT, O=FooBar Inc, L=FooCity, ST=FooState, C=NO"
# create a certificate signing request (CSR) to send to the certificate authority (CA)
keytool -certreq -alias server -file foobar_com.csr -keystore foobar_com.jks
# now go and buy a SSL certificate, using the CSR file
# you should get a certificate file in .crt format back
# install the received certificate (example uses files received from GoDaddy)
@tbvinh
tbvinh / android-backup-apk-and-datas.md
Created September 24, 2020 10:09 — forked from AnatomicJC/android-backup-apk-and-datas.md
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Fetch application APK

To get the list of your installed applications: