Skip to content

Instantly share code, notes, and snippets.

View romanitalian's full-sized avatar
🎯
Focusing

roman romadin romanitalian

🎯
Focusing
View GitHub Profile
@romanitalian
romanitalian / django_init.sh
Created June 19, 2021 18:34
make Django project from scratch (in one command).
#!/bin/bash
# README
# --------------------
# chmod u+x django_init.sh
# ./django_init.sh my-super-project.com main
# --------------------
SETTINGS_APP="core"
@Zveroboev
Zveroboev / .bash_profile
Last active March 23, 2018 09:52
Подсветка текущей git ветки при подключении через ssh
// Источник - http://thelucid.com/2008/12/02/git-setting-up-a-remote-repository-and-doing-an-initial-push/
// Добавить в конец ~/.bash_profile на удаленном сервере следующий код:
# Reset
Color_Off="\[\033[0m\]" # Text Reset
# Regular Colors
Black="\[\033[0;30m\]" # Black
Red="\[\033[0;31m\]" # Red
Green="\[\033[0;32m\]" # Green
@jozsefsallai
jozsefsallai / GoHTML.sublime-syntax
Last active February 15, 2024 12:05
Go HTML template syntax highlighting for Sublime Text
%YAML 1.2
---
name: 'GoHTML'
file_extensions:
- gohtml
- html.go
scope: text.html.gohtml
contexts:
main:
- match: ''
@tom--
tom-- / Random bytes, ints, UUIDs in PHP.md
Last active February 11, 2023 06:14
PHP random bytes, integers and UUIDs

Random bytes, ints, UUIDs in PHP

Simple and safe random getters to copy-paste

string randomBytes( int $length )

int randomInt ( int $min , int $max )

string randomUuid ( void )
@jcaraballo
jcaraballo / git-branch-between-different-repositories.md
Created March 6, 2012 01:05
How to fork a github repository in bitbucket

#Create bitbucket branch

##Create local branch

$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
  master
* sync