Skip to content

Instantly share code, notes, and snippets.

View starlocke's full-sized avatar
:shipit:
Guaranteed to work behind the scenes, so you don't have to!

Victor Yap starlocke

:shipit:
Guaranteed to work behind the scenes, so you don't have to!
View GitHub Profile
https://drive.google.com/file/d/13m18tTnXQapSEQnF1DgZBVVe_jj41nZV/view?usp=sharing
@starlocke
starlocke / resume.json
Last active August 19, 2023 17:06
resume.json
{
"basics": {
"name": "Victor Yap",
"label": "Tech Guru",
"picture": "",
"email": "sir.victor.yap@gmail.com",
"phone": "(514) 558-5979",
"website": "https://www.cul-de-sac.ca/",
"summary": "A highly driven and results-oriented Technologist & Senior Software Developer with 15+ years of proven experience leveraging a broad portfolio of systems, programming languages, and user experience (UX) skills to design creative technical solutions for on-premises, cloud, and SaaS platforms and complex database-centric systems. Agile Methodology / Kanban / Scaled-Agile Framework (SAFe). Data Pipelines. ETL (Entry-Transform-Load). DevOps. CI/CD.",
"location": {
// ColorHash @ https://github.com/zenozeng/color-hash -- minified
var _block,_blocks,_bytes,_finalized,_first,_h0,_h1,_h2,_h3,_h4,_h5,_h6,_h7,_hashed,_hBytes,_is224,_lastByteIndex,_start,_inner,_is224_1,_oKeyPad,_sharedMemory,__extends=this&&this.__extends||function(){var t=function(e,s){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s])})(e,s)};return function(e,s){if("function"!=typeof s&&null!==s)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function i(){this.constructor=e}t(e,s),e.prototype=null===s?Object.create(s):(i.prototype=s.prototype,new i)}}(),__classPrivateFieldSet=this&&this.__classPrivateFieldSet||function(t,e,s){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,s),s},__classPrivateFieldGet=this&&this.__classPrivateFieldGet||function(t,e){if(!e.has(t))throw new TypeError("attempted t
@starlocke
starlocke / md-style.css
Created October 25, 2021 18:38
VS Code Markdown Preview Stylesheet
/*
- Place this file at the "root" of a workspace/main-folder.
- .gitignore this file.
- Setup this settings.json configuration like so (substitute the workspace path):
{
"markdown.styles": [
"((absolute-path-of-workspace))/md-style.css"
]
@starlocke
starlocke / confluence.css
Last active October 22, 2021 14:29
Confluence and JIRA UI/UX upgrades
/* Headlings become far more distinct, when viewing pages */
/* Use a browser extension such as 'Stylish' to inject these custom styles */
/* Victor Mono font: https://rubjo.github.io/victor-mono/ */
#main-content h1, #confluence-ui h1 {
font-family: 'Victor Mono', monospace;
font-style: italic;
font-weight: bold;
color: crimson;
}
let http = require('http');
(function follow(url){
url = url.indexOf('?') !== -1 ? url.replace(/\?/,'.json?') : url + '.json';
http.get(url, response => {
let rawData = '';
response.on('data', data => {
rawData += data;
});
response.on('end', data => {
@starlocke
starlocke / add_all_github_forks.js
Last active October 30, 2017 19:42
Print out all "git remote add" commands for all the forks of a project.
// Execute this function upon a project's "/network/members" page.
// - You also need to "inject" jQuery onto that page, first.
// Ex: https://github.com/example/test/network/members (replace "example/test" - NO LONGER WORKS)
// Ex: https://github.com/google/git-appraise-web/network/members (another example)
function add_all_github_forks(){
var matches = window.location.href.match(/github.com[/]\w+[/]([^/]+)/); // [^/]+ used to be \w+, now also captures "-" in names
var project_name = '';
if(matches == null){
console.log("no match, quitting early");
return;
@starlocke
starlocke / auto_translate.js
Created February 13, 2017 20:03
#Twitter {Auto-Translate} {You can have this.}
/**
* 1. Install "CJS" (Custom JavaScript for Web) Extension for your
* https://chrome.google.com/webstore/detail/custom-javascript-for-web/poakhlngfciodnhlhhgnaaelnpjljija
* 2. Apply the following snippet for the host "https://twitter.com"
* 3. Save
*/
var auto_translate = function(){
$('button.translate-button:visible').click();
};
@starlocke
starlocke / lockon
Created February 11, 2016 21:05
Small python script template to get current system to lock on to a particular load balance server; must be customized for target hosts
#!/usr/bin/python
import os
import sys
if len(sys.argv) < 2:
print 'Usage: load [a|b|c]'
raise SystemExit()
if sys.argv[1] == 'a':
@starlocke
starlocke / google_analytics_experiment_snippet.js
Created January 7, 2016 17:01
Marketo-oriented Google Analytics Content Experiment Code
<!-- Google Analytics Content Experiment code // On-Off controlled by server-side logic -->
<script>
document.ga_exp_key = ''; // Server-side logic will be responsible for this value.
if(document.ga_exp_key.length > 0){
function utmx_section(){}function utmx(){}(function(){var
k=document.ga_exp_key,d=document,l=d.location,c=d.cookie;
if(l.search.indexOf('utm_expid='+k)>0)return;
function f(n){if(c){var i=c.indexOf(n+'=');if(i>-1){var j=c.
indexOf(';',i);return escape(c.substring(i+n.length+1,j<0?c.
length:j))}}}var x=f('__utmx'),xx=f('__utmxx'),h=l.hash;d.write(