Skip to content

Instantly share code, notes, and snippets.

var express = require('express');
var app = express();
var session = require('express-session');
var FileStore = require('session-file-store')(session);
var uuid = require('uuid');
app.use(session({
genid: function(req) {
// uuid for guest session ids
var id = uuid.v4();
@valery-barysok
valery-barysok / license-badges.md
Created December 21, 2016 04:34 — forked from lukas-h/license-badges.md
License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file. Easily copy and paste the code under the badges into your Markdown files.

Notes

  • Badges are made with Shields.io.
  • This badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Want to add a License?

Comment this gist or write me an E-Mail ([email protected])

Homebrew Formula patching old ImageMagick release 6.9.2-10

Install

brew install https://gist.githubusercontent.com/baek-jinoo/17dd5e55284b2ab0a05695a7224c1587/raw/f71affa1ec5dc492d375285ba4f851f4b4fec4f5/imagemagick.rb

Pin this version

To prevent upgrades you can pin this version.

@valery-barysok
valery-barysok / pyenv+direnv on OSX.md
Created April 29, 2018 00:36 — forked from alexhayes/ pyenv+direnv on OSX.md
Awesomely easy virtualenvs on OSX using pyenv and direnv

Awesomely easy virtualenvs on OSX using pyenv and direnv

Never forget to activate that virtualenv or set that environment variable ever again...

Install

  1. Install pyenv

     brew install pyenv
    
@valery-barysok
valery-barysok / AWSDevOpsStudyNotes
Created February 13, 2019 12:46 — forked from j-mprabhakaran/AWSDevOpsStudyNotes
AWS DevOps Engineer Professional Study Notes
CI & CD:
========
2 core software development processes
CI process of automating regular code commits followed by an automated build and test process designed to highlight intergration issues early.
Additional tooling and functionality provided by Bamboo, CruiseControl, Jenkins, Go and TeamCity etc.
workflow based
CD takes the form of a workflow based process which accepts a tested software build payload from a CI server. Automates the deployment into a working QA, Pre-prod or Prod environment.
AWS CodeDeploy and CodePipeline provide CI/CD services
Elasticbeanstalk and CFN provide functionality which can be utilized by CI/CD servers.
@valery-barysok
valery-barysok / README.md
Created April 18, 2019 20:14 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@valery-barysok
valery-barysok / netbeans-macos-app-packager.sh
Created June 4, 2019 00:08 — forked from manoelcampos/netbeans-macos-app-packager.sh
A shell script to create a NetBeans.app package for macOS from the NetBeans binaries
#!/bin/bash
clear
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then
echo "
appify v3.0.1 for Mac OS X - http://mths.be/appify
Creates the simplest possible Mac app from a dir.
Usage: `basename "$0"` netbeans_dir
- netbeans_dir: The directory containing all the files for a specific NetBeans release.
@valery-barysok
valery-barysok / main.go
Created March 22, 2021 20:01 — forked from odsod/main.go
Scrub unsupported annotations from a protobuf descriptor before submitting to Google Cloud Endpoints.
package main
import (
"flag"
"io/ioutil"
"log"
"os"
"google.golang.org/genproto/googleapis/api/annotations"
"google.golang.org/genproto/googleapis/longrunning"
@valery-barysok
valery-barysok / fast-latex-input.el
Created December 8, 2021 02:01 — forked from karthink/fast-latex-input.el
Configuration for super-fast Latex input using AucTeX, CDLatex and a bit of YaSnippet. See https://karthinks.com/software/latex-input-for-impatient-scholars
;; This elisp code uses use-package, a macro to simplify configuration. It will
;; install it if it's not available, so please edit the following code as
;; appropriate before running it.
;; Note that this file does not define any auto-expanding YaSnippets.
;; Install use-package
(package-install 'use-package)
;; AucTeX settings - almost no changes
@valery-barysok
valery-barysok / cleanup-docker.md
Created January 22, 2022 20:40 — forked from F21/cleanup-docker.md
Commands to clean up docker

Remove dangling images

docker images -qf dangling=true | xargs docker rmi

Remove dangling volumes

docker volume ls -qf dangling=true | xargs -r docker volume rm