Skip to content

Instantly share code, notes, and snippets.

View masatake's full-sized avatar

Masatake YAMATO masatake

View GitHub Profile
@HeLiBloks
HeLiBloks / nagios.ctags
Created December 26, 2020 21:56
nagios definitions for the ctags command line application
# nagios definitions for the universal ctags command line application
# Copyright © 2018 Henrik Lindgren
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@romainl
romainl / ctagsd
Last active March 14, 2024 14:05
Run ctags upon file change/addition/deletion in a Git repository
#!/usr/bin/env sh
# Requirements:
# git: https://git-scm.com/downloads
# entr: http://eradman.com/entrproject/
# ctags: http://ctags.sourceforge.net/ (Exuberant Ctags) or https://ctags.io/ (Universal Ctags)
# Usage:
# $ cd my_project
# $ ctagsd
@mcastelino
mcastelino / VFIO_nested.md
Last active February 5, 2024 09:34
QEMU VFIO in Nested VM vIOMMU

How to use VFIO to assign a device to nested VM

  • Here the vfio-pci device is passed in into the L1 VM
  • The L1 VM is setup with kernel_irqchip=split
  • The L0 exposes a virtual IOMMU to the L1 VM
qemu-system-x86_64 \
    -machine q35,accel=kvm,kernel_irqchip=split \
    -enable-kvm \
@bureado
bureado / packaging-resources.md
Created June 21, 2018 00:04
Post-modern Linux packaging: additional reading

Post-modern Linux packaging: additional reading

Summary

This document compiles 2018 coverage around post-modern packaging technologies for Linux, including packaging formats like Snaps and Flatpaks, systems like Nix and Guix and full distros such as Atomic or Clear Linux.

This curation and commentary are current as of 18 June 2018. The curation was prepared by José Miguel Parrella (@bureado) as part of his session at Open Source Summit Japan: Package Management and Distribution in a Cloud World.

We compile these resources in an effort to provide individual developers and organizations with current coverage on the state-of-the-art and motivations of the current post-modern packaging landscape with the intention to increase readiness in experimenting with, evaluating and potentially adopting said technologies.

Hi,
I am a developer of @universal-ctags.
I would like to incorporate your <LANG> parser to universal-ctags.
universal-ctag is distributed under term of
GNU General Public License version 2 or (at your option) any later version.
If you allow me to incorporate your parser into universal-ctags, could you add
I would like you to add following copyright notice at the head of your .ctags:
@DArcMattr
DArcMattr / .ctags
Last active September 14, 2019 18:24
Universal Ctags configuration for WordPress action & filter hooks. Adapted from work done by @dsawardekar
--regex-PHP=/^do_action(_deprecated|_ref_array)?\s*\(\s*['"]([a-z_]+)['"]\s*.*$/4c710n_\1/A,action/
--regex-PHP=/^add_action\s*\(\s*['"]([a-z_]+)['"]\s*.*$/4l1573n3r_\1/L,alistener/
--regex-PHP=/^apply_filters(_deprecated|_ref_array)?\s*\(\s*['"]([a-z_]+)['"]\s*.*$/ph1l73r_\1/R,filter/
--regex-PHP=/^add_filter\s*\(\s*['"]([a-z_]+)['"]\s*.*$/phl1573n3r_\1/E,flistener/
@libinvarghese
libinvarghese / .gitconfig
Last active November 2, 2021 13:14
Search in all Stash for a pattern
# Search in all Stash for a pattern
# Install: Copy the below into the .gitconfig file
# simple call
# git stash-search pattern_to_search
[alias]
stash-search = "!f() { git show $(git stash list | cut -d\":\" -f 1) | grep \"$@\" ; }; f"
# MIT License
@mono0926
mono0926 / commit_message_example.md
Last active March 29, 2024 03:40
[転載] gitにおけるコミットログ/メッセージ例文集100

Huge Page まとめ

この文書では、Linux カーネルの機能を中心に、 huge page に関連するメモ リ管理の機能についてまとめる。概観とキーワードの把握、およびリファレン スの提供を目的である。特に non-trasparent な huge page と transparent huge page の違いとそれらの境界を把握することをひとつの主眼としている。 そのため、詳細さと網羅性はスコープ外である。

前置き、または免責

@h14i
h14i / dscanner
Last active December 16, 2015 01:45
Dscanner driver for universal-ctags
#!/bin/sh
# ~/.ctags.d/drivers
() {
COMMAND_NOT_FOUND=127
if ! type dscanner; then
exit ${COMMAND_NOT_FOUND}
fi
} > /dev/null 2>&1