Skip to content

Instantly share code, notes, and snippets.

View nixos89's full-sized avatar
🏠
Working from home

Nikola Stevanović nixos89

🏠
Working from home
View GitHub Profile
Original Video: https://www.youtube.com/watch?v=RbIbS0YMFs4
1:30 Why are ceritifications important?
> Validate mastery and competency in a given skill, helps acquire proficiency, acts as proof of your skills, adds competitive advantage, ensures knowledge of current industry tools
2:25 why should you be google cloud certified?
> proof of skills and ability to manage products and services on google cloud, proof of ability to drive business in a competitive market, increased career opportunities with a certificate in hand than without
3:45 which certification should you get?
> Associate Cloud Engineer (ACE) for beginners - shows ability to plan, deploy, and maintain successful operation of a cloud solution
-- Window Function examples
-- PostgreSQL conference South Africa 2018
-- By Willem Booysen
-- Youtube: https://www.youtube.com/watch?v=blHEnrYwySE
-- Create database and templates for demo
DROP DATABASE IF EXISTS WindowFunctions;
CREATE DATABASE WindowFunctions;
@y2k-shubham
y2k-shubham / ConnectionPoolManager.scala
Created September 6, 2018 13:59
ScalikeJdbc ConnectionPool wrapper utility
import java.sql.Connection
import com.typesafe.scalalogging.Logger
import com.company.utils.jdbc.MySQLConfig
import scalikejdbc.{ConnectionPool, ConnectionPoolSettings, DB, using}
import scala.util.control.NonFatal
object ConnectionPoolManager {
final VertxOptions options = new VertxOptions().setEventLoopPoolSize(4);
Vertx vertx = Vertx.vertx(options);
@dylanmckay
dylanmckay / facebook-contact-info-summary.rb
Last active July 3, 2025 21:22
A Ruby script for collecting phone record statistics from a Facebook user data dump
#! /usr/bin/env ruby
# NOTE: Requires Ruby 2.1 or greater.
# This script can be used to parse and dump the information from
# the 'html/contact_info.htm' file in a Facebook user data ZIP download.
#
# It prints all cell phone call + SMS message + MMS records, plus a summary of each.
#
# It also dumps all of the records into CSV files inside a 'CSV' folder, that is created
@android10
android10 / [FEDORA] gitkraken
Last active November 13, 2019 18:59 — forked from aelkz/[FEDORA] gitkraken
How to install gitkraken on Fedora/RedHat + launcher icon
#!/bin/bash
# Download GitKraken
wget https://release.gitkraken.com/linux/gitkraken-amd64.tar.gz
# copy the downloaded file into /opt directory
cp gitkraken-amd64.tar.gz /opt/gitkraken
cd /opt
@devdrops
devdrops / example.md
Last active August 12, 2025 11:54
Mysqldump from Docker container

Mysqldump from Docker container

docker exec -i mysql_container mysqldump -uroot -proot --databases database_name --skip-comments > /path/to/my/dump.sql

OBS

  • This will generate a dump.sql file in your host machine. Awesome, eh?
  • Avoid using --compact on your dump. This will make MySQL check your constraints which will cause troubles when reading your file (damm you MySQL). And don't use --force to fix this scenario: recreate your dump without --compact ¯_(ツ)_/¯
@juyal-ahmed
juyal-ahmed / install.md
Created December 15, 2016 11:21
Installing Spring STS or Eclipse IDE on Linux Mint 18 "Sarah"
  1. Download https://spring.io/tools latests
  2. Rename the extracted bundle as "springsource"
  3. sudo mv springsource /opt
  4. sudo chown -R root:root /opt/springsource
  5. sudo chmod -R +r /opt/springsource
  6. sudo cp /opt/springsource/sts-3.8.2.RELEASE/icon.xpm /usr/share/pixmaps/sts.xpm [Your version can be different]
  7. sudo touch /usr/share/applications/sts.desktop<<EOF [Desktop Entry] Encoding=UTF-8 Name=Spring IDE
@jefffederman
jefffederman / naming-git-branches.md
Last active March 3, 2025 22:43
Naming `git` branches

Naming git branches

tldr; {type}/{group[optional]}/short-form-of-what-it-does

HCM developers consistently use dash-delimited branch names. About half also use f/ and b/ prefixes ('feature' and 'bug', respectively).

I suggest we continue our current practices, specifically:

  • a branch should start with a prefix indicating its type: feature/, bug/, chore/, or hotfix/
  • prefer the whole word to the one letter abbreviation, the clarity outweighs the cost of the extra characters
@staltz
staltz / introrx.md
Last active September 2, 2025 08:17
The introduction to Reactive Programming you've been missing