Skip to content

Instantly share code, notes, and snippets.

View a-maumau's full-sized avatar

Masaki Baba a-maumau

View GitHub Profile
@a-maumau
a-maumau / creating_ubuntu_boot_usb_drive_on_macOS.md
Last active February 21, 2024 05:14
creating ubuntu boot usb drive on macOS
@a-maumau
a-maumau / mount_remote_server_with_sshfs_on_macOS.md
Last active May 1, 2024 15:56
mount remote server files with sshfs for Mac

as a premise, you can access to the remote server by ssh

Installation

You need homebrew for mac

brew install macfuse
brew install gromgit/fuse/sshfs-mac
@a-maumau
a-maumau / tmux_cheat_sheet.md
Last active November 9, 2022 08:57
tmux お役立ちコマンド集
@a-maumau
a-maumau / opencv_on_macos.md
Last active January 1, 2023 14:19
Use OpenCV on macOS with C++
@a-maumau
a-maumau / notify_login.sh
Last active July 18, 2021 18:02
notify login via slack on linux
#!/bin/bash
# you also need to set this script in `pam.d/<what you want>`.
# for example,
# in file `/etc/pam.d/common-password`
# add following:
#
# session optional pam_exec.so /usr/local/bin/notify_login.sh
#
# the file names under the `pam.d` may differ in OS and version,
@a-maumau
a-maumau / ssh_socks_proxy.md
Last active June 9, 2021 07:00
Pass through paywall via valid domain remote machine using ssh SOCKS proxy

Intro

This is NOT a way to illegally bypass a paywall.
This is for some people who have a access to university/organization account of some paywall pages (e.g., https://ieeexplore.ieee.org).
Also, this method requires a access of ssh login to some machines which has a valid domain.

<your_machine> -> <remote_machine> -> <website>

Basically, you need 2 steps.

@a-maumau
a-maumau / check_disk_space_and_notificate.sh
Last active January 18, 2021 07:05
disk space notification script. tested in debian 10
#ref: https://pc.casey.jp/archives/153903095
##!/bin/sh
#host_name="<your host>"
#message_tag="[WARNING]"
#disk_usage=`/bin/df / | /usr/bin/tail -1 | /bin/sed 's/^.* \([0-9]*\)%.*$/\1/'`
#slack_msg_head="${message_tag} ${host_name}"
#slack_msg_body="\`\`\`Disk usage ${disk_usage}%\`\`\`"
@a-maumau
a-maumau / fix_conda_break.md
Last active October 9, 2019 06:05
to fix when conda break after installing specific libraries.
@a-maumau
a-maumau / openCV_on_Mac.md
Last active August 20, 2019 01:40
Installing and using openCV on Mac

Install opencv4 from source

git clone https://github.com/opencv/opencv.git
cd opencv
mkdir build
cd build
cmake ../
make -j 8 # what ever you want
sudo make install
@a-maumau
a-maumau / test_markdown.md
Last active August 2, 2024 04:50
I always make a mistake in markdown at github, so here is a playground.

aaaaaaaaaa