Skip to content

Instantly share code, notes, and snippets.

View simryang's full-sized avatar

Joseph simryang

  • WIZnet
  • 성남시
  • 14:22 (UTC +09:00)
View GitHub Profile
@simryang
simryang / prime.pl
Created April 18, 2010 23:35 — forked from keedi/prime.pl
#!/usr/bin/env perl
use 5.010;
use common::sense;
use Math::Prime::TiedArray;
use List::Compare;
#
# 실행전 설치 모듈 확인
# $ cpanm common::sense Math::Prime::TiedArray List::Compare
@simryang
simryang / scrollableImagesView.js
Created June 29, 2012 11:00
scrollableview with remote images for Titanium Appcelerator
var win = Ti.currentWindow;
var imageCollection = [
'http://example.com/images/1.jpg',
'http://example.com/images/2.jpg',
'http://example.com/images/3.jpg',
'http://example.com/images/4.jpg',
'http://example.com/images/5.jpg',
'http://example.com/images/6.jpg'
];
var scrollGallery = Ti.UI.createScrollableView({
@simryang
simryang / mac-vendor.txt
Created June 26, 2019 09:36 — forked from aallan/mac-vendor.txt
List of MAC addresses with vendors identities
000000 Officially Xerox
000001 SuperLAN-2U
000002 BBN (was internal usage only, no longer used)
000003 XEROX CORPORATION
000004 XEROX CORPORATION
000005 XEROX CORPORATION
000006 XEROX CORPORATION
000007 XEROX CORPORATION
000008 XEROX CORPORATION
000009 powerpipes?
@simryang
simryang / vscode-on-ubuntu.adoc
Created August 18, 2022 09:51 — forked from philoskim/vscode-on-ubuntu.adoc
Ubuntu에서 Visual Studio Code 한글 입력 안되는 현상 해결법

Ubuntu에서 Visual Studio Code 한글 입력 안되는 현상 해결법

Ubuntu 19.10에서 Visual Studio Code 사용 중 한영 전환키를 누르고 한글을 입력하려 했더니, 한글 입력이 안되고 영어만 계속 입력되는 현상을 발견했다. 그래서 인터넷을 검색해 봤더니 snap 형식의 Visual Studio Code를 설치한 경우에, Ubuntu의 입력기인 IBus와 충돌해서 일어나는 현상이라고 한다. 그런데 .deb 형식의 Visual Studio Code를 설치한 경우에는 그런 문제가 없다는 사실을 알게 되어, 설치해 봤더니 한글 입력이 정상적으로 이루어지는 것을 확인했다. 그래서 같은 문제를 겪는 사람들을 위해 이 해결법을 공유하고자 한다.

  • 먼저 이미 설치되어 있는 snap 형식의 Visual Studio Code를 제거한다.

@simryang
simryang / upgrade_openwrt.md
Last active June 20, 2023 07:51 — forked from jiananlu/gist:9258032
upgrade openwrt kernel and reinstall all packages manual

upgrade the system

Make sure you can ssh to the router by root and type in the command:

cd /tmp
wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-mw4530r-v1-squashfs-sysupgrade.bin
sysupgrade -v openwrt-ar71xx-generic-mw4530r-v1-squashfs-sysupgrade.bin
@simryang
simryang / mv_git_repo_with_history.sh
Last active December 29, 2023 01:06 — forked from trongthanh/gist:2779392
How to move a folder from one repo to another and keep its commit history
# source: http://st-on-it.blogspot.com/2010/01/how-to-move-folders-between-git.html
# First of all you need to have a clean clone of the source repository so we didn't screw the things up.
git clone git://server.com/my-repo1.git
# After that you need to do some preparations on the source repository, nuking all the entries except the folder you need to move. Use the following command
git filter-branch --subdirectory-filter your_dir -- -- all
# This will nuke all the other entries and their history, creating a clean git repository that contains only data and history from the directory you need. If you need to move several folders, you have to collect them in a single directory using the git mv command.
@simryang
simryang / w5500-overlay.dts
Created April 22, 2024 11:18 — forked from renakim/w5500-overlay.dts
WIZnet W5500 device tree overlay example for Raspberry Pi kernel
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2835";
fragment@0 {
target = <&spi0>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
@simryang
simryang / aiowatch.py
Created June 24, 2024 07:59 — forked from mivade/aiowatch.py
Using watchdog with asyncio
import asyncio
from pathlib import Path
from typing import Optional
from watchdog.events import FileSystemEvent, FileSystemEventHandler
from watchdog.observers import Observer
class _EventHandler(FileSystemEventHandler):
def __init__(self, queue: asyncio.Queue, loop: asyncio.BaseEventLoop,