Skip to content

Instantly share code, notes, and snippets.

View keoy7am's full-sized avatar
🏠
Work at home

Elliot Chen keoy7am

🏠
Work at home
  • Taipei,Taiwan
  • 23:05 (UTC +08:00)
View GitHub Profile
@keoy7am
keoy7am / image_phpstorm_server.png
Created May 8, 2020 20:40 — forked from esilvajr/image_phpstorm_server.png
How to use XDebug inside a docker container.
image_phpstorm_server.png
@keoy7am
keoy7am / bash.py
Created March 30, 2020 21:55 — forked from kirpit/bash.py
Enables to run subprocess commands in a different thread with TIMEOUT option!
#! /usr/bin/env python
import threading
import subprocess
import traceback
import shlex
class Command(object):
"""
Enables to run subprocess commands in a different thread with TIMEOUT option.
@keoy7am
keoy7am / tmux-cheatsheet.markdown
Created March 8, 2020 18:42 — forked from ryerh/tmux-cheatsheet.markdown
Tmux 快捷键 & 速查表 & 简明教程

注意:本文内容适用于 Tmux 2.3 及以上的版本,但是绝大部分的特性低版本也都适用,鼠标支持、VI 模式、插件管理在低版本可能会与本文不兼容。

Tmux 快捷键 & 速查表 & 简明教程

启动新会话:

tmux [new -s 会话名 -n 窗口名]

恢复会话:

@keoy7am
keoy7am / SelfInstaller.cs
Created November 28, 2019 20:19 — forked from walterlv/SelfInstaller.cs
这是一个简单的自更新程序的类。使用此类型,程序初次运行的时候会安装自己,如果已安装旧版本会更新自己,如果已安装最新则直接运行。
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Security.Principal;
namespace Walterlv.Installing
{
@keoy7am
keoy7am / keep
Created June 16, 2019 18:31
法律相關keywords dump
Site Url: http://www.taiwanlii.ccu.edu.tw/keywordspicker/keyword.php?lid=1
------------------------------ Javascript ------------------------------
var result = ""
$(".table>tbody>tr>td:nth-child(2)").each(function(){
result += this.innerText + "\n"
})
console.log(result)
------------------------------------------------------------------------