Skip to content

Instantly share code, notes, and snippets.

View jrichardsz's full-sized avatar

JRichardsz jrichardsz

View GitHub Profile

convert_ascii_to_html_entities.sh

for ARGUMENT in "$@"
do
   KEY=$(echo $ARGUMENT | cut -f1 -d=)

   KEY_LENGTH=${#KEY}
   VALUE="${ARGUMENT:$KEY_LENGTH+1}"
@jrichardsz
jrichardsz / docker small small lightweight snippets.md
Created March 20, 2024 12:51
docker small small lightweight snippets

The main idea is to avoid apt update to install some common tools

zip

RUN curl http://ftp.de.debian.org/debian/pool/main/z/zip/zip_3.0-11+b1_amd64.deb -o /tmp/zip_3.0-11+b1_amd64.deb
RUN dpkg -i /tmp/zip_3.0-11+b1_amd64.deb
RUN rm /tmp/zip_3.0-11+b1_amd64.deb
select
substr(a.spid,1,9) pid,
b.status,
substr(b.serial#,1,5) ser#,
b.machine,
substr(b.username,1,10) username,
b.server,
substr(b.osuser,1,8) os_user,
substr(b.program,1,30) program
from v$session b, v$process a
@jrichardsz
jrichardsz / github sites of world class universities.md
Created March 12, 2024 15:48
github sites of world class universities
@jrichardsz
jrichardsz / go golang snippets.md
Created March 8, 2024 16:07
go golang snippets

docker run -it -v $(pwd):/src golang bash

init

go mod init sql_client

install library

go get github.com/godror/godror

SqlPing.java

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class SqlPing {
@jrichardsz
jrichardsz / android privacy policy.md
Created March 7, 2024 03:52
android privacy policy

Privacy Policy

TheJavatar built the Sound Recorder app as a Free app. This SERVICE is provided by TheJavatar at no cost and is intended for use as is.

This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which are accessible at Sound Recorder unless otherwise defined in this Privacy Policy.

@jrichardsz
jrichardsz / c++ sql client
Created March 6, 2024 23:19
c++ sql client
https://soci.sourceforge.net/doc/release/3.2/installation.html
https://soci.sourceforge.net/
https://soci.sourceforge.net/doc/release/3.1/