Skip to content

Instantly share code, notes, and snippets.

View gernest's full-sized avatar

Geofrey Ernest gernest

  • Arusha, Tanzania
  • 14:30 (UTC +03:00)
View GitHub Profile
/* This file is part of VoltDB.
* Copyright (C) 2008-2018 VoltDB Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:

Keybase proof

I hereby claim:

  • I am gernest on github.
  • I am gernest (https://keybase.io/gernest) on keybase.
  • I have a public key whose fingerprint is 24DA 1EF2 C24E 7593 74E4 DB5A 8EF1 31B6 33C2 4F75

To claim this, I am signing this object:

func grid1() *grid.Grid {
	return &grid.Grid{
		Cells: []*grid.Cell{
			{
				Mode:     grid.Default,
				Size:     1,
				Children: cellChild(vecty.Text("1")),
			},
			{
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)

Find and replace occurance of a string ina all files in a directory

$ find ./wuxia/  -type f -exec sed -i -e 's/package wuxia/package gen/g' {}  \;
#!/bin/sh
FILENAME=/home/fri/fessbox/backend-node/log/debug.log
SUFFIX=`date '+%Y.%m.%d-%H'`
if [ -s $FILENAME-$SUFFIX ]
then
sms=`/usr/bin/grep -cF "sms_in" $FILENAME-$SUFFIX`
calls=`/usr/bin/grep -cF "from ring to master" $FILENAME-$SUFFIX`
@gernest
gernest / ssh.-copy-id.md
Last active August 19, 2016 12:04
Copy public ssh keys to remote machines
ssh-copy-id user@hostname.example.com

Keybase proof

I hereby claim:

  • I am gernest on github.
  • I am gernest (https://keybase.io/gernest) on keybase.
  • I have a public key whose fingerprint is 0275 1D5D 582C 9615 758C 7F84 0D2B 9AA3 E49E AF69

To claim this, I am signing this object:

@gernest
gernest / psql.sql
Created December 23, 2014 19:34
A gammu-smsd database schema
--
-- Database: "smsd"
--
-- CREATE USER "smsd" WITH NOCREATEDB NOCREATEUSER;
-- CREATE DATABASE "smsd" WITH OWNER = "smsd" ENCODING = 'UTF8';
-- \connect "smsd" "smsd"
-- COMMENT ON DATABASE "smsd" IS 'Gammu SMSD Database';
-- --------------------------------------------------------
--
-- Function declaration for updating timestamps
// Breakpoints
$breakpoint-to-ems: true;
$print-media: 'print';
$hidpi: min-resolution 143dppx;
// For use with max-width only:
//// +breakpoint(max-width: $tab-l)
$phone-p: 319px;
$phone-l: 479px;
$tab-p: 639px;