Skip to content

Instantly share code, notes, and snippets.

View nuriyevn's full-sized avatar
😎

nuriyevn

😎
View GitHub Profile
@nuriyevn
nuriyevn / hash.c
Created November 2, 2016 17:38 — forked from tonious/hash.c
A quick hashtable implementation in c.
#define _XOPEN_SOURCE 500 /* Enable certain library functions (strdup) on linux. See feature_test_macros(7) */
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
#include <string.h>
struct entry_s {
char *key;
char *value;
@nuriyevn
nuriyevn / convert.sh
Last active October 29, 2016 13:07 — forked from akost/convert.sh
Bash script for recursive file convertion windows-1251 --> utf-8
#!/bin/bash
# Recursive file convertion windows-1251 --> utf-8
# Place this file in the root of your site, add execute permission and run
# Converts *.php, *.html, *.css, *.js files.
# To add file type by extension, e.g. *.cgi, add '-o -name "*.cgi"' to the find command
find ./ -name "*.sql" -o -name "*.vbs" -type f |
while read file
do