Skip to content

Instantly share code, notes, and snippets.

View vladimyr's full-sized avatar
💭
fantom slobode

Dario Vladović vladimyr

💭
fantom slobode
View GitHub Profile
@vladimyr
vladimyr / sublime-launcher.bash
Created February 26, 2016 03:18
Sublime Text project launcher
get_project_file() {
local files
files=( *.sublime-project )
echo "${files[0]}"
}
run_sublime() {
local project_file
local sublime_cmd
@vladimyr
vladimyr / duckiesay.sh
Last active May 27, 2018 01:48
duckiesay
alias duckiesay="curl -sSL https://duckiesays.com/api/v1/says | jq -r .says | cowsay -f duck"
alias duckiesay="curl -sSL https://duckiesays.com/api/v1/says | json .says | cowsay -f duck"
@vladimyr
vladimyr / accessiblityjs.bookmarklet.js
Created October 19, 2017 00:24
accessiblityjs bookmarklet
(function() {
var script = document.createElement('script');
script.src = '//unpkg.com/accessibilityjs@1.0.1/dist/index-umd.js';
document.body.appendChild(script);
function logError(error) {
error.element.style.outline = '5px solid red';
error.element.addEventListener('click', function (e) {
alert([error.name, error.message].join('\n'));
e.stopPropagation();
<!doctype html>
<title>RollUp Visualizer</title>
<meta charset="utf-8">
<style>html {
background-color: #f7eedf;
color: #333;
}
body {
font-family: sans-serif;
@vladimyr
vladimyr / index.js
Last active October 7, 2018 18:12
haiku.ist
'use strict';
const minidom = require('minidom');
const r = require('got');
const urlJoin = require('url-join');
const API_URL = 'https://haiku.ist/wp-json/wp/v2/';
module.exports = {
count,
@vladimyr
vladimyr / reduce.example.js
Created February 15, 2019 19:18
reduce object
config = reduce(argv, (acc, val, key) => {
if (key === '_') return acc;
return Object.assign(acc, { [key]: val });
}, config);
function reduce(obj, callback, initalValue) {
return Object.keys(obj).reduce((acc, key) => {
return callback(acc, obj[key], key);
}, initalValue);
}
/**
* @license
Copyright (c) 2016-2018 by CyberSource */
'use strict';
!function(root, factory) {
if ("object" == typeof exports && "object" == typeof module) {
module.exports = factory();
} else {
if ("function" == typeof define && define.amd) {
define([], factory);
/**
* @license
Copyright (c) 2016-2018 by CyberSource flex-sdk-web v0.2.1 | (c) CyberSource 2017 */
'use strict';
!function(root, factory) {
if ("object" == typeof exports && "object" == typeof module) {
module.exports = factory();
} else {
if ("function" == typeof define && define.amd) {
define([], factory);

Keybase proof

I hereby claim:

  • I am vladimyr on github.
  • I am vladimyr (https://keybase.io/vladimyr) on keybase.
  • I have a public key whose fingerprint is 3980 17A5 462D D158 7D6D C32A 2FA0 C14E ECD9 B228

To claim this, I am signing this object:

@vladimyr
vladimyr / livecheck.md
Last active December 11, 2020 02:01
Debugging homebrew casks

Export Proxyman certificate:

security find-certificate -a -c Proxyman -p >cert.pem

Inspect livecheck network traffic:

HOMEBREW_NO_ENV_FILTERING=1 SSL_CERT_FILE=cert.pem https_proxy=http://localhost:9090 brew livecheck --debug