$ sudo apt-get install smartmontools
-
Files:
- launch.json:
.vscode/launch.json
file in your project directory. - settings.json:
.vscode/settings.json
file in your project directory.
- launch.json:
-
Environment Variables:
export PICO_SDK_PATH="<path-to-your-pico-sdk-directory>"
export OPENOCD_PATH="<path-to-your-openocd-directory>"
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 | |
# backup_vaultwarden.sh | |
# | |
# Backups up `db.sqlite3` and `attachments` from vaultwarden. | |
# | |
# last update: 2023.02.16. | |
# XXXX: edit following values | |
VAULTWARDEN_WORKING_DIR="/home/me/my-files/vaultwarden" |
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 ruby | |
# coding: UTF-8 | |
# 2webm.rb | |
# | |
# convert given video file to .webm format | |
# | |
# (ffmpeg should be installed with libvpx and libvorbis. | |
# | |
# ex: $ brew install ffmpeg --with-libvpx --with-libvorbis) |
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 ruby | |
# frozen_string_literal: true | |
# 2gif.rb | |
# | |
# https://gist.github.com/meinside/62c442900e6d73d5d3d9 | |
# | |
# Convert video to gif. | |
# * referenced: http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html | |
# |
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 ruby | |
# frozen_string_literal: false | |
# Shift times in given .srt file | |
# | |
# ./shift_srt.rb [SRT_FILEPATH] [MSECS_TO_SHIFT] | |
# | |
# ex: ./shift_srt.rb some_srt_file.srt 420 | |
# | |
# created by meinside@duck.com |
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 ruby | |
# coding: UTF-8 | |
# inline_image.rb | |
# | |
# generates in-line image tag | |
# (referenced: http://en.wikipedia.org/wiki/Data_URI_scheme) | |
# | |
# created on : 2013.06.30 | |
# last update: 2013.06.30 |
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
/* | |
Send a message on Transmission(torrent) completion: | |
https://trac.transmissionbt.com/wiki/Scripts | |
* Created on : 2015.07.07. | |
* Last update: 2015.07.16. | |
* by meinside@duck.com |
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/bash | |
# | |
# notify-ssh-login.sh | |
# | |
# Notifies successful ssh logins through pushbullet | |
# | |
# NOTE: this script will be run as root, so don't forget to put related config files under /root/.config/ | |
# | |
# | |
# last update: 2019.06.05. |
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/bash | |
# | |
# notify-fail2ban.sh | |
# | |
# Notifies on fail2ban's ban actions through pushbullet | |
# | |
# NOTE: this script will be run as root, so don't forget to put related config files under /root/.config/ | |
# | |
# USAGE: $ ./notify-fail2ban.sh 8.8.8.8 ssh | |
# |
NewerOlder