Skip to content

Instantly share code, notes, and snippets.

View olebedev's full-sized avatar
🏄‍♂️
🌊 🌊 🌊

Oleg Lebedev olebedev

🏄‍♂️
🌊 🌊 🌊
View GitHub Profile
@olebedev
olebedev / README.md
Created December 30, 2016 06:31 — forked from rjeczalik/README.md
Go, multiple packages and coveralls.io

Go, multiple packages and coveralls.io

Single profile for single Go package

For Go projects that consist of only one package, the following Travis configuration is enough to get started with coveralls.io. You may want to encrypt your $COVERALLS_TOKEN via Travis encryption keys though.

language: go
go:
 - 1.3.1
@olebedev
olebedev / ffmpeg-compress-mp4
Created January 28, 2017 19:10 — forked from lukehedger/ffmpeg-compress-mp4
Compress mp4 using FFMPEG
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4
@olebedev
olebedev / _upgrade-pg9.4-to-pg9.5.md
Created August 2, 2017 10:29 — forked from chbrown/_upgrade-pg9.4-to-pg9.5.md
Upgrade PostgreSQL 9.4 to 9.5 on Mac OS X with Homebrew

First, check your current config (example output in homebrew.mxcl.postgresql.plist.xml lower down in this gist):

cat ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist

Most importantly, note the -D /usr/local/var/postgres argument.

Second, shut down your current PostgreSQL.

launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
@olebedev
olebedev / fresh-chrome-with-custom-tz.sh
Created December 16, 2017 05:33 — forked from prasadsilva/fresh-chrome-with-custom-tz.sh
Launch new instances of Google Chrome on OS X with isolated cache, cookies, user config and custom Timezone
#!/usr/bin/env bash
# fresh-chrome
#
# Use this script on OS X to launch a new instance of Google Chrome
# with its own empty cache, cookies, and user configuration.
#
# The first time you run this script, it will launch a new Google
# Chrome instance with a permanent user-data directory, which you can
# customize below. Perform any initial setup you want to keep on every
@olebedev
olebedev / The Technical Interview Cheat Sheet.md
Created June 4, 2018 06:20 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@olebedev
olebedev / .gitignore
Last active April 19, 2020 22:38 — forked from jgamblin/slackspotify.sh
A Script To Set Current Spotify Song As Slack Status
.apikey
@olebedev
olebedev / main.js
Last active May 21, 2020 21:37
An AWS Lambda stub
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const handler = async (event, context) => {
return {
ok: true,
event,
context,
};
@olebedev
olebedev / codimd-dependencies.nix
Created May 21, 2021 08:27 — forked from sternenseemann/codimd-dependencies.nix
Example of a minified nix output of yarn2nix for the CodiMD/server project yarn.lock
{ fetchurl, fetchgit }:
self:
super:
let
registries = {
yarn = n:
v:
"https://registry.yarnpkg.com/${n}/-/${n}-${v}.tgz";
npm = n:
v:
@olebedev
olebedev / free-database-hosting.md
Created September 4, 2022 22:53 — forked from bmaupin/free-database-hosting.md
Free database hosting
@olebedev
olebedev / README.md
Created November 15, 2022 21:50
js2nix demo: marp-cli

Usage

λ export CHROME_PATH="/Applications/Google Chrome.app"
λ nix-shell --pure --keep CHROME_PATH --run 'marp hello.md'