I hereby claim:
- I am roeniss on github.
- I am roeniss (https://keybase.io/roeniss) on keybase.
- I have a public key ASCZmqLvHkMiBy5EAp8aVh7NKvlpZVr725sz8asHNakh7Qo
To claim this, I am signing this object:
#!/bin/bash | |
echo '' > problemToLevel.csv | |
result=$(seq 1 35000 | paste -sd "," - | sed 's/\([^,]*,\)\{100\}/&\n/g') | |
IFS=$'\n' read -rd '' -a number_array <<< "$result" | |
for i in "${!number_array[@]}"; do | |
number_array[$i]=${number_array[$i]%?} # remove last comma |
#!/usr/bin/env bash | |
# [note] | |
# error message 'xargs: unterminated quote' is ignorable. | |
# [workflow] | |
# 1. daily execute the command | |
# 2. if something shows up, apply via web browser | |
# [RCEPT_SE] |
#!/usr/bin/env bash | |
# | |
# How it works | |
# - clone all repositories using `gh-cli` | |
# - copy the prepared file to one repo among them | |
# - git add, git commit, git push, gh pr create | |
# - Repeat above two steps for other repos | |
# |
# motivation: it's not easy to look println(dataClass) | |
# | |
# example: | |
# input: Movie(title=Inception, year=2010, director=Person(firstName=Christopher, lastName=Nolan)) | |
# output: { | |
# "title": "Inception", | |
# "year": "2010", | |
# "director": { | |
# "firstName": "Christopher", | |
# "lastName": "Nolan" |
#!/usr/bin/env bash | |
# | |
# Prerequisite: add a new bookmark directory in root directory. | |
# | |
# Usage: ./add_bookmark.sh "https://github.com/roeniss" "my github profile" | |
# | |
# Strongly recommend: Quit Chrome compeletely before execution. | |
# | |
# This is tested on m1 macbook, Ventura 13.3.1, 2023. | |
# |
I hereby claim:
To claim this, I am signing this object:
Step 1. Generate OTP code from Google OTP application ("Export accounts")
Step 2. Read the QR code(s) with tools (e.g., online qr reader, some python scripts, ...)
Step 3. Extract secret codes from QR code(s) with the script from https://github.com/scito/extract_otp_secrets
Step 4. Install the Alfred workflow: https://github.com/moul/alfred-workflow-gauth
Step 5. Write ~/.gauth
file with the information got from Step 3
# This is based on the post "2022-06-27 – tolower() in bulk at speed" by Tony Finch | |
# link: https://dotat.at/@/2022-06-27-tolower-swar.html | |
## For me, it was quite hard to understand the post without some visual helps. So I made it. | |
## You can run this with python3 in terminal and I hope this would help you, too. | |
OCTETS = "ABSOLUTE" | |
def show_ascii(s): | |
bins = bin(s)[2:].zfill(64) |
# Reference gist: https://gist.github.com/gordonmurray/4e6541f689205db3eb9bddc17a95fb1c | |
export AMI_ID="ami-033a6a056910d1137" # 2022.03 latest amazon linux 2 AMI | |
export AWS_PROFILE="roeniss" | |
export AWS_REGION="ap-northeast-2" | |
export INSTANCE_TYPE="t2.medium" | |
export KEY_PAIR_NAME="onetime_keypair_$(uuidgen)" | |
export SECURITY_GROUP_NAME="onetime_security_group_$(uuidgen)" | |
# Create ec2 with keypair then echo public DNS |
git push || git push 2>&1 | sed -n 4p | bash |