Skip to content

Instantly share code, notes, and snippets.

View wonjun27's full-sized avatar
🎯
Focusing

Won Jun Bae wonjun27

🎯
Focusing
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:mi="http://schemas.ingestion.microsoft.com/common/"><channel><title><![CDATA[Publishing Dev Site HTML TITLE]]></title><description><![CDATA[Pub Dev Site is a place where the Publishing x Platform team at The Arena Group can test things.]]></description><link>https://www.publishingdevesite.com</link><image><url>https://www.publishingdevesite.com/site/images/apple-touch-icon.png</url><title>Publishing Dev Site HTML TITLE</title><link>https://www.publishingdevesite.com</link></image><generator>Tempest</generator><lastBuildDate>Tue, 25 Jul 2023 16:55:03 GMT</lastBuildDate><atom:link href="https://pubdev.localhost:9001/.rss/full/?feature=use-syndication-service:on" rel="self" type="application/rss+xml"/><pubDate>Tue, 25 Jul 2023 16:55:03 GMT</pubDate><copyright><![CDATA
@wonjun27
wonjun27 / bash_aliases.sh
Created August 15, 2018 05:43 — forked from Fuxy22/bash_aliases.sh
Bash Script functions to Manage /etc/hosts file for adding/removing hostnames.
# remove specified host from /etc/hosts
function removehost() {
if [[ "$1" ]]
then
HOSTNAME=$1
if [ -n "$(grep $HOSTNAME /etc/hosts)" ]
then
echo "$HOSTNAME Found in your /etc/hosts, Removing now...";
sudo sed -i".bak" "/$HOSTNAME/d" /etc/hosts
@wonjun27
wonjun27 / Dockerfile
Created May 13, 2016 01:47 — forked from yefim/Dockerrun.aws.json
Build a Docker image, push it to AWS EC2 Container Registry, then deploy it to AWS Elastic Beanstalk
# Example Dockerfile
FROM hello-world
@wonjun27
wonjun27 / markdown-to-pdf.txt
Created October 24, 2015 15:17 — forked from davisford/markdown-to-pdf.txt
Convert Markdown to PDF
$ brew install markdown htmldoc
$ markdown <file.md> | htmldoc --cont --headfootsize 8.0 --linkcolor blue --linkstyle plain --format pdf14 - > <file.pdf>
@wonjun27
wonjun27 / bbs.js
Created October 14, 2015 12:43 — forked from TooTallNate/bbs.js
Running a node.js REPL over `curl`
/**
* Requires node v0.7.7 or greater.
*
* To connect: $ curl -sSNT. localhost:8000
*/
var http = require('http')
, repl = require('repl')
, buf0 = new Buffer([0])
@wonjun27
wonjun27 / repl-client.js
Created October 14, 2015 12:40 — forked from TooTallNate/repl-client.js
Running a "full-featured" REPL using a net.Server and net.Socket
var net = require('net')
var sock = net.connect(1337)
process.stdin.pipe(sock)
sock.pipe(process.stdout)
sock.on('connect', function () {
process.stdin.resume();
process.stdin.setRawMode(true)
@wonjun27
wonjun27 / xpub-xsub.js
Created September 29, 2015 00:28 — forked from tjanczuk/xpub-xsub.js
How to connect 5 publishers with 5 subscribers over TCP using ZeroMQ's XPUB/XSUB proxy
// How to connect 5 publishers with 5 subscribers
// over TCP using ZeroMQ's XPUB/XSUB proxy.
// sub (connect)
// <-8701->
// (bind) xpub <---> xsub (bind)
// <-8700->
// (connect) pub
var zmq = require('zmq');
@wonjun27
wonjun27 / FITC 2015 Toronto
Last active October 12, 2015 17:03
FITC 2015 Toronto
TypeScript for Angular 2.0
Service Worker vs UI Threads
---------
Disposable and Repeatable: Dev and Test Environments with Terraform‏
Terraform is a tool for automating and managing your physical and virtual servers, containers, DNS, and other resources. Start using it early to streamline your development and testing process, and reap the benefits as you move into production.
We’ll go through a few ways to apply the “Infrastructure as code” concept to your daily routine, and how Terraform can help you get there.
Sean Swehla
digital ocean - droplet compute team
@wonjun27
wonjun27 / config.app.php
Last active August 29, 2015 02:01 — forked from fideloper/config.app.php
Master-Slave database in CodeIgniter
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
//Create a new config file
/*
|--------------------------------------------------------------------------
| Number of databases in use
|--------------------------------------------------------------------------
|
| Using a Master and Slave. The Slave doubles as a read-only database.
@wonjun27
wonjun27 / how-to-view-source-of-chrome-extension.md
Last active August 28, 2015 14:15 — forked from paulirish/how-to-view-source-of-chrome-extension.md
How to view-source of a Chrome extension

Option 1: Command-line download extension as zip and extract

extension_id=jifpbeccnghkjeaalbbjmodiffmgedin   # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=unknown&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc" 
unzip -d "$extension_id-source" "$extension_id.zip"

Thx to crxviewer for the magic download URL.