Skip to content

Instantly share code, notes, and snippets.

View sekayasin's full-sized avatar
🎯
Every git commit counts! #Topooooowa

sekayasin sekayasin

🎯
Every git commit counts! #Topooooowa
View GitHub Profile
@sekayasin
sekayasin / README.md
Created December 12, 2019 06:18 — forked from matijs/README.md
Solarized Dark profile for macOS Terminal.app

Solarized Dark profile for Terminal.app on macOS High Sierra

Based on the excellent Solarized (Dark) created by Ethan Schoonover. For source code, check the main Solarized repository on GitHub.

Installation

Open and save Solarized Dark.terminal.

Import from the “Profiles” tab in the settings of Terminal.app or just double-click the file after downloading.

@sekayasin
sekayasin / iterm2-solarized.md
Created October 1, 2019 11:21 — 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

@sekayasin
sekayasin / packer-ami-id
Created March 29, 2019 10:06 — forked from danrigsby/packer-ami-id
Get AMI ID from a packer build
packer build packer.json 2>&1 | sudo tee output.txt
tail -2 output.txt | head -2 | awk 'match($0, /ami-.*/) { print substr($0, RSTART, RLENGTH) }' > sudo ami.txt
@sekayasin
sekayasin / gist:83e8945e689d57a32a0ed68dccdc4474
Created November 20, 2018 12:55
Testing User creation for Author's Heaven
from django.test import TestCase, Client
from django.urls import reverse
from rest_framework import status
from .models import User
from .views import RegistrationAPIView
class RegistrationAPIViewTest(TestCase):
def setUp(self):
@sekayasin
sekayasin / my_mac_vimrc.txt
Last active July 27, 2022 18:50
my_mac_vimrc
Quick Start
Vundle is short for Vim bundle and is a Vim plugin manager.
Vundle allows you to...
keep track of and configure your plugins right in the .vimrc
install configured plugins (a.k.a. scripts/bundle)
update configured plugins
search by name all available Vim scripts
clean unused plugins up
run the above actions in a single keypress with interactive mode
@sekayasin
sekayasin / gist:fc28e772a5609830ced88ec350941de9
Created September 30, 2018 05:34 — forked from lxneng/gist:741932
install PostgreSQL 9 in Mac OSX via Homebrew
install PostgreSQL 9 in Mac OSX via Homebrew
Mac OS X Snow Leopard
System Version: Mac OS X 10.6.5
Kernel Version: Darwin 10.5.0
Install notes for PostgreSQL 9.0.1 install using Homebrew:
sh-3.2# brew install postgresql
@sekayasin
sekayasin / index.html
Created September 3, 2018 06:11 — forked from CodeMyUI/index.html
Responsive Navigation Menu Using Only CSS
<h1><span>Responsive Navigation Menu</span> Using Only CSS</h1>
<header>
<section>
<a href="https://www.linkedin.com/in/sutharmayur" id="logo" target="_blank">Mayur Suthar</a>
<label for="toggle-1" class="toggle-menu"><ul><li></li> <li></li> <li></li></ul></label>
<input type="checkbox" id="toggle-1">
<nav>
here is my main nginx.conf
----------------------------------------------------------------------------------------------------
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
include /usr/share/nginx/modules/*.conf;
events {
@sekayasin
sekayasin / ubuntu_agnoster_install.md
Created December 2, 2017 08:28 — forked from renshuki/ubuntu_agnoster_install.md
Ubuntu 16.04 + Terminator + Oh My ZSH with Agnoster Theme

Install Terminator (shell)

sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminator

Terminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").

Install ZSH