Skip to content

Instantly share code, notes, and snippets.

View keizie's full-sized avatar

Jeong-Hee Kang keizie

View GitHub Profile
@rturk
rturk / GTM_FORCE_reload.js
Last active January 6, 2025 02:55
GTM Force Reload Tag
<script>
/*
This script will force reload of the page based on the harcoded version.
Create as tag and Use GTM to trigger execution.
*/
var GTMRELOADER_CURRENT_VERION = '1';
var GTMRELOADER_KEY_NAME = 'VERSION';
function canIUseLocalStorage(){
var test = 'test_ls_test';
@serithemage
serithemage / aws-study-resource.md
Last active August 17, 2026 12:08
AWS 학습 자료집

AWS 학습 링크집 시리즈

@thetrevorharmon
thetrevorharmon / install-apple-font-tools.sh
Created June 19, 2018 17:36
These commands help you install the Apple Font Tools, since their installer doesn't work on newer versions of macOS.
# Mount the font tools dmg as a volume on your Mac
hdiutil attach ~/Downloads/osxfonttools.dmg
# Navigate into the volume and copy
# the main .pkg file somewhere locally
# so you can manipulate it
cd /Volumes/OS\ X\ Font\ Tools/
pkgutil --expand OS\ X\ Font\ Tools.pkg ~/fontTools && cd ~/fontTools
# If you ls, here's what's in the file
@vandbt
vandbt / book-writing-solid-code.md
Last active September 25, 2021 05:35
Book: Writing Solid Code - 페인트 젓는 막대와 증상만 치료하는 의사

개발자로 밥을 먹고 있으면서 수년동안 읽은 개발서 중에 머리가 아닌 가슴을 에이게 하는 책이 있다면 그중 하나가 바로 이책입니다. 개발서 치고는 얊은 데다가 타이포그래피가 구닥다리 냄새를 풍기고 있기는 하죠.

book cover

Writing Solid Code.(부제: 버그 안녕)

STEVE MAGUIRE 저, 나윤석. 이을재 공역, 높이깊이 ISBN 89-7588-020-6

많은 좋은 내용이 있지만 그중 머릿속에 멤도는 몇가지는 아래와 같습니다.

@srishanbhattarai
srishanbhattarai / android.txt
Last active June 1, 2026 13:55
Android Emulator CPU/Memory high usage solution
https://stackoverflow.com/questions/37063267/high-cpu-usage-with-android-emulator-qemu-system-i386-exe
The cause of the constant CPU usage is the sound. If you do not need sound in your emulator you can disable it by editing the AVD's config file.
Change/add those two lines
hw.audioInput=no
hw.audioOutput=no
On Linux/Mac the file is located at ~/.android/avd/<AVD_Name>.avd/config.ini
On Windows the file is located at C:\Users\<username>\.android\avd\<AVD_Name>.avd\config.ini
@erlepereira
erlepereira / DNSMasq_withMalwareBlocking.md
Last active January 22, 2025 23:49
Using DNSMasq as a caching nameserver & add in a malware etc blocking

Assuming a Properly configured DNSMasq

a quickstart for dnsmasq is given at the end if you have not set it up yet.

something like this will add a great regularly updated malware file for it to use. More security and privacy to you! Specifically, this uses https://github.com/StevenBlack/hosts Choose one of the Raw Hosts file from there to use.

To setup DNSMasq, follow the below ...

wget -O- https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts | awk '$1 == "0.0.0.0" { print "address=/"$2"/0.0.0.0/"}' > /etc/dnsmasq.d/malware.conf`
@w33zy
w33zy / jpg-png-optimize.md
Created January 4, 2018 20:39 — forked from VirtuBox/jpg-png-optimize.md
Optimize your jpg & png images with jpegoptim and optipng on linux

JPG and PNG image bulk optimization

Install jpegoptim and optipng

apt update && apt install jpegoptim optipng -y

JPG optimization

cd /path/to/your/image/folder
@soomtong
soomtong / swap-key-guide.sh
Last active September 22, 2017 12:15
Swap modify keys in Linux Ubuntu
// https://www.x.org/archive/X11R6.8.1/doc/xmodmap.1.html
// https://www.linux.com/learn/how-kill-caps-lock-your-linux-desktop
// http://egloos.zum.com/nemonein/v/5222946
$ tail .zshrc
if [[ "$(uname -s)" == "Linux" ]]; then
if [ -x ~/Dropbox/config/tweak/swap_key.sh ]; then
xmodmap ~/Dropbox/config/tweak/swap_key.sh
fi
fi
@PrabhatKJena
PrabhatKJena / git-diff-spreadsheet.md
Last active December 27, 2024 15:55
How to git diff for MS-Excel files(xls/xlsx) on Mac-OS

How to git diff for MS-Excel files(xls/xlsx) on Mac-OS

Installation

Prerequisites

  • Requires Java 1.6 or higher.
  • Assumes Java is added to PATH (to check open a cmd and run java -version)
  • No other platform specific requirements
  • A shell script and a bat script are packaged
@yassermog
yassermog / MY_Input.php
Last active August 1, 2018 10:00 — forked from nambok/MY_Input.php
Extends codeigniter input class to accept put and delete requests ........ Just Put this file in application/core/MY_Input.php ........ NOW you can $data=$this->input->put('key');
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class MY_Input extends CI_Input {
/**
* Variables
*
*/
protected $delete;