Skip to content

Instantly share code, notes, and snippets.

View h1romas4's full-sized avatar
🍕
< Pizza Time

hiromasa h1romas4

🍕
< Pizza Time
View GitHub Profile
@h1romas4
h1romas4 / mame-emscripten-build-log.md
Last active January 16, 2022 14:47
MAME/Emscripten build log
@h1romas4
h1romas4 / MaCoPiX
Created December 14, 2019 10:16
Ubuntu 19.04 で MaCoPiX をコンパイルする時に必要なライブラリ依存
https://github.com/chimari/MaCoPiX
sudo apt install libx11-dev
sudo apt install libglib2.0-dev
sudo apt install libgtk-3-dev
@h1romas4
h1romas4 / proxy.sh
Last active October 9, 2019 05:14
WSL proxy settings
# for curl
echo 'proxy = "http://example.com:8080"' > ~/.curlrc
# for wget
echo 'http_proxy=http://example.com:8080' >> ~/.wgetrc
echo 'https_proxy=http://example.com:8080' >> ~/.wgetrc
# for other (include nodejs/pip)
echo 'export HTTP_PROXY="http://example.com:8080"' >> ~/.bashrc
echo 'export HTTPS_PROXY_="${HTTP_PROXY}"' >> ~/.bashrc
@h1romas4
h1romas4 / launch.json
Created April 18, 2019 09:53
VS Code + Debugger for Firefox でデバッグする場合の設定
// 以下のように Firefox をデバッグサーバーで起動しておく。
// "C:\Program Files\Firefox Developer Edition\firefox.exe" -start-debugger-server
// about:config
// devtools.debugger.remote-enabled true
// devtools.chrome.enabled true
// devtools.debugger.prompt-connection false
// devtools.debugger.force-local false
{
"version": "0.2.0",
@h1romas4
h1romas4 / rustup.ps1
Created January 11, 2019 02:41
Windows / rustup を proxy 配下で使うとき
$proxy='http://<IP>:<PORT>'
$ENV:HTTP_PROXY=$proxy
$ENV:HTTPS_PROXY=$proxy
cd ~\Downloads
.\rustup-init.exe
@h1romas4
h1romas4 / launch.json
Last active January 8, 2019 12:52
hbenl.vscode-firefox-debug で VS Code から Firefox に接続して JavaScript をデバッグ
{
"version": "0.2.0",
"configurations": [
{
// 任意の名称
"name": "Launch firefox",
// hbenl.vscode-firefox-debug 識別子
"type": "firefox",
"request": "launch",
// 画面遷移したら再アタッチ
@h1romas4
h1romas4 / userChrome.css
Created December 13, 2018 03:12
Firefox Developer tools のフォントを変更する chrome/userChrome.css
@-moz-document url-prefix("chrome://devtools/content/") {
* {
font-size: 15px !important;
font-family: 'Ricty Diminished for Powerline' !important;
}
}
@h1romas4
h1romas4 / .bashrc
Last active December 18, 2018 09:59
Powerline と Alacritty と tmux の .bashrc
# Powerline
if [ -f /usr/share/powerline/bindings/bash/powerline.sh ]; then
source /usr/share/powerline/bindings/bash/powerline.sh
fi
# macOS の場合は LANG を設定しないと Powerline の表示がおかしくなる
LANG=ja_JP.UTF-8
# Alacritty & tmux
if [[ "$TERM_PROGRAM" = "alacritty" && $SHLVL = 1 ]]
@h1romas4
h1romas4 / alacritty.yml
Last active January 14, 2023 05:31
Alacritty の設定
#ave_to_clipboard Configuration for Alacritty, the GPU enhanced terminal emulator.
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty itself.
env:
# TERM variable
#
# This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will
@h1romas4
h1romas4 / .tmux.conf
Last active October 20, 2018 15:59
.tmux.conf の設定
# 256 terminal
set-option -g default-terminal screen-256color
set -g terminal-overrides 'xterm:colors=256'
# for powerline
run-shell "powerline-daemon -q"
source "/usr/share/powerline/bindings/tmux/powerline.conf"
# prefixキーをC-aに変更する
set -g prefix C-w