Skip to content

Instantly share code, notes, and snippets.

View masatake's full-sized avatar

Masatake YAMATO masatake

View GitHub Profile
[yamato@dev64]~% podman run -ti --rm ubuntu:20.04 /bin/bash
root@24332847c125:/# add-apt-repository ppa:ubuntu-toolchain-r/test
bash: add-apt-repository: command not found
root@24332847c125:/# apt-get install software-properties-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package software-properties-common
root@24332847c125:/# apt update
Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
//po4a: entry man manual
////
Copyright 2021 Red Hat, Inc.
This file may be copied under the terms of the GNU Public License.
////
= lsfd(1)
:doctype: manpage
:man manual: User Commands
:man source: util-linux {release-version}
@masatake
masatake / gist:590f0cc44a69786aca7cb83dd0fb1afb
Created January 24, 2021 01:52
Building R-support-vector-and-nameattr branch
[jet@note]/tmp% cd /tmp
cd /tmp
[jet@note]/tmp% git clone https://github.com/universal-ctags/ctags.git
git clone https://github.com/universal-ctags/ctags.git
Cloning into 'ctags'...
remote: Enumerating objects: 51541, done.
remote: Total 51541 (delta 0), reused 0 (delta 0), pack-reused 51541
Receiving objects: 100% (51541/51541), 15.94 MiB | 7.77 MiB/s, done.
Resolving deltas: 100% (32840/32840), done.
@masatake
masatake / es.el
Created April 26, 2020 09:00
es.el
;;
;; Copyright (c) 2009 Masatake YAMATO
;;
;; Permission is hereby granted, free of charge, to any person obtaining a copy
;; of this software and associated documentation files (the "Software"), to deal
;; in the Software without restriction, including without limitation the rights
;; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
;; copies of the Software, and to permit persons to whom the Software is
;; furnished to do so, subject to the following conditions:
;;
repoquery -q -a --show-duplicates --queryformat "%{name}-%{version}-%{release} ${epoch}\n" | sort -u
declare -A MAP; while read nvr e; do MAP["$nvr"]="$e"; done < <(repoquery -q -a --show-duplicates --queryformat "%{name│·······························································································
}-%{version}-%{release} %{epoch}" | sort -u)
diff --git a/binutils/objdump.c b/binutils/objdump.c
index 9c3bce8b75..ce6bf7b920 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -118,6 +118,7 @@ static const char *prefix; /* --prefix */
static int prefix_strip; /* --prefix-strip */
static size_t prefix_length;
static bfd_boolean unwind_inlines; /* --inlines. */
+static const char *label;
@masatake
masatake / pem-op
Last active October 20, 2018 10:06
pem-op, splitting pem file
#!/bin/bash
#
# Copyright (c) 2018, Red Hat, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
@masatake
masatake / gist:7e9ebc85989ecfd329d792770730ad88
Created September 19, 2018 03:04
failure of sockepair -yy
socket(AF_NETLINK, SOCK_RAW, NETLINK_SOCK_DIAG) = 4
sendmsg(4, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base={{len=40, type=0x14 /* NLMSG_??? */, flags=NLM_F_REQUEST, seq=0, pid=0}, "\x01\x00\x00\x00\xff\xff\xff\xff\x83\x9f\x6b\x00\x05\x00\x00\x00\xff\xff\xff\xff\xff\xff\xff\xff"}, iov_len=40}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 40
recvmsg(4, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base={{len=60, type=NLMSG_ERROR, flags=0, seq=0, pid=14881}, {error=-ENOENT, msg={{len=40, type=SOCK_DIAG_BY_FAMILY, flags=NLM_F_REQUEST, seq=0, pid=0}, {sdiag_family=AF_UNIX, sdiag_protocol=0, udiag_states=1<<TCP_ESTABLISHED|1<<TCP_SYN_SENT|1<<TCP_SYN_RECV|1<<TCP_FIN_WAIT1|1<<TCP_FIN_WAIT2|1<<TCP_TIME_WAIT|1<<TCP_CLOSE|1<<TCP_CLOSE_WAIT|1<<TCP_LAST_ACK|1<<TCP_LISTEN|1<<TCP_CLOSING|1<<TCP_NEW_SYN_RECV|0xffffe001, udiag_ino=7053187, udiag_show=UDIAG_SHOW_NAME|UDIAG_SHOW_PEER, udiag_cookie=[4294967295, 429496729
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="github" fetch="https://github.com/" />
<default revision="master" remote="github" />
<project name="systemd/systemd.git" path="systemd" />
</manifest>
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: