Skip to content

Instantly share code, notes, and snippets.

View alexandr-san4ez's full-sized avatar
🧑‍💻

Alexandr K. alexandr-san4ez

🧑‍💻
View GitHub Profile
@alexandr-san4ez
alexandr-san4ez / git-remote-deploy.py
Last active September 18, 2020 06:56
Creates a remote git repository
# -*- coding: UTF-8 -*-
import os
import stat
import argparse
from urllib.parse import urlunparse
from urllib.request import pathname2url
# wget https://gist.github.com/alexandr-san4ez/d740600560fd51e84be5e75d287184e2/raw/1dab00b6e4a9b4ff4a8b6e0771ef4b4f7a2c9d02/git-remote-deploy.py -q -O- | python3 - -h
@alexandr-san4ez
alexandr-san4ez / mega.cmd
Last active March 27, 2017 19:47
Clink-completions for megatools and cmd file for use megatools (https://github.com/megous/megatools)
@echo off
set MEGAPATH=C:\path\Megatools
IF "%1"=="-h" (
echo All commands:
echo reg - Register and verify a new mega account.
echo df - Show your cloud storage space usage/quota.
echo ls - List all remote files.
echo mkdir - Create remote directory.

Introduction

  • C-a == Ctrl-a
  • M-a == Alt-a

General

:q        close
:w        write/saves
:wa[!]    write/save all windows [force]
:wq       write/save and close
@alexandr-san4ez
alexandr-san4ez / fix-git.sh
Created November 30, 2016 18:09 — forked from artzub/fix-eol.sh
List of tips on all cases of life
#!/bin/sh
git config --global alias.co checkout
git config --global alias.cb "checkout -b"
git config --global alias.chm "checkout master"
git config --global alias.st status
git config --global alias.ai "add -i"
git config --global alias.pofm "push origin +master"
git config --global alias.po "push origin"
git config --global alias.gg 'log --oneline --abbrev-commit --all --graph --decorate --color'
git config --global alias.ggs 'log --color --date-order --graph --oneline --decorate --simplify-by-decoration --all'