Skip to content

Instantly share code, notes, and snippets.

View k12u's full-sized avatar
🏠
Working from home

Minoru KAWAMOTO k12u

🏠
Working from home
View GitHub Profile
[root@ip-10-120-94-184 php55]# env LANG=C yum install php55u-pecl-jsonc.x86_64
Loaded plugins: priorities, update-motd, upgrade-helper
49 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package php55u-pecl-jsonc.x86_64 0:1.3.5-1.ius.centos6 will be installed
--> Processing Dependency: /usr/bin/pecl for package: php55u-pecl-jsonc-1.3.5-1.ius.centos6.x86_64
--> Processing Dependency: /usr/bin/pecl for package: php55u-pecl-jsonc-1.3.5-1.ius.centos6.x86_64
--> Running transaction check
---> Package php55u-pear.noarch 1:1.9.4-20.ius.centos6 will be installed
@k12u
k12u / 0_reuse_code.js
Created August 22, 2014 16:15
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@k12u
k12u / swedish
Last active August 29, 2015 14:27
swedish
vagrant@ubuntu:/tmp$ docker run -d --name=test -e MYSQL_DATABASE=db -e MYSQL_ROOT_PASSWORD=pass -p 3307:3306 mysql
83a04cde686930ad72df76df5d2662ed927c901867c4e4562b18841a49140aa3
vagrant@ubuntu:/tmp$ docker exec test cat /var/lib/mysql/db/db.opt
default-character-set=latin1
default-collation=latin1_swedish_ci
@k12u
k12u / editor.html
Created December 26, 2024 05:02
ブラウザタブで動かすエディタ
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>オフラインエディタ</title>
<style>
/* テキストエリアがリサイズ可能であることを示す */
textarea {
resize: vertical;
@k12u
k12u / gist:80459862c74c981b8a37fabb3a9a6675
Created February 26, 2025 09:00
今日のお前のコミット全部 diff / log にまとめるくん
#!/bin/bash
for repo in "$@"; do
if [ -d "$repo/.git" ]; then
echo "リポジトリ: $repo"
# ブランチの更新順を取得 (最新50件)
branches=$(git --git-dir="$repo/.git" --work-tree="$repo" for-each-ref --sort=-committerdate --format='%(refname:short)' refs/heads/ --count=50)
for branch in $branches; do