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
@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;
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:
# 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
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
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
@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
<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>