Skip to content

Instantly share code, notes, and snippets.

View GabeOchieng's full-sized avatar

GabeOchieng GabeOchieng

  • Nairobi, Kenya
View GitHub Profile
@GabeOchieng
GabeOchieng / .gitlab-ci.yml
Created March 29, 2021 15:27 — forked from Mazuh/.gitlab-ci.yml
Example of gitlab CI/CD for a create-react-app application on Amazon S3 Bucket.
image: nikolaik/python-nodejs:latest
stages:
- install
- test
- deploy
prodInstall:
stage: install
script:
Commands
------------
1. Build Docker Image
docker build -t test .
2. Run container /w image
docker run -d --publish 8888:5000 test
3. Login to ECR
aws ecr get-login-password --region REGIONHERE!!!! | docker login --username AWS --password-stdin ACCOUNTIDHERE!!!!.dkr.ecr.REGIONHERE!!!.amazonaws.com
@GabeOchieng
GabeOchieng / HNDark.css
Created March 15, 2021 13:41 — forked from adithyabsk/HNDark.css
A modified version of a HN Dark Theme that works with refined-hacker-news
/* Placeholder: /*[[upvotecolor]]*/
/* Replace with #6F6F6F for gray upvote arrow. */
/* Replace with #FF6600 for orange upvote arrow. */
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("news.ycombinator.com") {
/* main body styles */
body {
background-color: #262626;
}
@GabeOchieng
GabeOchieng / parachute.py
Created March 15, 2021 13:41 — forked from adithyabsk/parachute.py
NASA Perseverance Parachute Code
"""Python Script to solve the perseverence parachute
code
Output:
DARE¿¿¿¿
MIGHTY¿¿
THINGS¿¿
34°11'58'' N 14°118'10'' W
"""
@GabeOchieng
GabeOchieng / install-gitlab-runner.sh
Created March 9, 2021 16:00 — forked from jniltinho/install-gitlab-runner.sh
Install GitLab Runner on Ubuntu 16.04
#!/bin/bash
## Install GitLab Runner on Ubuntu 16.04
## https://docs.gitlab.com/runner/install/linux-manually.html
## Config do Runner /etc/gitlab-runner/config.toml
## Para registrar e usar uma CA auto assinada
## gitlab-runner register --tls-ca-file="/home/gitlab-runner/data/certs/ca.crt"
## Install Docker
apt-get update
apt-get upgrade
##https://about.gitlab.com/downloads/#centos6
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
yum install gitlab-ce
gitlab-ctl reconfigure
=====
@GabeOchieng
GabeOchieng / coinswap-design.md
Created May 28, 2020 16:28 — forked from chris-belcher/coinswap-design.md
Design for a CoinSwap Implementation for Massively Improving Bitcoin Privacy and Fungibility

Design for a CoinSwap Implementation for Massively Improving Bitcoin Privacy and Fungibility

Abstract

Imagine a future where a user Alice has bitcoins and wants to send them with maximal privacy, so she creates a special kind of transaction. For anyone looking at the blockchain her transaction appears completely normal with her coins seemingly going from address A to address B. But in reality her coins end up in address Z which is entirely unconnected to either A or B.

Now imagine another user, Carol, who isn't too bothered by privacy and sends her bitcoin using a regular wallet which exists today. But because Carol's transaction looks exactly the same as Alice's, anybody analyzing the blockchain must now deal with the possibility that Carol's transaction actually sent her coins to a totally unconnected address. So Carol's privacy is improved even though she didn't change her behaviour, and perhaps had never even heard of this software.

In a world where advertisers, social media and other companies

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.