Skip to content

Instantly share code, notes, and snippets.

View issess's full-sized avatar

SeungHoon Han issess

View GitHub Profile
@balmeida-nokia
balmeida-nokia / wsl2_ciscoanyconnect_workaround.md
Last active May 9, 2024 09:28 — forked from pyther/wsl2_ciscoanyconnect_workaround.md
WSL 2 Cisco AnyConnect Networking Workaround

WSL 2 Cisco AnyConnect Networking Workaround

Overview

WSL 2 uses a Hyper-V Virtual Network adapter. Network connectivity works without any issue when a VPN is not in use. However when a Cisco AnyConnect VPN session is established Firewall Rules and Routes are added which breaks connectivity within the WSL 2 VM. This issue is tracked WSL/issues/4277

Below outline steps to automatically configure the Interface metric on VPN connect and update DNS settings (/etc/resolv.conf) on connect/disconnect.

Acknowledges

웹 서비스 검색 & 공유 최적화를 위한 제안서

1. 이 글의 목적

인터넷으로 홈페이지를 서비스하고 있는 회사들의 상당수가 개발과 마케팅에 많은 비용을 쓰지만 의외로 검색 & 공유 최적화에는 돈을 쓰지 않는 편입니다. 이유는 이런 대응은 주로 마케팅의 영역에서 해야 한다는 개발 조직의 생각과 기술을 모르는 마케팅 조직의 대응방법에서 나오는 생각의 차이 때문입니다.

개발 조직에서 기존의 개발 업무에 약간의 노력을 더하면 홍보 & 마케팅에 쓰는 비용을 줄이거나 홍보의 효과를 극대화하는 방법을 찾을 수 있습니다. 그것은 흔히 검색 최적화라고 불리는 SEO(Search Engine Optimization)와 소셜 공유 최적화 입니다. 최초 서비스 개발시에 이런 기술들을 적용하는 것이 기장 이상적이지만 이미 운영중인 서비스에도 검색 & 공유 최적화를 할 수 있는 많은 방법들이 있습니다.

이 제안서의 목적은 웹서비스에서 검색 & 공유 최적화와 관련된 정보를 제공하고 관련 기술 컨설팅 및 개발 협력을 위하여 작성 되었습니다. 더 많은 정보 혹은 개발 협력이 필요하시면 아래 연락처로 연락주시기 바랍니다.

#!/usr/bin/env bash
# --slave /usr/bin/$1 $1 /usr/bin/$1-\${version} \\
function register_clang_version {
local version=$1
local priority=$2
update-alternatives \
--install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-${version} ${priority} \
@bzamecnik
bzamecnik / README.md
Last active November 16, 2023 08:58
Anaconda Python script running as systemd service

Anaconda Python script running as systemd service

This way a Python daemon can be installed on Rasbian, Ubuntu or similar systems using systemd.

Installing:

sudo cp hello.service /lib/systemd/system/hello.service
sudo systemctl daemon-reload
sudo systemctl enable hello.service
@application2000
application2000 / how-to-install-latest-gcc-on-ubuntu-lts.txt
Last active May 7, 2024 10:38
How to install latest gcc on Ubuntu LTS (12.04, 14.04, 16.04)
These commands are based on a askubuntu answer http://askubuntu.com/a/581497
To install gcc-6 (gcc-6.1.1), I had to do more stuff as shown below.
USE THOSE COMMANDS AT YOUR OWN RISK. I SHALL NOT BE RESPONSIBLE FOR ANYTHING.
ABSOLUTELY NO WARRANTY.
If you are still reading let's carry on with the code.
sudo apt-get update && \
sudo apt-get install build-essential software-properties-common -y && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
@chrisbanes
chrisbanes / FloatLabelLayout.java
Last active March 15, 2024 06:39
FloatLabelLayout
/*
* Copyright 2014 Chris Banes
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@chitacan
chitacan / gist:11200703
Last active September 4, 2018 08:13
AOSP 4.4_r1 의 네이티브 코드를 gdb 로 디버깅 해보자!!

hack aosp with gdb

AOSP 4.4_r1 의 네이티브 코드를 gdb 로 디버깅 해보자!!

  • 안드로이드 어플리케이션을 실행할 때 사용되는 네이티브 코드(libbinder등) 은 어떻게 디버깅 할 수 있을까?
  • 안드로이드 단말이나 에뮬레이터의 /system/bin/ 아래에 있는 바이너리들(service, am, pm 등등) 어떻게 디버깅할 수 있을까?

준비물

  • 단말이나 에뮬레이터를 타겟으로 잘(!?) 빌드된 AOSP
@chrisbanes
chrisbanes / ForegroundLinearLayout.java
Created February 19, 2014 13:16
ForegroundLinearLayout
/*
* Copyright (C) 2006 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
Documented at
http://linux.die.net/man/5/fonts-conf
To check font mapping run the command at terminal
$ fc-match 'helvetica Neue'
@synchrok
synchrok / eulrlega.java
Last active November 5, 2023 11:16
eulrlera (을를이가): 문자열 뒤에 붙을 말이 을(이/은)인지 를(가/는)인지 알려주는 함수
public class Utility {
public static boolean eulrlega(String word) {
char last = word.charAt(word.length()-1);
if(last < 0xAC00)
return true;
last -= 0xAC00;
char jong = (char) ((last % 28) + 0x11a7);