Skip to content

Instantly share code, notes, and snippets.

@hanepjiv
hanepjiv / config.toml
Created September 28, 2025 01:25
.cargo/config.toml
[build]
rustflags = [ "--remap-path-prefix", "/home/hanepjiv=~",
"--remap-path-prefix", "/media/hanepjiv=~",
]
[target.i686-unknown-linux-gnu]
ar = "i686-pc-linux-gnu-clang"
linker = "i686-pc-linux-gnu-clang"
[target.x86_64-unknown-linux-gnu]
-- -*- mode:haskell;coding:utf-8-unix; -*-
:set +s
:set +t
:set -XDeriveDataTypeable
:set -XScopedTypeVariables
:set -XOverloadedStrings
:set -XGADTs
:set -XArrows
#!/bin/env python3
# -*- mode:python; coding:utf-8-unix; -*-
'''
rust_forbid.py
Copyright 2018 hanepjiv
@author hanepjiv <hanepjiv@gmail.com>
@copyright The MIT License (MIT)
#!/bin/env bash
# -*-mode:sh;coding:utf-8-unix-*-
##
## @file rust_allchecks.sh
## @brief rust_allchecks.sh
##
## # Rust All Checks Script
##
## Comprehensive checks for Rust projects
@hanepjiv
hanepjiv / rungibo.sh
Last active October 8, 2025 23:40
rungibo.sh
#! /bin/env sh
# -*- coding:utf-8-unix; -*-
GIBO=gibo
${GIBO} update || exit ${?}
${GIBO} dump \
Archives \
Backup \
@hanepjiv
hanepjiv / .hgignore
Last active October 6, 2023 17:45
.hgignore
syntax: regexp
# =============================================================================
# SCM
# -----------------------------------------------------------------------------
^(.*/)?\.svn/.*$
^(.*/)?\.git/.*$
^(.*/)?\.bzr/.*$
# =============================================================================
# emacs
# -----------------------------------------------------------------------------
// -*- mode:rust; coding:utf-8-unix; -*-
//! bincode.rs
// Copyright 2017 hanepjiv
// @author hanepjiv <hanepjiv@gmail.com>
// @copyright The MIT License (MIT) / Apache License Version 2.0
// @since 2018/01/09
// @date 2018/01/09
@hanepjiv
hanepjiv / checkuse.py
Last active December 24, 2017 06:13
Checks for Gentoo Linux USE flags.
#! /bin/env python3
# -*-mode:python;coding:utf-8;-*-
"""
checkuse.py
@author hanepjiv <hanepjiv@gmail.com>
@since 2015/04/06
@date 2017/12/07
"""
@hanepjiv
hanepjiv / make10.py
Last active February 25, 2017 02:30
#!/bin/env python3.4
# -*- mode:python; coding:utf-8; -*-
"""
make10.py
@author hanepjiv <hanepjiv@gmail.com>
@since 2015/06/28
@date 2015/06/28
"""
# coding: utf-8
# http://hanepjiv.blogspot.jp/2014/11/python-indentchoice.html
from functools import wraps
# ================================================
def choice(a_Func):
# --------------------------------------------------------------------------
def loop(*args):
if len(args) is 0: