Skip to content

Instantly share code, notes, and snippets.

Avatar

Svetlin Ralchev iamralch

View GitHub Profile
View spec
openapi: 3.0.1
info:
title: StorageAPI
description:
Swagger definition of the tus core protocol and official extensions.
The paths are not normative, but showcase the example definition at https://github.com/tus/tus-resumable-upload-protocol/blob/master/protocol.md
contact:
email: garcia@lrz.de
license:
View experiment
openapi: 3.0.0
info:
title: Render API
version: "1.0"
contact:
name: Cliche Digital Engineering
url: https://github.com/cliche-digital/render-api
email: engineering@cliche.digital
@iamralch
iamralch / reset_virtualbox_dhcp_leases.sh
Created Nov 3, 2020 — forked from stafot/reset_virtualbox_dhcp_leases.sh
Resets virtualbox DHCP leases to ensure that minikube will always take a specific IP.
View reset_virtualbox_dhcp_leases.sh
#!/usr/bin/env bash
function minikube_reset_vbox_dhcp_leases() {
# Check OS version
case $OSTYPE in
darwin*)
VBOX_CONFIG_DIR=Library
;;
linux*)
View gist:276e1a4e60da678f8f793e525abca1fb
launchctl unload -w {,~}/Library/LaunchAgents/com.adobe.*.plist
sudo launchctl unload -w /Library/LaunchDaemons/com.adobe.*.plist
@iamralch
iamralch / time_travel_trigger.sql
Created Jan 31, 2018 — forked from myitcv/time_travel_trigger.sql
Trigger-based equivalent of old PostgreSQL time travel module - see http://blog.myitcv.org.uk/2014/02/25/row-level-version-control-with-postgresql.html for more details
View time_travel_trigger.sql
/*
Copyright (c) 2015 Paul Jolly <paul@myitcv.org.uk)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@iamralch
iamralch / app.js
Created May 31, 2017 — forked from RickWong/app.js
React without Webpack
View app.js
const App = ({name}) => {
return (
<h1>Hello {name}</h1>
);
};
ReactDOM.render(<App name="World" />, document.getElementById("App"));
@iamralch
iamralch / Slimdown.md
Created May 12, 2017 — forked from jbroadway/Slimdown.md
Slimdown - A simple regex-based Markdown parser.
View Slimdown.md

Slimdown

A very basic regex-based Markdown parser. Supports the following elements (and can be extended via Slimdown::add_rule()):

  • Headers
  • Links
  • Bold
  • Emphasis
  • Deletions
@iamralch
iamralch / README-Template.md
Created May 10, 2017 — forked from PurpleBooth/README-Template.md
A template to make good README.md
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

View on-jsx.markdown

Hi Nicholas,

I saw you tweet about JSX yesterday. It seemed like the discussion devolved pretty quickly but I wanted to share our experience over the last year. I understand your concerns. I've made similar remarks about JSX. When we started using it Planning Center, I lead the charge to write React without it. I don't imagine I'd have much to say that you haven't considered but, if it's helpful, here's a pattern that changed my opinion:

The idea that "React is the V in MVC" is disingenuous. It's a good pitch but, for many of us, it feels like in invitation to repeat our history of coupled views. In practice, React is the V and the C. Dan Abramov describes the division as Smart and Dumb Components. At our office, we call them stateless and container components (view-controllers if we're Flux). The idea is pretty simple: components can'

@iamralch
iamralch / spec.proto
Created Dec 17, 2015
Protocol Buffers Company Example
View spec.proto
syntax = 'proto2';
package example;
enum CompanyType {
Private = 17;
Public = 18;
NonProfit = 19;
};