Skip to content

Instantly share code, notes, and snippets.

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

Charles Njau CharlesNjau

🏠
Working from home
  • Tanzania,Dar es salaam
View GitHub Profile
@CharlesNjau
CharlesNjau / .gitlab-ci.typescript-example.yml
Created February 7, 2023 18:32 — forked from mtimbs/.gitlab-ci.typescript-example.yml
Example Gitlab CI config for a typescript serverless proeject
image: docker:latest
cache:
paths:
- node_modules/
stages:
- build
- precheck
- test
@CharlesNjau
CharlesNjau / InstallingSwift.md
Created April 3, 2022 18:14 — forked from Jswizzy/InstallingSwift.md
Swift Install Instruction 20.04

Installing Swift on Ubuntu 20.04

1. Install Depencies

“clang”[ˈklæŋ] is the compiler based on LLVM for C, C++, Objective-C, and Objective-C++. clang is needed to install in order to Swift. Run the following code in Ubuntu terminal.

Before installing swift “libpython2.7” and “libpython2.7-dev” are needed to get Swift running. Run the following code.

@CharlesNjau
CharlesNjau / AdbCommands
Last active January 4, 2021 10:27 — forked from Pulimet/AdbCommands
Adb (Android ADB Commands )useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@CharlesNjau
CharlesNjau / AdbCommands
Created November 24, 2020 13:28 — forked from ernestkamara/AdbCommands
Adb useful commands list
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
== Shell
@CharlesNjau
CharlesNjau / pm2.txt
Created June 25, 2020 13:48 — forked from anmolnagpal/pm2.txt
Pm2 CheatSheet
Usage
Hello world:
$ pm2 start app.js
Raw Examples
# Fork mode
$ pm2 start app.js --name my-api # Name process
@CharlesNjau
CharlesNjau / pm2.txt
Created June 25, 2020 13:48 — forked from anmolnagpal/pm2.txt
Pm2 CheatSheet
Usage
Hello world:
$ pm2 start app.js
Raw Examples
# Fork mode
$ pm2 start app.js --name my-api # Name process

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

@CharlesNjau
CharlesNjau / cUrl_proxy.php
Created August 24, 2019 16:19 — forked from greenido/cUrl_proxy.php
php script that act as a proxy server by using good/old simple cUrl (GET and POST)
<?php
//
// basic basic proxy
//
function postToString() {
$query_string = "";
if ($_POST) {
$kv = array();
foreach ($_POST as $key => $value) {
@CharlesNjau
CharlesNjau / Instructions.sh
Created April 12, 2019 12:45 — forked from GhazanfarMir/Instructions.sh
Install PHP7.2 NGINX and PHP7.2-FPM on Ubuntu 16.04
########## Install NGINX ##############
# Install software-properties-common package to give us add-apt-repository package
sudo apt-get install -y software-properties-common
# Install latest nginx version from community maintained ppa
sudo add-apt-repository ppa:nginx/stable
# Update packages after adding ppa