Skip to content

Instantly share code, notes, and snippets.

View yakimka's full-sized avatar
💭
import __hello__

yakimka

💭
import __hello__
View GitHub Profile
@yakimka
yakimka / arch-linux-install
Last active October 9, 2021 17:08
Instructions for installing Arch Linux on an UEFI system with LUKS and systemd-boot
# Connect to the internet
dhcpcd # или wifi-menu
# Create partitions
cgdisk /dev/sdX
1 550MiB Boot partition # Set type EFI system
2 100% size partiton # (to be encrypted) Hex code 8300
mkfs.vfat -n BOOT -F32 /dev/sdX1
# Setup the encryption of the system
@yakimka
yakimka / redis_cheatsheet.bash
Created December 12, 2018 12:31 — forked from LeCoupa/redis_cheatsheet.bash
Redis Cheatsheet - Basic Commands You Must Know --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
# Redis Cheatsheet
# All the commands you need to know
redis-server /path/redis.conf # start redis with the related configuration file
redis-cli # opens a redis prompt
# Strings.
@yakimka
yakimka / README.md
Created December 13, 2018 11:42 — forked from genomics-geek/README.md
Setting up a Dockerized web application with Django REST APIs, ReactJS with Redux pattern, and Webpack Hot Reloading! Mouthful.

Guide on how to create and set up a Dockerized web app using Django REST APIs and ReactJS

Hopefully this will answer "How do I setup or start a Django project using REST Framework and ReactJS?"

This is a guide to show you step by step how this can be setup. If you just want to get started, use the cookiecuter I set up cookiecutter-django-reactjs. It basically is a fork of pydanny's cookiecutter, just added the front-end stuff :).

I created this because it was SUCH a pain in the ass setting up a project using all the latest technologies. After some research, I figured it out and have it working. The repo that implements this is located here. Feel free to use it as a boilerplate ;)

Main features:

  • Django REST APIs
@yakimka
yakimka / default.conf
Created December 17, 2018 22:03
NGiNX Configuration for Vue-Router in HTML5 Mode
server {
listen 80 default_server;
listen [::]:80 default_server;
root /your/root/path;
index index.html;
server_name you.server.com;
@yakimka
yakimka / .gitconfig
Last active September 28, 2020 15:21
gitconfig
[user]
name = {{git_name}}
email = {{git_email}}
[core]
editor = nano
excludesfile = ~/.gitexcludes
[alias]
pall = !git push --all && git push --tags
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
@yakimka
yakimka / python_interp_prompt.py
Last active January 23, 2019 13:18
Default python interpreter prompts for ipython
# $ ipython profile create
# $ cat ~/.ipython/profile_default/startup/python_interp_prompt.py
from IPython.terminal.prompts import Prompts, Token
import os
class PythonShellPrompt(Prompts):
def in_prompt_tokens(self, cli=None):
return [(Token.Prompt, '>>> ')]
@yakimka
yakimka / setup_from_github.sh
Last active February 19, 2022 13:38
Update configs from my GitHub repositories
#!/bin/bash
###
# Config
###
GITCONFIG=https://gist.githubusercontent.com/yakimka/2642f68bb40b247e13d39f9cf0ac3ea3/raw/.gitconfig
GITEXCLUDES=https://gist.githubusercontent.com/yakimka/2642f68bb40b247e13d39f9cf0ac3ea3/raw/.gitexcludes
GITCONFIG_LOCATION=~/.gitconfig
GITEXCLUDES_LOCATION=~/.gitexcludes
@yakimka
yakimka / Makefile
Last active November 20, 2020 14:42
Makefile for Python projects
.PHONY: all
all: help
COMMITS_COUNT := 30
.PHONY: whats-new
whats-new: ## Get info about last tag
$(eval LAST_TAG := $(shell git describe --abbrev=0 --tags))
$(eval PREV_TAG := $(shell git describe --abbrev=0 --tags $(LAST_TAG)^ 2>/dev/null || [ ]))
$(eval TAGS := $(if $(PREV_TAG),$(PREV_TAG)..$(LAST_TAG),$(LAST_TAG)))
@yakimka
yakimka / _etc_clickhouse-server_dict_sources.xml
Created October 6, 2021 13:55 — forked from filimonov/_etc_clickhouse-server_dict_sources.xml
ClickHouse dictionaries with connection credentials substituted from another file
<?xml version="1.0"?>
<yandex>
<mysql_config>
<port>3306</port>
<user>user</user>
<password>123</password>
<replica>
<host>mysql_host</host>
<priority>1</priority>