Skip to content

Instantly share code, notes, and snippets.

@simics-ja
simics-ja / arp-scan-usage.sh
Last active November 6, 2019 08:53
[ネットワーク確認系コマンド] 忘れがちなのでメモ #network
sudo arp-scan -I en0 192.168.11.0/24
@simics-ja
simics-ja / 00-PDOの使い方.md
Last active January 21, 2019 08:52
[PDOメモ] #php #mysql

PHPでMySQLを操作しよう.

@simics-ja
simics-ja / convert-utf8.sh
Last active May 19, 2021 06:28
[nkfコマンド] 文字コード変換コマンドのまとめ #nkf #shell
nkf -w hoge_sjis.txt > hoge_utf8.txt
@simics-ja
simics-ja / 01-basic.html
Last active March 21, 2019 09:08
[Vue.jsの基本ディレクティブまとめ] JS Fiddleで動作確認だ! #vuejs
<body>
<div id="app">
{{ message }}
</div>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</body>
@simics-ja
simics-ja / 01-v-once.html
Last active March 21, 2019 09:45
[Vue.jsのテンプレート構文まとめ] JS Fiddleで動作確認だ! #vuejs
<body>
<div id="app">
<!-- messageを描画するのは最初のみで変更はできない. -->
<!-- 表示を高速化したいときに使う. -->
<p v-once>
{{ message }}
</p>
<button v-on:click="clickHandler">
Click me!
</button>
@simics-ja
simics-ja / .zshrc
Last active June 23, 2022 02:37
[my zsh config] macOS+zplug+PREZTO #zsh #shell #config
#
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
@simics-ja
simics-ja / .vimrc
Last active June 18, 2021 17:26
[vim config] #vim #config
" Specify a directory for plugins
" - For Neovim: stdpath('data') . '/plugged'
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
" Make sure you use single quotes
" Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
Plug 'junegunn/vim-easy-align'
@simics-ja
simics-ja / hyper.js
Last active November 27, 2019 12:37
[my hyper config] hyperの設定 #hyper #shell #config
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
@simics-ja
simics-ja / GAS定期実行の設定手順.md
Last active April 13, 2020 18:06
[はてなブックマークをSlackへポストするGoogle App Script] SlackにもRSSアプリあるけど投稿の見た目がごちゃごちゃしてて微妙だった #GAS #Slack

はてなブックマークからSlackに記事をシェアするBotです.
各自がGoogle App Scriptで特定のチャンネルに投稿することを想定してます.
こういうことがやりたくて作ってみました.
雑談のタネにどうぞ.

  1. Google Spreadsheetを新規作成
  2. 「ツール」>「スクリプトエディタ」を開く.
  3. PostArticleFromHatena.jsの内容をひとまずコピペする.
  4. コード中の9行目らへんの環境変数POST_URL,DISPLAY_NAME,HATENA_USERNAMEを自分の環境に合わせる.WebhookのURLは管理者に教えてもらおう.
  • POST_URL: SlackのIncoming Webhookでchannelごとに発行されるURL
@simics-ja
simics-ja / .latexmkrc
Last active April 15, 2020 23:57
[.latexmkrcの設定例] #LaTeX
#!/usr/bin/env perl
# 日本語原稿の設定例
@default_files=('main.tex');
# LaTeX
$latex = 'platex -synctex=1 -halt-on-error -file-line-error %O %S';
$max_repeat = 5;
# BibTeX
$bibtex = 'pbibtex %O %S';