Skip to content

Instantly share code, notes, and snippets.

View isage's full-sized avatar

Epifanov Ivan isage

View GitHub Profile
@isage
isage / taihen.hpp
Last active September 3, 2022 08:47
TAI_CONTINUE for C++
#ifndef _TAIHEN_HPP_
#define _TAIHEN_HPP_
#include <taihen.h>
template<typename type, typename... Args> type tai_continue(tai_hook_ref_t hook, Args... args) {
struct _tai_hook_user *cur, *next;
cur = (struct _tai_hook_user *)(hook);
next = (struct _tai_hook_user *)cur->next;
return (next == NULL) ?
@isage
isage / gist:509d99cf4def36014f5c
Created May 30, 2015 02:24
openresty-redis-example
user nginx;
worker_processes 2;
error_log logs/error.log;
pid logs/nginx.pid;
events {
worker_connections 1024;
}
@isage
isage / ossfaq.md
Last active December 13, 2015 18:18 — forked from archydragon/ossfaq.md

"Implement a feature XXXX, otherwise I'll use another project."

  1. No.

  2. Feel free to.

"Without that functionality this project is useless."

It's your personal opinion.

@isage
isage / i3shot.pl
Created November 21, 2012 18:49 — forked from archydragon/i3shot.pl
Take screenshot of all active i3 workspaces
#!/usr/bin/env perl
use strict;
use warnings;
use 5.010;
use JSON qw( decode_json ); # isn't default module, must be installed via CPAN or your system package manager
use Time::HiRes qw ( usleep ); # for simple delays
my $outputfile = shift || die "use $0 outputfile.png"; # getting output filename from command-line params