Skip to content

Instantly share code, notes, and snippets.

View darkodemic's full-sized avatar
🏹
Building something that will never be finished.

Darko Demić darkodemic

🏹
Building something that will never be finished.
View GitHub Profile
@darkodemic
darkodemic / disable_zlib.output_compression
Created December 13, 2016 12:13 — forked from loorlab/disable_zlib.output_compression
Disable zlib.output_compression on WordPress : Notice: ob_end_flush(): failed to send buffer of zlib output compression (1) in /path/wp-includes/functions.php on line 3282 via https://core.trac.wordpress.org/ticket/18525
SOLUTIONS I have came across so far:
======================== SOLUTION 1 ====================
In plugins (or somewhere) you probably have this code:
ini_set('zlib.output_compression', '1');
so, I replaced that code with
@darkodemic
darkodemic / tmux-cheatsheet.markdown
Last active August 29, 2015 14:26 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@darkodemic
darkodemic / ufgets.c
Last active August 29, 2015 14:23 — forked from btmills/ufgets.c
#include <stdio.h>
#include <stdlib.h>
/*
* Similar to fgets(), but handles automatic reallocation of the buffer.
* Only parameter is the input stream.
* Return value is a string. Don't forget to free it.
*/
char* ufgets(FILE* stream)
{
@darkodemic
darkodemic / licni-podatci.c
Last active August 29, 2015 14:22 — forked from anonymous/fnh
licni podatci - FIXME
#include <stdio.h>
#include <stdlib.h>
#define MAX 1000
#define K 30
// Structure
struct podaci{
char name[];
char surname[];
@darkodemic
darkodemic / struct-io.c
Last active August 29, 2015 14:22 — forked from anonymous/gist:ed32a0a5b165af326429
Pisanje i citanje u struct
#include <stdio.h>
#include <stdlib.h>
struct imenik{
char ime[30];
int brtel;
float prosek[10];
};
float average(int ocene[30], int f){
int a;
float y=0,x=0;