Skip to content

Instantly share code, notes, and snippets.

@junheon
junheon / embedded-file-viewer.md
Created March 11, 2021 08:15 — forked from tzmartin/embedded-file-viewer.md
Embedded File Viewer: Google Drive, OneDrive

Office Web Apps Viewer

('.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx')

http://view.officeapps.live.com/op/view.aspx?src=[OFFICE_FILE_URL]

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=[OFFICE_FILE_URL]' width='px' height='px' frameborder='0'>
</iframe>

OneDrive Embed Links

Keybase proof

I hereby claim:

  • I am junheon on github.
  • I am junheon (https://keybase.io/junheon) on keybase.
  • I have a public key ASCNAx3H4_Wwqe6LCloTvj8QxExGa18YIZNR1jDcazmdnwo

To claim this, I am signing this object:

@junheon
junheon / mac.md
Created November 14, 2018 13:44 — forked from lornajane/mac.md
Keyboard Only OS X

Keyboard-only Mac Cheatsheet

Hi, I'm Lorna and I don't use a mouse. I have had RSI issues since a bad workstation setup at work in 2006. I've tried a number of extra hardware modifications but what works best for me is to use the keyboard and only the keyboard, so I'm in a good position and never reaching for anything else (except my coffee cup!). I rather unwisely took a job which required me to use a mac (I've been a linux user until now and also had the ability to choose my tools carefully) so here is my cheatsheet of the apps, tricks and keyboard shortcuts I'm using, mostly for my own reference. Since keyboard-only use is also great for productivity, you may also find some of these ideas useful, in which case at least something good has come of this :)

Apps List

There's more detail on a few of these apps but here is a quick overview of the tools I've installed and found helpful

Tool Link Comments
@junheon
junheon / indexAccountsToCloudsearch.js
Created July 24, 2018 05:31 — forked from ryanfitz/indexAccountsToCloudsearch.js
index dynamodb data to cloudsearch using AWS Lambda
var AWS = require('aws-sdk');
exports.handler = function(event, context) {
var cloudsearchdomain = new AWS.CloudSearchDomain({endpoint: 'doc-dev-cinch-accounts-ltmqj5gt5mjb5hg5eyqaf2v5hu.us-east-1.cloudsearch.amazonaws.com'});
var documents = event.Records.map(function(record) {
var data = {id : record.dynamodb.Keys.id.S};
if (record.eventName === 'REMOVE') {
data.type = 'delete'
@junheon
junheon / sync.js
Created April 30, 2018 09:21 — forked from kbariotis/sync.js
Sync a DynamoDB table with ES Service
const AWS = require('aws-sdk');
const logger = require('./../lib/logger');
const docClient = new AWS.DynamoDB.DocumentClient();
const lambda = new AWS.Lambda();
/**
* Sync the whole DynamodDB Requests table
* with ES Service. Iterates the table by 1mb batches.
*
@junheon
junheon / queues.rake
Created March 1, 2016 03:07 — forked from activefx/queues.rake
Rake tasks for Shoryuken / AWS SQS queue creation and management
# See https://github.com/phstc/shoryuken/wiki/Creating-a-queue
namespace :queues do
desc "List all SQS queues"
task :list => :environment do
queues.each { |queue_url| puts queue_url }
end
desc "Get details for a specific SQS Queue"
# rubocop:disable Style/HashSyntax
# shoryuken用のタスク
namespace :queues do
desc 'Create default SNS & SQS'
task 'setup' => :environment do
# http://qiita.com/takeyuweb/items/cdc262d97c3e863c15ff
# TODO
end
desc "List all SQS queues"
# encoding: UTF-8
# Original article: http://dailyupgrade.me/post/6806676778/rubyonrails-full-messages-for-korean
# Modified to support more postpositions and client_side_validations gem.
#
# Add Korean translations like this:
# ko:
# errors:
# format: "%{message}"
# messages:
# blank: "%{attribute}((이)) 입력되지 않았습니다"

Setup Mac OS X

I'm in a hospital in Spain and my MacBook was stolen.

Hospital Commit

Now I bought a new one and need to configure it. I have an external hard drive that backup everything using Time Machine, but I don't want all the crap I had in the old one.

1. Run Software Update

{
"asi" : false, // Require semicolons
"boss" : false, // Don't allow variable assignments in conditionals
"browser" : true, // Standard browser globals should be predefined
"curly" : true, // Require curly braces for blocks (if, else, etc)
"eqeqeq" : true, // === should be required
"eqnull" : true, // == null comparisons should be tolerated
"evil" : true, // Use of eval is ok
"indent" : 4, // 4 spaces, soft-tabs
"latedef" : true, // Prohibit use of var before definition