Skip to content

Instantly share code, notes, and snippets.

View Artnoc1's full-sized avatar
💭
I may be slow to respond.

Alex Artnoc1

💭
I may be slow to respond.
View GitHub Profile
#Customize BASH PS1 prompt to show current GIT repository and branch.
#by Mike Stewart - http://MediaDoneRight.com
#SETUP CONSTANTS
#Bunch-o-predefined colors. Makes reading code easier than escape sequences.
#I don't remember where I found this. o_O
#Reset
Color_Off="\[\033[0m\]" # Text Reset
@Artnoc1
Artnoc1 / Githowto.md
Last active January 15, 2022 20:49
GITHOWTO

"47. Добавление удаленного репозитория"


Добавить чистый репозиторий в качестве удаленного репозитория к нашему оригинальному репозиторию. Давайте добавим репозиторий hello.git к нашему оригинальному репозиторию.


cd hello
git remote add shared ../hello.git
@Artnoc1
Artnoc1 / .bash.ZSH
Last active September 29, 2021 13:01
#!/system/bin/sh
###This script should be run via curl:
#sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
###or via wget:
#sh -c "$(wget -qO- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
###or via fetch:
#sh -c "$(fetch -o - https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
#
###As an alternative, you can first download the install script and run it afterwards:
@Artnoc1
Artnoc1 / .LINKS
Last active September 29, 2021 13:38
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.

Gists’s search supports a variety of different operations.


Here’s a quick cheat sheet for some of the common searches.


BASIC_SEARCH

[This search] Finds repositories with…

git help


usage:


git [--version] [--help] [-C <path>] [-c <name>=<value>] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path] [-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare] [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>] <command> [<args>]

These are common Git commands used in various situations:

@Artnoc1
Artnoc1 / Create_repo_Git.md
Last active April 30, 2021 18:05
Gist, созданный на Android

Create the repository on Github


  • Initialize local repo
git init
  • Add files (all files, or files to be committed)
git add.
@Artnoc1
Artnoc1 / emojis.json
Created August 15, 2020 22:05 — forked from oliveratgithub/emojis.json
Emoji-list with emojis, names, shortcodes, unicode and html entities [massive list]
{
"emojis": [
{"emoji": "👩‍👩‍👧‍👧", "name": "family: woman, woman, girl, girl", "shortname": ":woman_woman_girl_girl:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F467", "html": "&#128105;&zwj;&#128105;&zwj;&#128103;&zwj;&#128103;", "category": "People & Body (family)", "order": ""},
{"emoji": "👩‍👩‍👧‍👦", "name": "family: woman, woman, girl, boy", "shortname": ":woman_woman_girl_boy:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F466", "html": "&#128105;&zwj;&#128105;&zwj;&#128103;&zwj;&#128102;", "category": "People & Body (family)", "order": ""},
{"emoji": "👩‍👩‍👦‍👦", "name": "family: woman, woman, boy, boy", "shortname": ":woman_woman_boy_boy:", "unicode": "1F469 200D 1F469 200D 1F466 200D 1F466", "html": "&#128105;&zwj;&#128105;&zwj;&#128102;&zwj;&#128102;", "category": "People & Body (family)", "order": ""},
{"emoji": "👨‍👩‍👧‍👧", "name": "family: man, woman, girl, girl", "shortname": ":man_woman_girl_girl:", "unicode": "1F468 200D 1F469 200D 1F467 200D 1F467", "html": "&#128104;&zwj;&#128105;&z
@rocktimsaikia
rocktimsaikia / git_commands.md
Created August 15, 2020 20:16
Most used git commands

Initialize Git: git init

et everything ready to commit: git add .

et custom file ready to commit: git add index.html

ommit changes: git commit -m "Message"

ommit changes with title and description: git commit -m "Title" -m "Description..."