Skip to content

Instantly share code, notes, and snippets.

$ rm -rf autoware autoware_data/ .ansible/ .ros/
$ sudo apt update -y 
$ sudo apt upgrade -y

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
{
"editor.fontFamily": "'Fira Code Medium', 'Droid Sans Mono', 'monospace', monospace",
"workbench.colorTheme": "Solarized Light",
"editor.inlineSuggest.enabled": true,
"asciidoc.pdf.asciidoctorPdfCommandPath": "asciidoctor-pdf -a scripts=cjk -a pdf-theme=default-for-print-with-fallback-font -r asciidoctor-diagram -r asciidoctor-mathematical",
"asciidoc.extensions.enableKroki": true,
"asciidoc.useWorkspaceRootAsBaseDirectory": true,
"editor.tabSize": 4,
"editor.insertSpaces": true,
"editor.suggest.snippetsPreventQuickSuggestions": false,
Important
gistの描写は忠実じゃないので、忠実な描写がされた際の画像を下に貼っています。
Table 1. テーブルタイトル
1 4 1
#!/usr/bin/env python3
import sys
import yfinance as yf
import pickle
if len(sys.argv) != 2:
print("Usage: ./get_data.py <ticker_symbols_file>")
sys.exit(1)
tickers_file = sys.argv[1]
@mkakh
mkakh / gogs-docker-compose.yml
Created July 27, 2023 06:14
docker-compose.yml for gogs.
# About the settings of gogs, see https://github.com/gogs/gogs/tree/main/docker.
# The host of db is the container's name such as gogs-db-1
version: '3'
services:
db:
image: postgres:latest
environment:
- POSTGRES_USER=gogs
- POSTGRES_PASSWORD=#####
- POSTGRES_DB=gogs
@mkakh
mkakh / source-env.sh
Last active July 25, 2023 06:13
zsh version of source-env.sh for IsoNet-cryoET/IsoNet
#!/bin/zsh
# The original source code is published in IsoNet-cryoET/IsoNet under the MIT license.
###############
# THIS FILE CAN BE SOURCED INTO YOUR SHELL
# TO SET UP ENVIRONMENT WHERE IsoNet CAN BE EXECUTED
###############
_ISONET_REPO_ROOT="$(dirname "$(realpath "${(%):-%x}")")"
@mkakh
mkakh / EmojiFetcher.html
Last active July 12, 2023 00:28
The webpage fetches emojis from a misskey instance. The input should be like "misskey.io". It was totally created by Bing AI. I haven’t tested it, but it seems to work correctly. CC0. The sample is placed on mkakh.com/emoji_fetcher.html.
<!DOCTYPE html>
<html>
<head>
<title>Emoji Fetcher</title>
<style>
.emoji {
display: inline-block;
text-align: center;
margin: 10px;
}

Keybase proof

I hereby claim:

  • I am mkakh on github.

  • I am mkakh (https://keybase.io/mkakh) on keybase.

  • I have a public key ASDGS3Cjbf2RTdkzdeQyTpdpz1mWoirsfe0jU_lr3OmMpQo

@mkakh
mkakh / SetEventsOnEveryMonday.py
Created July 3, 2023 03:44
Set google calendar events on every Monday of the next month
from google.oauth2.credentials import Credentials
from google.auth.transport.requests import Request
from google_auth_oauthlib.flow import InstalledAppFlow
from googleapiclient.discovery import build
from datetime import datetime, timedelta
import calendar, os
# If modifying these scopes, delete the file token.json.
SCOPES = ['https://www.googleapis.com/auth/calendar.events']
@mkakh
mkakh / starship-for-warp.toml
Created June 28, 2023 01:14
a setting file of starship for warp terminal (I just changed the format variable from the default setting to disable '>')
# Warning: This config does not include keys that have an unset value
# $all is shorthand for $username$hostname$localip$shlvl$singularity$kubernetes$directory$vcsh$fossil_branch$git_branch$git_commit$git_state$git_metrics$git_status$hg_branch$pijul_channel$docker_context$package$bun$c$cmake$cobol$daml$dart$deno$dotnet$elixir$elm$erlang$fennel$golang$gradle$haskell$haxe$helm$java$julia$kotlin$lua$nim$nodejs$ocaml$opa$perl$php$pulumi$purescript$python$raku$rlang$red$ruby$rust$scala$solidity$swift$terraform$vlang$vagrant$zig$buf$guix_shell$nix_shell$conda$meson$spack$memory_usage$aws$gcloud$openstack$azure$env_var$crystal$custom$sudo$cmd_duration$line_break$jobs$battery$time$status$container$os$shell$character
"$schema" = "https://starship.rs/config-schema.json"
# format = "$all"
format="$username$hostname$localip$shlvl$singularity$kubernetes$directory$vcsh$fossil_branch$git_branch$git_commit$git_state$git_metrics$git_status$hg_branch$pijul_channel$docker_context$package$bun$c$cmake$cobol$daml$dart$deno$dotnet