Skip to content

Instantly share code, notes, and snippets.

View somahargitai's full-sized avatar

Soma somahargitai

View GitHub Profile
@somahargitai
somahargitai / JavascriptCheatsheet.MD
Last active March 4, 2021 18:36
Javascript Cheatsheet
@somahargitai
somahargitai / DockerAwsCheatSheet.MD
Last active July 21, 2020 15:21
Cheatsheet for modern cloud environment - AWS & Docker

cheatsheet list

Docker & AWS tips and tricks

Contents:

  1. Installation
  2. My favourites
  3. Basics
  4. Advanced
  5. Detailed Basics
@somahargitai
somahargitai / CmdCheatSheet.md
Last active June 6, 2022 18:03
Command Line Cheatsheet

cheatsheet list

Command Line tips and tricks

  • For Mac/Linux commands check my other Gist
  • I list DOS commands below but it is highly recommended to use the last version of Powershell (version 6+) instead. It began the default command line tool in Windows and provides a wider range of options. Some commands are not supported in Powershell directly. You can use them with cmd /c. For example to use assoc type cmd /c assoc.
  • for learning Powershell you can check this article

contents:

  1. My favourites
@somahargitai
somahargitai / tokeletes.java
Created January 15, 2019 00:13
Tökéletes Szám ellenőrzés
public class TokeletesDetektorClass{
public static void main(String []args){
System.out.println("Hello World");
int tokeletese1 = 6;
int tokeletese2 = 7;
System.out.println(tokeletesSzamDetektor(tokeletese1));
System.out.println(tokeletesSzamDetektor(tokeletese2));
@somahargitai
somahargitai / TerminalToolset.MD
Last active July 18, 2019 08:59
Terminal programs to increase productivity

cheatsheet list

Using multiple terminal windows

Is is a quite usual use case that you want to use several terminal windows: you work on several different locations, you run different services at the same time without doing it in the background and so on. On typical solution is to use tabs: Mac Terminal has this capability, on Linux you can do it with Gnome Terminal. Other solution is to split the terminal to panes, twux does it for you.

My recommendation is to use two tabs and in one of the tabs open twux panes for services.

Gnome Terminal

command: gnome-terminal

@somahargitai
somahargitai / NoSQLdb.MD
Last active July 18, 2019 08:59
My Notes on creating and handling MongoDB, DynamoDB or other NoSQL databases.

cheatsheet list

MongoDB

Create and start

  • Windows create a mongodb folder in C: (or wherever you want)
    mongod --directoryperdb --dbpath C:\mongodb\data\db --logpath C:\mongodb\log\mongo.log --logappend --rest --install

net start MongoDB - start it with net which is to handle services

const int controlPin1 = 2;
const int controlPin2 = 3;
const int enablePin = 9;
const int directionSwitchPin = 4;
const int onOffSwitchStateSwitchPin = 5;
const int potPin = A0;
int onOffSwitchState = 0;
int previousOnOffSwitchState = 0;
int directionSwitchState = 0;
int previousDirectionSwitchState = 0;
@somahargitai
somahargitai / MacCheatSheet.MD
Last active November 15, 2021 10:56
Good-to-know stuff for people new at Mac

cheatsheet list

Must installs

  • Homebrew for command line installs. It is like apt-get in GNU/Linux. Usually there are nextnextfinish install files provided, but from time to time you will need Homebrew. To install a software like wget just type brew install wget
  • zsh (brew install zsh), oh my zsh

Other Setup Issues

.bashrc and bash_profile

You should set environmental variables and other preparations Read about .bashrc and .bash_profile here or here, see a good example here

@somahargitai
somahargitai / ThingsMakeMeMad.MD
Last active November 19, 2023 06:17
My universal IT complainer surface

I just complain here

This is a complainer surface to show the world the dark side of my real-life developer experience

content
  • Things software engineers say about work