Skip to content

Instantly share code, notes, and snippets.

View RedCarrottt's full-sized avatar
😀

Gyeonghwan Hong RedCarrottt

😀
View GitHub Profile
@RedCarrottt
RedCarrottt / c.vim
Created October 1, 2021 09:07 — forked from mxwell/c.vim
Basic config for Linux Kernel C Style
set noexpandtab " use tabs, not spaces
set tabstop=8 " tabstops of 8
set shiftwidth=8 " indents of 8
set textwidth=78 " screen in 80 columns wide, wrap at 78
set autoindent smartindent " turn on auto/smart indenting
set smarttab " make <tab> and <backspace> smarter
set backspace=eol,start,indent " allow backspacing over indent, eol, & start
filetype plugin indent on
name: "SqueezeNext-1.0-2.3-v5"
engine: "MKL2017"
name: "SqueezeNet 1.1"
layer {
name: "data"
type: "Data"
top: "data"
top: "label"
include {
@RedCarrottt
RedCarrottt / SqueezeNext-1.0-23.prototxt
Last active July 6, 2018 04:06
SqueezeNext-1.0-23 Caffe Model
name: "SqueezeNext-1.0-23"
engine: "MKL2017"
layer {
name: "data"
type: "Data"
top: "data"
top: "label"
include {
phase: TRAIN
}
@RedCarrottt
RedCarrottt / change-ubuntu-mirror-to-kakao.sh
Created April 10, 2018 08:07
Change Ubuntu mirror server to kakao.
#!/bin/sh
# Original code: https://gist.github.com/lesstif/8185f143ba7b8881e767900b1c8e98ad
SL=/etc/apt/sources.list
cp ${SL} ${SL}.org
##
sed -e 's/\(us.\)\?archive.ubuntu.com/mirror.kakao.com/g' -e 's/security.ubuntu.com/mirror.kakao.com/g' < ${SL}.org > ${SL}
@RedCarrottt
RedCarrottt / uri-parser.cpp
Created March 30, 2017 11:34
URI Parser in C++
/* Original code: http://stackoverflow.com/questions/2616011/easy-way-to-parse-a-url-in-c-cross-platform */
#include <string>
struct url {
public:
url(const std::string& url_s) {
this->parse(url_s);
}
std::string protocol_, host_, path_, query_;
private:
void parse(const std::string& url_s);
#!/bin/bash
# Performance & Power Monitor Script for Odroid-XU3
# Author: Gyeonghwan Hong<[email protected]>
# Original Author: Dongig Shin<[email protected]>
GOVN_COLO="\033[31m"
WARN_COLO="\033[31;47m"
INFO_COLO="\033[36m"
INIT_COLO="\033[0m"
@RedCarrottt
RedCarrottt / hash.c
Last active February 25, 2016 05:49 — forked from tonious/hash.c
/*
* list_head-like hash table implementation
* Author: Gyeonghwan Hong <[email protected]>
* Original Author: Tony Thompson <[email protected]>
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <limits.h>