Show a listing of last logged in current user.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# getappx - Get URLs of .appx files from Microsoft Store. | |
# Copyright 2020 (c) Koichi OKADA. All rights reserved. | |
# This script is destributed under the MIT license. | |
source hhs.bash 0.2.0 | |
function fetch_post () # URL POSTDATA | |
{ | |
local cachedir=/tmp/.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
source hhs.bash 0.2.0 | |
function optparse_mountbsd () | |
{ | |
case "$1" in | |
-m|--mount-point) # <mountpoint> | |
# set mount point | |
nparams 1 |
sed -E 's@//security@//archive@g;s@//archive@//jp.archive@g;s/$/ universe multiverse/g;s/deb cdrom/#\0/g' -i /etc/apt/sources.list
cat <<EOD | sudo tee /usr/local/bin/ezchroot.sh
#!/usr/bin/env bash
BINDS="dev proc run sys tmp"
for i in $BINDS; do
mount --bind /$i $1/$i
done
- Qiita
- hiruberuto / 2016-02-12: 2019-04-13: リアクティブプログラミングとは何だったのか
- uehaj / 2016-02-21: 2017-12-20: 「リアクティブプログラミングが読み難い」というのは本当なのか?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
project(hello LANGUAGES) | |
# enable_language(CSharp) # only suport VS2010 or later. | |
# add_executable(hello.cs) | |
if (CYGWIN) | |
set(MSBUILD /cygdrive/c/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe) | |
execute_process(COMMAND cygpath -a -w "${CMAKE_CURRENT_SOURCE_DIR}" OUTPUT_VARIABLE DOS_STYLE_SOURCE_DIR OUTPUT_STRIP_TRAILING_WHITESPACE) | |
else (CYGWIN) | |
if (WIN32) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# lspkgs.sh - List Packages | |
# Copyright 2019 (c) Koichi OKADA. All rights reserved. | |
# This script is distributed under the MIT license. | |
# | |
function help () | |
{ | |
cat <<-EOD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# git-get-date | |
# Copyright (c) 2019 Koichi OKADA. All rights reserved. | |
# This script is distributed under the MIT license. | |
# | |
function usage () | |
{ | |
cat <<-EOD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
exec ruby -x "$0" "$@" | |
#!ruby | |
# coding: utf-8 | |
# | |
# align_column.rb | |
# Copyright (c) 2019 Koichi OKADA. All rights reserved. | |
# This script is destributed under the MIT license. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# vmps.sh - Report virtual memory status of a process. | |
# Copyright (c) 2019 Koichi OKADA. All right reserved. | |
# This script distributed under the MIT license. | |
# | |
function vmps () # <pid> [<delay>] | |
# Report virtual memory status of a process. | |
# Args: |