Skip to content

Instantly share code, notes, and snippets.

View soloincc's full-sized avatar
🏠
Working from home

Wangoru Kihara soloincc

🏠
Working from home
View GitHub Profile
<section class="section bg-gray" id="section-vtab">
<div class="container">
<header class="section-header">
<small>Content switcher</small>
<h2>Vertical Tabs</h2>
<hr>
<p class="lead">A single content area with multiple panels, each associated with a header in a list.</p>
</header>
@soloincc
soloincc / custom_workflow.sh
Created December 1, 2021 10:06
A bash script to ran a nextflow pipeline using singularity containers
#!/usr/bin/bash
echo "Clear the previous installs"
rm -rf nextflow* .nextflow* jdk-8u281-linux-x64.tar.gz* jdk1.8.0_281 pettest_latest.sif fastp* work
echo "Installing java...\n"
wget --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://javadl.oracle.com/webapps/download/GetFile/1.8.0_281-b09/89d678f2be164786b292527658ca1605/linux-i586/jdk-8u281-linux-x64.tar.gz
tar xzvf jdk-8u281-linux-x64.tar.gz
export JAVA_HOME="$(pwd)/jdk1.8.0_281"
# save the java path as nxf_java_home too so that nextflow can find the java
Containers: 6
Running: 4
Paused: 0
Stopped: 2
Images: 112
Server Version: 18.06.1-ce
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
CATALINA_HOME = /opt/apache-tomcat-8.5.23
context.xml NOT FOUND, proceeding with default config
shiro.ini NOT FOUND, proceeding with default config
spring.properties NOT FOUND, proceeding with default config
setenv.sh NOT FOUND, proceeding with default config
coda.sh NOT FOUND, proceeding with default config
isis.properties and/or viewer_wicket.properties and/or logging.properties NOT FOUND, proceeding with default config
Starting Catalina:
06-Sep-2018 04:58:13.351 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.23
06-Sep-2018 04:58:13.361 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Sep 28 2017 10:30:11 UTC
# Move to the adgg folder
cp /opt/adgg_v2
# Update the repos
git remote update
git merge origin/master
cd /opt/adggv2/odk_dashboard
git remote update
git merge origin/master
As received:
Funny how things go round.
The founder of Tuskys used to work for Nakumat in the 80's when it was Nakuru Matreses as a driver.
As a retirement reward for long, loyal good service, the Nakuru mattresses guys helped him to start 'Rongai Self Service' in a remote village..
The old man and his boys worked so hard and out of that set up Tusker Matreses in down town Nairobi which is today's Tuskys.
Look who is running to who for help many years down the road:
@soloincc
soloincc / nginx-onadata
Created December 24, 2016 06:57
During the installation of classic ona, the nginx config file is missing. Modify and edit appropriately before using it.
upstream ona-venv {
server 127.0.0.1:8000;
}
server {
# Running port
listen 80;
client_max_body_size 50m;
@soloincc
soloincc / celeryd-ona
Created December 24, 2016 05:40
During the installation of classic ona, this file celeryd-ona is missing. Modify and edit appropriately before using it.
# Name of nodes to start, here we have a single node
CELERYD_NODES="w1"
# Where to chdir at start.
CELERYD_CHDIR="/opt/onadata-venv"
# Python interpreter from environment, if using virtualenv
ENV_PYTHON="/opt/onadata-venv/bin/python"
# How to call "manage.py celeryd_multi"
@soloincc
soloincc / onadata.conf
Last active December 24, 2016 05:26
During the installation of classic ona, this file onadata.conf is missing. Modify and edit appropriately before using it
#!upstart
description "onadata upstart script"
start on (local-filesystems and runlevel [2345])
stop on runlevel [!2345]
respawn
script
exec sudo /usr/local/bin/uwsgi --ini /opt/onadata/uwsgi.ini --env DJANGO_SETTINGS_MODULE=onadata.settings.common
@soloincc
soloincc / badili_erpnext_triggers.sql
Last active October 6, 2016 02:57
Triggers for ensuring that ERPNext documents have todays date as the transaction date
-- For the Request for Quotation
create trigger rfq_oninsert before insert on `tabRequest for Quotation` for each row set NEW.transaction_date = curdate();
-- Supplier Quotation
create trigger sqtn_oninsert before insert on `tabSupplier Quotation` for each row set NEW.transaction_date = curdate();
-- Customer Quotation
create trigger qtn_oninsert before insert on `tabQuotation` for each row set NEW.transaction_date = curdate();
-- Sales Order