Skip to content

Instantly share code, notes, and snippets.

View KeyAmam's full-sized avatar
🐢

KeyAmam KeyAmam

🐢
  • Japan
View GitHub Profile
"日付け","終値","始値","高値","安値","出来高","変化率 %"
"2008-12-31","903.25","890.59","910.32","889.67","","1.42%"
"2008-12-30","890.64","870.58","891.12","870.58","","2.44%"
"2008-12-29","869.42","872.37","873.70","857.07","","-0.39%"
"2008-12-26","872.80","869.51","873.74","866.52","","0.54%"
"2008-12-24","868.15","863.87","869.79","861.44","","0.58%"
"2008-12-23","863.16","874.31","880.44","860.10","","-0.97%"
"2008-12-22","871.63","887.20","887.37","857.09","","-1.83%"
"2008-12-19","887.88","886.96","905.47","883.02","","0.29%"
"2008-12-18","885.28","905.98","911.02","877.44","","-2.12%"
@KeyAmam
KeyAmam / post-checkout
Last active October 20, 2023 07:22
post-checkout hook to configure a git account to a repo only after git clone (not after git checkout)
#!/bin/bash
# NOTES
# set git accounts info in ~/.sources/.gitvariables like so:
# GIT_USER_NAME_WORK=...
# GIT_USER_EMAIL_WORK=...
# GIT_SSH_NAME_WORK=...
# GIT_USER_NAME_PRIVATE=...
# GIT_USER_EMAIL_PRIVATE=...
# GIT_SSH_NAME_PRIVATE=...
@KeyAmam
KeyAmam / .bash_hooks
Last active October 20, 2023 07:34
A script which defines actions before and after each command execution
#!/bin/bash
# NOTES
# To activate hooks, run:
# . ./.bash_hooks
# To clear hooks, run:
# trap '' DEBUG
# PROMPT_COMMAND=
@KeyAmam
KeyAmam / my-uhk-configuration.json
Created October 23, 2019 05:46
My UHK configuration
{
"userConfigMajorVersion": 4,
"userConfigMinorVersion": 0,
"userConfigPatchVersion": 0,
"deviceName": "My UHK",
"doubleTapSwitchLayerTimeout": 250,
"iconsAndLayerTextsBrightness": 32,
"alphanumericSegmentsBrightness": 32,
"keyBacklightBrightness": 32,
"mouseMoveInitialSpeed": 1,
@KeyAmam
KeyAmam / gitconfig-set-gpg.sh
Last active October 20, 2023 07:35
Script to generate a GPG key or choose existing one and set it to .git/config
#!/bin/bash
# What this does:
# Create a new GPG key or use an existing key
# Set the key to gitconfig in the currenty repository
# Usage:
# To create a new key and set it:
# 1. ./git-set-gpg-key.sh
# 2. Type "c"
@KeyAmam
KeyAmam / git-account-switcher.sh
Last active January 1, 2022 12:55
Wrapper functions for cd and git to swtich SSH hosts on "git clone" depending on which directory you are in
# What this does
# Switch SSH hosts on "git clone" depending on where you run it:
# Run "git clone" in a subdirectory of "work" -> Your work account clones the repo
# Run "git clone" in a subdirectory of "private" -> Your private account clones the repo
# How to configure
# 1. Create directories ~/work and ~/private
# 2. Configure SSH hosts in ~/.ssh/config and set public keys to your Github accounts
# 3. Define these functions in an rc file (.bashrc or whatever you are using)
# 4. Modify environment variables below