Skip to content

Instantly share code, notes, and snippets.

View skovtunenko's full-sized avatar
🤠

Sergio Kovtunenko skovtunenko

🤠
View GitHub Profile
@skovtunenko
skovtunenko / diagram.sh
Created January 24, 2020 10:42 — forked from maciejwalkowiak/diagram.sh
Generate Maven modules dependency graph
./mvnw com.github.ferstl:depgraph-maven-plugin:3.0.1:aggregate -DcustomStyleConfiguration=./styles.json -DcreateImage=true -Dscope=compile "-Dincludes=org.springframework.boot:*"
@skovtunenko
skovtunenko / openconnect.sh
Created June 20, 2019 06:58 — forked from jesbrd/openconnect.sh
Script to connect and disconnect to/from openconnect without pain
#!/bin/bash
# This script connects the computer to a vpn server using openconnect without pain
prog_name=$(basename $0)
# CHANGE YOUR_VPN_SERVER_DOMAIN to the VPN server you know like example.com
domain=YOUR_VPN_SERVER_DOMAIN
function help {
#!/bin/bash
# +----------------------------------------------------------------------+
# | |
# | Set up Mac OS X to store temporary files in RAM rather than on disk.|
# | Updated for Yosemite, 16 GB of RAM |
# | |
# | By James Newell <jrnewell@github> |
# | |
# | Originally by Ricardo Gameiro <http://blogs.nullvision.com/?p=357> |
// imports a couple of java tasks
apply plugin: "java"
// List available tasks in the shell
> gradle tasks
// A Closure that configures the sourceSets Task
// Sets the main folder as Source folder (where the compiler is looking up the .java files)
sourceSets {
main.java.srcDir "src/main"
@skovtunenko
skovtunenko / README.md
Created December 2, 2018 22:51 — forked from hofmannsven/README.md
Increase key repeat rate on macOS

Increase key repeat rate on macOS

Settings: System Preferences » Keyboard » Key Repeat/Delay Until Repeat

Use the commands below to increase the key repeat rate on macOS beyond the possible settings via the user interface. The changes aren't applied until you restart your computer.

Source: https://apple.stackexchange.com/a/83923

@skovtunenko
skovtunenko / .bash_profile
Created November 30, 2018 19:40 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@skovtunenko
skovtunenko / go-stdlib-interface-selected.md
Created September 22, 2018 08:34 — forked from asukakenji/go-stdlib-interface-selected.md
Go (Golang) Standard Library Interfaces (Selected)

Go (Golang) Standard Library Interfaces (Selected)

This is not an exhaustive list of all interfaces in Go's standard library. I only list those I think are important. Interfaces defined in frequently used packages (like io, fmt) are included. Interfaces that have significant importance are also included.

All of the following information is based on go version go1.8.3 darwin/amd64.

@skovtunenko
skovtunenko / rm_mysql.md
Created September 7, 2018 19:20 — forked from vitorbritto/rm_mysql.md
Remove MySQL completely from Mac OSX

Remove MySQL completely

  1. Open the Terminal

  2. Use mysqldump to backup your databases

  3. Check for MySQL processes with: ps -ax | grep mysql

  4. Stop and kill any MySQL processes

  5. Analyze MySQL on HomeBrew:

brew remove mysql

@skovtunenko
skovtunenko / docker.md
Created August 3, 2018 06:33 — forked from f3l1x/aliases
Docker - installation, tips, commands, aliases

Docker

Shortcuts

$ curl -fsSL https://raw.github.com/tcnksm/docker-alias/master/zshrc >> ~/.bashrc && source ~/.bashrc
# ------------------------------------
@skovtunenko
skovtunenko / backpressure.go
Created October 20, 2017 07:36 — forked from marianogappa/backpressure.go
Example backpressure implementation in Go
/*
This snippet is an example of backpressure implementation in Go.
It doesn't run in Go Playground, because it starts an HTTP Server.
The example starts an HTTP server and sends multiple requests to it. The server starts denying
requests by replying an "X" (i.e. a 502) when its buffered channel reaches capacity.
This is not the same as rate-limiting; you might be interested in https://github.com/juju/ratelimit
or https://godoc.org/golang.org/x/time/rate.