Skip to content

Instantly share code, notes, and snippets.

https://tt2-optimizer.herokuapp.com/
hero=cosette=phom=online=0=1=e15=pct25=bos_1_120100|sov_1_1000000|coc_1_270000|hs_1_100000|bop_1_70000|kb_1_2000|zc_1_400|gfa_1_60000|coe_1_600000|hsw_1_110000|dr_1_130000|dh_1_2000|ss_1_3000|tr_1_700000|hb_1_900000|tsos_1_900000|fb_1_140000|cota_1_400000|ttt_1_900000|hh_1_11000|foe_1_3000|ie_1_600000|orc_1_500000|hos2_1_220000|ao_1_150000|eop_1_100000|af_1_130000|hos_1_1000000|td_1_170000|hs2_1_180000|roc_1_200000|bod_1_250000|hom_1_200000|tp_1_200000|as_1_240000|ig_1_800000|tm_1_50000|rt_1_600000|lp_1_600000|bor_1_1150|pof_1_1200000|eoe_1_700000|hoti_1_40|pt_1_30|fs_1_30|rof_1_30|ga_1_30|a_1_30|sg_1_30|ip_1_20|gok_1_30|ts_1_40|os_1_30|tac_1_40|ho_1_40|ae_1_40|ms_1_40|mbos_1_40|eof_1_40|dc_1_50|is_1_50|aom_1_40|eotk_1_40|boh_1_40|lfoa_1_40|lkm_1_40|sor_1_40|tms_1_40|as2_1_40|wod_1_60=kv_1_2|cho_1_1|pe_1_1|phom_1_10|cs_1_1|si_1_0|lbu_1_0|bf_1_0|fz_1_0|mc_1_10|sow_1_6|hm_1_7|aas_1_8|ti_1_6|coo_1_13|aaw_1_6|as_1_4|lbr_1_3|mu_1_6|ar_1_1|pv_1_1|fc_1_6|ms_1_1|ed_1_0|mm_1_0|ls_
@russelyang
russelyang / README.md
Created August 10, 2017 16:44 — forked from pcj/README.md
Installing bazel 0.4.5 on Windows

Installing bazel 0.4.5 on Windows 10

  1. Read the steps in https://bazel.build/versions/master/docs/windows.html.
  2. Read the github issues bazelbuild/bazel#2431 and related bazelbuild/bazel#2449.
  3. May be useful to consult https://github.com/bazelbuild/bazel/blob/master/tools/cpp/cc_configure.bzl.

Install Msys2

  1. Make sure you install the Feb 5 2016 Msys2 version from https://sourceforge.net/projects/msys2/files/Base/x86_64/msys2-x86_64-20160205.exe/download.
  2. The install path must be c:\tools\msys64 (hardcoded into bazel).
<html>
<head>
<script src="/bower_components/origin-locale/dist/origin-locale.js"></script>
<script src="/bower_components/lodash/lodash.js"></script>
<script src="/bower_components/origin-jssdk/dist/origin-jssdk.js"></script>
<style>
body {
background-color: black;
}
{
"compilerOptions" : {
"declaration" : true,
"module" : "es2015",
"target" : "es5"
},
"angularCompilerOptions" : {
"strictMetadataEmit" : true,
"skipTemplateCodegen" : true
}
<!DOCTYPE html>
<html>
<head>
<script src="https://code.angularjs.org/tools/system.js"></script>
<script src="https://code.angularjs.org/2.0.0-beta.17/Rx.js"></script>
<script src="https://code.angularjs.org/2.0.0-beta.17/angular2-polyfills.js"></script>
<script src="https://code.angularjs.org/2.0.0-beta.17/angular2.js"></script>
<script>
import {Component} from 'angular2/core';
@Component( {
selector: 'ngc-hello-component',
template: '<p>Hello {{name}}</p>'
})
export class HelloComponent {
name : string;
constructor() {

SSH agent forwarding and screen

When connecting to a remote server via SSH it is often convenient to use SSH agent forwarding so that you don't need a separate keypair on that server for connecting to further servers.

This is enabled by adding the

ForwardAgent yes

option to any of your Host entries in ~/.ssh/config (or alternatively with the -A option). Don't set this option in a wildcard Host * section since any user on the remote server that can bypass file permissions can now als use keys loaded in your SSH agent. So only use this with hosts you trust.

@russelyang
russelyang / Nested Paragraph Systems in CQ5
Created April 22, 2016 22:26 — forked from kand/Nested Paragraph Systems in CQ5
Sometimes nested paragraph systems are needed for special layout type components in CQ5. Here is a custom paragraph system that will overcome the issues related to nesting out of the box paragraph systems.
Set up your file structure for the innerParsys component:
innerParsys
-> parsys
-> new
- _cq_editConfig.xml
- .content.xml
- _cq_editConfig.xml
- .content.xml
- parsys.jsp
@russelyang
russelyang / gist:55a1bf055e49b3c73002
Created December 17, 2015 23:28
download-jdk7.sh
curl -L --header "Cookie: s_nr=1359635827494; s_cc=true; gpw_e24=http%3A%2F%2Fwww.oracle.com%2Ftechnetwork%2Fjava%2Fjavase%2Fdownloads%2Fjdk7-downloads-1880260.html; s_sq=%5B%5BB%5D%5D; gpv_p24=no%20value" http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.tar.gz -o jdk-7u79-linux-x64.tar.gz
https://extjs.cachefly.net/ext-3.4.0/ext-all-debug.js
https://extjs.cachefly.net/ext-3.4.0/resources/css/ext-all.css
https://extjs.cachefly.net/ext-3.4.0/adapter/ext/ext-base-debug.js