Skip to content

Instantly share code, notes, and snippets.

View inadarei's full-sized avatar

Irakli Nadareishvili inadarei

View GitHub Profile
inadarei /
Created November 4, 2022 01:39
Python DevEnv in 2022
> echo "Here we go"
import java.util.*;
class MovieDashboard {
public static void main(String[] args) {
System.out.println("Getting movies...");
MovieLister mv = new MovieLister();
Movie[] toWatch = mv.moviesDirectedBy("Quentin Tarantino");
System.out.println (Arrays.toString(toWatch));
inadarei /
Last active July 1, 2020 12:21
Go Essential Tools and Libraries
# Atom Editor's Must-Have Plugins
- AsciiDoc Preview
- hard-wrap
- Hey Pane
- Wordcount
inadarei /
Last active May 15, 2020 12:17
Setting up Python3 Environment on MacOS High Sierra+ and/or Ubuntu

Installing Python 3.x and Pip3 on Mac

# Install Homebrew itself
> brew install python3
> python -V
Python 2.7.10
> python3 -V
Python 3.7.0
# Eureka!
inadarei /
Last active June 24, 2018 15:21
Stop and Start Palo Alto GlobalProtect
echo "Stopping GlobalProtect..." 
launchctl remove 
launchctl remove 
echo "Done!"
const a = [1,2,3,4,5];
const aCloned = [...a];
const o = { name: "john", lastname: "nelson", skills: "python" };
const oCloned = { ...o };
inadarei /
Created November 30, 2017 15:33 — forked from yoavniran/
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai and Sinon

The Ultimate Unit Testing Cheat-sheet

For Mocha, Chai and Sinon

using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies

inadarei /
Last active December 28, 2020 17:43
IP Address Classes, CIDRs and Network Masks

Network Classes

IP Addresses identify both a network as well as host on a network. Depending on the class of a network, certain amount of bits in the IP (32 bits overall) are allocated for network adressing and the rest is for: adressing the host on the network.

  1. Class A: first octet is network, last three: host
  2. Class B: first two octets are for network, last two: host
  3. Class C: first three octets are for network, only last octet is for host.

Furthermore, looking at the IP itself, you can tell which class of IP it is, using the following rules:

inadarei /
Last active October 20, 2020 01:57
Minikube Setup: Docker for Mac / Sierra

Prerequisite: latest Docker for Mac on MacOS Sierra

$ brew update
$ brew install --HEAD xhyve
$ brew install docker-machine-driver-xhyve
$ sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
$ sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve

$ curl -Lo minikube && chmod +x minikube && sudo mv minikube /usr/local/bin/