Skip to content

Instantly share code, notes, and snippets.

View F1ashhimself's full-sized avatar
💻
coding

Max Biloborodko F1ashhimself

💻
coding
  • Solarisbank
  • Kyiv
View GitHub Profile
@F1ashhimself
F1ashhimself / iterm2-solarized.md
Created November 18, 2024 11:50 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@F1ashhimself
F1ashhimself / change ssh port amazo ec2 instance.md
Created September 25, 2024 10:28 — forked from tusharf5/change ssh port amazo ec2 instance.md
Change SSH Port on Amazon EC2 Instance

Change SSH Port on Amazon EC2 Instance

1. Launch and connect to EC2 instance running Amazon Linux 2.
2. Promote to root and edit /etc/ssh/sshd_config 
## sudo vi /etc/ssh/sshd_config
3. Edit line 17 (usually 17) #PORT 22. You'll need to un-comment the line and change the port to whatever you like. 
## PORT 9222
4. Save changes and exit
## :wq
@F1ashhimself
F1ashhimself / pre-commit
Last active June 2, 2020 08:05
Flake8 pre-commit hook
#!/usr/bin/env python
from __future__ import with_statement
import os
import re
import shutil
import subprocess
import sys
import tempfile
from shutil import copyfile
@F1ashhimself
F1ashhimself / facebook_numbers.py
Created April 2, 2014 23:06
Facebook numbers
def get_square(side_length):
"""
Calculates square.
Arguments:
- side_length: int, length of square side.
Returns:
- List with values for square.