Skip to content

Instantly share code, notes, and snippets.

View noktoborus's full-sized avatar
😱
I may be slow to respond.

Nikolay Minaev noktoborus

😱
I may be slow to respond.
View GitHub Profile
#!/bin/sh
# vim: ft=sh ff=unix fenc=utf-8
# file: mivue_to_mapillary.sh
(
(
echo gpsbabel \\
for nmea in `echo *.NMEA`;
do
name=$(echo $nmea | sed 's/.NMEA//')
@noktoborus
noktoborus / tv.c
Last active September 30, 2016 11:24
/* vim: ft=c ff=unix fenc=utf-8
* file: tv.c
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
#include <assert.h>
/* vim: ft=c ff=unix fenc=utf-8
* file: s.c
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
#include <regex.h>
#!/bin/sh
# vim: ft=sh ff=unix fenc=utf-8
# file: /httpsh.sh
if [ x"$X_BEGIN" != x"yes" ];
then
export X_BEGIN=yes
timeout 5 $0 $@
exit $?
fi
/* vim: ft=c ff=unix fenc=utf-8
* file: main.c
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
/* vim: syntax=pgsql
*/
DROP TABLE IF EXISTS x;
CREATE TABLE IF NOT EXISTS x (
n integer NOT NULL,
"offset" integer NOT NULL,
"size" integer NOT NULL
);
/* vim: ft=c ff=unix fenc=utf-8
* file: libev-curl.c
* пример использования curl multi и libev
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
#!/bin/sh
usage()
{
echo "Usage:"
echo " dump <file|image|text> [file] [language]"
echo " dump [file]"
}
_type="$1"
@noktoborus
noktoborus / rfkill-event
Created September 20, 2011 10:33
/etc/init.d/rfkill-event for gentoo, script execute files from /etc/runlevels/soft-${rftype (hci|phy|uwb|...} when rfkill event set to disable or enable radio
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
opts="run"
script="/etc/init.d/rfkill-event"
pidfile="/var/run/rfkill-event.pid"
# op=2 - status change