Skip to content

Instantly share code, notes, and snippets.

View sevki's full-sized avatar
🎸
noodling

Sevki sevki

🎸
noodling
View GitHub Profile
@sevki
sevki / opcsamplecode.cs
Last active October 7, 2015 15:18
Opc Sample code
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using OPCAutomation;
namespace OPC
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <netinet/in.h>
#include <errno.h>
#define SERVER_PORT 12345
/* this example shows how named pipes may be used */
#define _OPEN_SYS
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/wait.h>
/* *
* Sample use of mkfifo() *
* */

So yesterday brought the sad news that Google Reader is being killed off. C’est la vie it seems, given it was a Google product. In my search for an alternative I rediscovered Fever and decided to see if I could run it up for free on Heroku. Onwards...

Personally I think the news about Reeder is quite sad, as I would quite happily have paid for it as a service. In fact I like RSS so much that I actually shelled out the $30 for Fever when it first came out years ago (I was also pretty massive Shaun Inman fanboy if I’m being honest).

I ended up setting Fever aside because screw having to manage self-hosting for PHP and MySQL, right?

If you’re new to Fever I recommend going and checking it out, but also reading the post in response to the Google Reader announcement by Fevers author, Shaun, for a good list of what Fever is and isn’t.

Enough jibba-jabba!

message KeyValue {
required string key =1;
required bytes value = 2;
}
message OpParamMessage {
required string msg =1;
repeated KeyValue param = 2;
}
message OpException {
required string type = 1;
#include "opbeat-c.h"
#define _FIFO_FILE "/tmp/opbeat"
#define _fifo_open() op_beat_err_s = fopen(_FIFO_FILE, "w")
#define _fifo_close() fclose(op_beat_err_s)
void op_b_err(const char *msg, int level, const char *file, int line)
{
OpFrame **frames;
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:23.0) Gecko/20130402 Firefox/23.0
cd ~
sudo apt-get update
sudo apt-get install openjdk-7-jre-headless -y
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below
# NEW WAY / EASY WAY
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.6.deb
sudo dpkg -i elasticsearch-0.20.6.deb
@sevki
sevki / e.sh
Created November 1, 2013 19:02
#!/bin/sh
#
# Quick shortcut to an editor.
#
# This means that as I travel back and forth between editors, hey, I don't have
# to re-learn any arcane commands. Neat.
#
# USAGE:
#
# $ e

Keybase proof

I hereby claim:

  • I am sevki on github.
  • I am sevki (https://keybase.io/sevki) on keybase.
  • I have the public key with fingerprint C2E4 D8C0 FEC7 552C BCAF  5E02 6CBF 51EA 7B7D F91D

To claim this, I am signing this object: