Skip to content

Instantly share code, notes, and snippets.

View enyachoke's full-sized avatar

Emmanuel Nyachoke enyachoke

View GitHub Profile
@enyachoke
enyachoke / aes.go
Created January 15, 2019 06:51 — forked from tscholl2/aes.go
simple AES encryption/decryption example with PBKDF2 key derivation in Go, Javascript, and Python
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"crypto/sha256"
"encoding/hex"
"fmt"
"strings"
@enyachoke
enyachoke / buildout.cfg
Created June 24, 2021 17:00
SENAITE initializer
############################################
#
# Buildout Configuration File for Plone
# -------------------------------------
#
# ALWAYS back up all Plone/Zope data and components
# before changing configuration.
#
# Running "bin/buildout" will update your installation,
# installing missing components as necessary.
47BE3E40B81EA799C6E707160D700F60A05E7213BD3751B47DA645DE4A7F101B comodoca.com 5cc55b9e18624
@enyachoke
enyachoke / Launch
Created June 1, 2018 15:00 — forked from MetroWind/Launch
KSP kOS launch script
CLEARSCREEN.
//This is our countdown loop, which cycles from 10 to 0
PRINT "Counting down:".
FROM {local countdown is 10.} UNTIL countdown = 0 STEP {SET countdown to countdown - 1.} DO
{
PRINT "..." + countdown.
WAIT 1. // pauses the script here for 1 second.
}
@enyachoke
enyachoke / Launch
Created June 1, 2018 15:00 — forked from MetroWind/Launch
KSP kOS launch script
CLEARSCREEN.
//This is our countdown loop, which cycles from 10 to 0
PRINT "Counting down:".
FROM {local countdown is 10.} UNTIL countdown = 0 STEP {SET countdown to countdown - 1.} DO
{
PRINT "..." + countdown.
WAIT 1. // pauses the script here for 1 second.
}
@enyachoke
enyachoke / crouton.init
Last active April 18, 2016 11:15 — forked from DennisLfromGA/crouton.init
An external control file for adjusting four parameters in 'crouton.conf' to invoke a crouton chroot.
##############################################################
## Place a '#' in the 1st column before the variable if you ##
#+ don't want to change it from the crouton.conf defaults. ##
##############################################################
###
##########################################################################
##* crouton.conf defaults are: ##
# DELAY=10 # delay desired number of seconds before starting ##
# CHROOT=precise # enter desired chroot to start ##
@enyachoke
enyachoke / crouton.conf
Last active April 18, 2016 11:14 — forked from DennisLfromGA/crouton.conf
A ChromeOS upstart script to kick-off a crouton chroot desktop environment.
# Copyright (c) 2015 The crouton Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
## Filename: /etc/init/crouton.conf
## crouton chroot - Start session
##
## This will start a (crouton) chroot Desktop Environment session
= simple_form_for @post, html: { class: 'form-horizontal' }, defaults: { wrapper: :horizontal_form } do |f|
= f.error_notification
.form-inputs
= f.input :first_name
= f.input :last_name
= f.input :email
.form-actions
= f.button :submit
@enyachoke
enyachoke / pre-receive
Created November 13, 2013 20:43
This is a git pre-recieve hook that compiles a slug using heroku buildpacks and optionally uploads it to s3 and generate a pre-signed url for downloading it. This script assumes you have s3cmd installed and configured.
#!/bin/bash
while read oldrev newrev refname
do
# Only build the master branch.
if [[ $refname = "refs/heads/master" ]] ; then
echo "building------> $newrev ... "
#We get the archive and pass it to the slug builder
slug_id=newapp
git archive $newrev | docker run -i -name $newrev -a stdin -a stdout -a stderr flynn/slugbuilder - > $newrev.tgz
# s3cmd put $newrev.tgz s3://pyxiscloud/$newrev.tgz
[
%% Riak CS configuration
{riak_cs, [
%% == Basic Configuration ==
%% Riak CS http/https port and IP address to listen at
%% for object storage activity
{cs_ip, "127.0.0.1"},
{cs_port, 8080 } ,