Skip to content

Instantly share code, notes, and snippets.

View abykal's full-sized avatar
💻
#DevSecOps

Aby Abraham abykal

💻
#DevSecOps
View GitHub Profile
@abykal
abykal / Add_Existing_Project_To_Git.md
Last active December 15, 2022 10:49 — forked from alexpchin/Add_Existing_Project_To_Git.md
Add Existing Project To Git Repo

#Adding an existing project to GitHub using the command line

Simple steps to add existing project to Github.

1. Create a new repository on GitHub.

In Terminal, change the current working directory to your local project.

##2. Initialize the local directory as a Git repository.

git init
@abykal
abykal / 01-netcfg.yaml
Last active December 7, 2022 06:57
Ubuntu Server Static IP [17.10+]
# change ip/gateway/dns as per your network design
network:
version: 2
renderer: networkd
ethernets:
enp3s0:
addresses:
- 10.10.10.2/24
nameservers:
search: [mydomain, otherdomain]
@abykal
abykal / portainer-setup.txt
Created December 5, 2022 08:21
Portainer Setup
# create the volume that Portainer Server will use to store its database
docker volume create portainer_data
# install portainer ce edition
docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest
# check
docker ps
# https://localhost:9443
@abykal
abykal / tailscale-setup.txt
Last active December 5, 2022 07:39
Tailscale Setup
# One command installation
curl -fsSL https://tailscale.com/install.sh | sh
OR
# Manual Install for Ubuntu based x86/ARM CPUs
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/[focal].noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/[focal].tailscale-keyring.list | sudo tee /etc/apt/sources.list.d/tailscale.list
sudo apt-get update
@abykal
abykal / apple-mac-tips
Created May 30, 2020 10:03
Apple Mac Tips
Transfer Files Fast - If you hold down "T" when your Mac is booting up, you can enter Target Disk Mode. In this mode, use a Thunderbolt 3 cable to transfer large files at fast speeds between two Macs.
Paste With Style Matching - When pasting something, if you use Option-Shift-Command-V instead of just Command-V, you can transform the pasted content into the style of the content that already exists in a document. If you have a block of text that's bold, for example, and then want to paste in text from the web and make it bolded too, you can use this keyboard shortcut.
Turn a Website Into a Dock App - You can add any website to your dock by dragging the URL bar over to the bottom section of the dock that houses open and recently used apps. Adding a website to the dock makes it quicker to open because you can click from that spot alongside all your apps.
Quick Print Shortcut - If you go to the Printers and Scanners section of System Preferences and drag the icon for your favorite printer to your desktop, you
@abykal
abykal / .macOS
Created March 18, 2020 06:58
Kent C. Dodds macOS setup
#!/usr/bin/env bash
# ~/.macos — https://mths.be/macos
# Modified by Kent C. Dodds
# Run without downloading:
# curl https://raw.githubusercontent.com/kentcdodds/dotfiles/master/.macos | bash
# Close any open System Preferences panes, to prevent them from overriding
# settings we’re about to change
osascript -e 'tell application "System Preferences" to quit'
@abykal
abykal / keybase.md
Created March 15, 2020 10:02
Keybase

Keybase proof

I hereby claim:

  • I am abyabrkal on github.
  • I am abykal (https://keybase.io/abykal) on keybase.
  • I have a public key ASD6OWEtRBIR7-NjZ1BwwVgXvIFvHA3kK7WmlftMdEheDgo

To claim this, I am signing this object: