Skip to content

Instantly share code, notes, and snippets.

View td-shi's full-sized avatar

TD氏 td-shi

  • Near Port
View GitHub Profile
@td-shi
td-shi / POSIX_commands.md
Last active April 14, 2025 03:25
About POSIX commands list

POSIX commands

You should refer the original page. The all copyrights of these documents belong to them.

Using frequent

filter

  • grep :: search a file for a pattern
@td-shi
td-shi / c-template_linux_cli_application.c
Created May 31, 2020 04:56
Template of CLI application for linux shell
//(1)=========================================================<< File Header >>=
/**
* @file c-template_linux_cli_application.c
* @brief <Application meaning> Ver 0.01
* @author TD
* @date 2020-05-31
*
* <pre> 2020 TD LICENSED CC0 </pre>
******************************************************************************/
//(2)======================================================<< System Include >>=
#!/bin/bash --posix
# -*- coding:utf-8 -*-
# === Coding shell scripting Memo ==============================================
# ${<name>#<pattern>} :: matching delete with shortest by forword.
# ${<name>##<pattern>} :: matching delete with longest by forword.
# ${<name>%<pattern>} :: matching delete with shortest by backword.
# ${<name>%%<pattern>} :: mathing delete with longest by backword.
# ${<name>/<before>/<after>} :: replace only first matching.
# ${<name>//<before>/<after>} :: replace all matching.
@td-shi
td-shi / toXPATH.sh
Last active February 24, 2020 13:11
Converting XML to (like) XPATH. [List Repository](https://github.com/td-shi/ShellScriptsOnGist)
#!/bin/bash --posix
# -*- coding:utf-8 -*-
# === Coding shell scripting Memo ==============================================
# ${<name>#<pattern>} :: matching delete with shortest by forword.
# ${<name>##<pattern>} :: matching delete with longest by forword.
# ${<name>%<pattern>} :: matching delete with shortest by backword.
# ${<name>%%<pattern>} :: mathing delete with longest by backword.
# ${<name>/<before>/<after>} :: replace only first matching.
# ${<name>//<before>/<after>} :: replace all matching.
#!/bin/bash --posix
# -*- coding:utf-8 -*-
# === Coding shell scripting Memo ==============================================
# ${<name>#<pattern>} :: matching delete with shortest by forword.
# ${<name>##<pattern>} :: matching delete with longest by forword.
# ${<name>%<pattern>} :: matching delete with shortest by backword.
# ${<name>%%<pattern>} :: mathing delete with longest by backword.
# ${<name>/<before>/<after>} :: replace only first matching.
# ${<name>//<before>/<after>} :: replace all matching.
@td-shi
td-shi / apache_building.md
Last active February 29, 2020 06:05
Apache2.0 building.

versions

  • datetime :: 2019-05-21
  • Machine :: Tinker board S
  • OS :: debian 9
  • Apache2 :: 2.4.25
  • OpenSSL :: 1.1.0j
  • certbot :: 0.28.0
  • curl :: 7.52.1
  • wget :: 1.18
@td-shi
td-shi / Arty_Constraint.xdc
Created January 27, 2020 07:12
Arty Constraint
## Arty constraints file
## project: ?????
## Manual <https://reference.digilentinc.com/reference/programmable-logic/arty-a7/reference-manual>
## Pin <https://reference.digilentinc.com/_media/reference/programmable-logic/arty-a7/arty_a7_sch.pdf>
## Clock signal
set_property PACKAGE_PIN E3 [get_ports {CLK}]
set_property IOSTANDARD LVCMOS33 [get_ports {CLK}]
create_clock -add -name sys_clk_pin -period 10.00 \
-waveform {0 5} [get_ports {CLK}]
@td-shi
td-shi / character.md
Created January 27, 2020 07:10
self building.

キャラクター

メタ

  • 概要
  • 役割
  • 性質

身体特徴

  • 身長
  • 重量
  • 外見 :: 顔 体 髪 服飾 好む色 特徴
@td-shi
td-shi / encode_7seg.vhd
Created January 27, 2020 07:08
VHDL 7SEGLED encoder.
library ieee;
use ieee.std_logic_1164.all;
entity encode_7seg is
generic(COMMON: integer range 0 to 1 := 0);
port(DIN: in integer range 0 to 127;
DOT: in std_logic;
SEG7LED: out std_logic_vector(7 downto 0));
end encode_7seg;
@td-shi
td-shi / data.lua
Created January 27, 2020 07:06
factorio distillation-science-pack_0.2
data:extend(
{
{
type = "recipe",
name = "distillation-science-pack-2",
enabled = "true",
ingredients =
{
{"science-pack-1", 3}
},