Skip to content

Instantly share code, notes, and snippets.

View mcnemesis's full-sized avatar
💭
DNAP hackathons on days with good weather ;-)

Nemesis Fixx Da JWL mcnemesis

💭
DNAP hackathons on days with good weather ;-)
View GitHub Profile
@mcnemesis
mcnemesis / index.html
Created September 11, 2023 08:09
MWZpdqz
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
@mcnemesis
mcnemesis / nginx_default
Created July 12, 2023 10:46
Sample Nginx Server Config for Serving Django App running on hidden/local network Apache instance with/without SSL
# OUR SERVER
server {
listen 80;
server_name .domain.com;
return 301 https://domain.com$request_uri;
}
server {
@mcnemesis
mcnemesis / django_apps.conf
Last active July 12, 2023 11:06
Sample Mod-Macro spec for a single Django App running with Apache on a local subnet (useful to run apache behind nginx)
<Macro DJANGO_APP $IP $PORT $DOMAIN $ADMIN_EMAIL $PROJECT_DIR $APP >
NameVirtualHost $IP:$PORT
Listen $IP:$PORT
<VirtualHost $IP:$PORT>
ServerName $DOMAIN
ServerAlias www.$DOMAIN *.$DOMAIN
ServerAdmin $ADMIN_EMAIL
# to allow each django project to use its own nginx daemon and thus prevent sharing settings
@mcnemesis
mcnemesis / HIDAc_default_knowledgebase.json
Created May 24, 2023 08:22
Default AI Knowledge Model Config for the HIDAC robot
{
"published":"20 Apr, 2023",
"references":"",
"name":"HIDA: Maternal Healthcare QA",
"qa":[
{
"q":"Why do I feel tired and weak",
"id":45,
"aq":[
@mcnemesis
mcnemesis / vosac_default_knowledgebase.json
Last active August 17, 2022 11:05
Default AI Knowledge Model Config for the VOSAC robot
{
"qa": [
{
"aq": [
"Who is your father?",
"Who is your dad?",
"Who are your parents?"
],
"id": 25,
"a": "Joseph Willrich Lutalo, he fathered me.",
@mcnemesis
mcnemesis / fun.sh
Created June 10, 2022 10:48
Have Fun in Bash Shell
# place the following into somewhere like /etc/bash.bashrc.local
# then import into your bash terminals via ~/.bashrc with:
# source /etc/bash.bashrc.local
function fun {
R=$(($RANDOM % 4))
if [[ $R -eq 1 ]]
then
sl
elif [[ $R -eq 2 ]]
@mcnemesis
mcnemesis / code_poem--the-table-craftsman--JWL.js
Created January 28, 2022 11:43
Tale of The Table Maker --- a code poem by JWL (nemesisfixx)
/*********************** Tale of The Table Maker **********************
***********************************************************************
* CODE POET: nemesisfixx
***********************************************************************
*
* Once, when presented with a box of obscure things,
* and a style of table desired,
* the craftsman had to do his magic on them, then
* hand back a brand-new table, ready to be used!
*
@mcnemesis
mcnemesis / TTTT.Default.EXAMPLE.TEAS.json
Created June 5, 2021 06:49
TEA Text Transformer Terminal (TTTT) standard starter TEAS (TExt Alternator Scripts) --- from Nuchwezi Research
["Ryf Transform|r:[lL]:R\nr:[aeio]:U","Garagu Script|r:[uU]{1}:a\nR:A:U\naa:","Raid Transform|r:[ae]d:id\na:","Ryf Transform RIz|r:[uU]:A\nr:[lL]:R\nr:[aeio]:U","Condenser Scrypt|r:[Ww]hat:whT\nr:how:hw\nr:[ ]*are[ ]: r \nr:why:y\n","Ryf Transform RIzA-1|r:[uU]:A\nr:[lL]:R\nr:[aeio]:U\na:","Ryf Transform RIzA-2|r:[uU]:A\nr:[lL]:R\nr:[aeio]:U\na:\nr:[xX]:J\nr:,: ","The Basic RZA Transform|r:z:a\nr:y:b\nr:x:c\nr:w:d\nr:v:e\nr:u:f\nr:t:g\nr:s:h\nr:r:i\nr:q:j\nr:p:k\nr:o:l\nr:n:m\nr:m:n\nr:l:o\nr:k:p\nr:j:q\nr:i:r\nr:h:s\nr:g:t\nr:f:u\nr:e:v\nr:d:w\nr:c:x\nr:b:y\nr:a:z","The Shuffle RZA Transform |r:z:a\nr:y:b\nr:x:c\nr:w:d\nr:v:e\nr:u:f\nr:t:g\nr:s:h\nr:r:i\nr:q:j\nr:p:k\nr:o:l\nr:n:m\nr:m:n\nr:l:o\nr:k:p\nr:j:q\nr:i:r\nr:h:s\nr:g:t\nr:f:u\nr:e:v\nr:d:w\nr:c:x\nr:b:y\nr:a:z\ns:","Ryf Transform Quertzcolt|r:z:a\nr:y:b\nr:x:c\nr:w:d\nr:v:e\nr:u:f\nr:t:g\nr:s:h\nr:r:i\nr:q:j\nr:p:k\n#r:o:l\nr:n:m\nr:m:n\nr:l:o\nr:k:p\nr:j:q\nr:i:r\nr:h:s\nr:g:t\nr:f:u\n#r:e:v\nr:d:w\nr:c:x\nr:b:y\nr:a:z\n#a:\ns:\n\nr:[a]:A\nr:[lL]:
@mcnemesis
mcnemesis / index.html
Created November 23, 2020 19:03
SQUIZ Book Search
<div class="container">
<span class="hbar"></span>
<input type="text" placeholder="Search..." id="query" onkeypress="return runScript(event)" >
<div class="search"></div>
<div class="results">
<div class="rlist">
<h4 id="status">Welcome to the SQUIZ book search interface.</h4>
<ul id="list">
</ul>
<small>Designed by <a class="alink" href="https://nuchwezi.com" target="_blank">NuChwezi</a></small>
package com.nuchwezi.nulabs;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import com.nuchwezi.xlitedatabase.DBAdapter; // <-- get the DAL