Skip to content

Instantly share code, notes, and snippets.

View ype's full-sized avatar
‼️
writing all the codes.

Anton Strilchuk ype

‼️
writing all the codes.
View GitHub Profile
@ype
ype / split-pull-requests.md
Created September 26, 2019 16:10 — forked from loilo/split-pull-requests.md
Split a large pull request into two
@ype
ype / split-pull-requests.md
Created September 26, 2019 16:10 — forked from loilo/split-pull-requests.md
Split a large pull request into two
@ype
ype / canihazdomain.sh
Created May 4, 2016 14:36
wenz u wantz domainz
#!/usr/bin/env bash
# Name: Check for domain name availability
# Author: ype
# Source: https://github.com/ype/canihazdomain
# Based On: linuxconfig.org
# Usage:
# canihazdomain domain_name
@ype
ype / digthis.sh
Last active February 26, 2016 16:19
#!/usr/bin/env bash
HYPERLINK="$1"
canyoudigit () {
RETVAL=1;
while [ $RETVAL -ne 0 ]
do
clear
VAL=$(dig "$HYPERLINK")
#!/usr/bin/env bash
## -*- Mode: Sh -*- ##
################################################################################
################################################################################
## ##
## daily_bg.sh ##
## Created: 02-09-2015 ##
## Author: Anton Strilchuk <[email protected]> ##
## URL: https://env.sh ##
## Version: ##
@ype
ype / usrgrp.pl
Last active September 1, 2015 14:31
### -*- Mode: Perl -*- ###
################################################################################
################################################################################
### ###
### usrgrp ###
### Created: 01-09-2015 ###
### Author: Anton Strilchuk <[email protected]> ###
### URL: https://env.sh ###
### Version: 0.0.0.1 ###
### Last-Updated: 01-09-2015 ###
@ype
ype / unix_tip.sh
Last active August 29, 2015 14:25
Unix Tips from the interwebs
# To show everytime your shell opens add this function to the bottom of your bash_profile,bashrc,zshrc
function unix_tip() {
while [ "$count" -ne 1 ]; do
type pandoc >/dev/null 2>&1 || { echo >&2 "Pandoc is required, but not installed. If you have homebrew try: brew install pandoc"; break; }
type xmlstarlet >/dev/null 2>&1 || { echo >&2 "xmlstarlet is required, but not installed. If you have homebrew try: brew install xmlstarlet"; break; }
ping -c1 8.8.8.8 >> /dev/null
if [ $? -eq 0 ]; then
curl -s https://raw.githubusercontent.com/jlevy/the-art-of-command-line/master/README.md \
| pandoc -f markdown -t html \
[core]
editor = emacsclient -d -c
excludesfile = /Users/astrilchuk/.gitignore_global
quotepath = false
[user]
name = Anton Strilchuk
email = [email protected]
[mergetool]
@ype
ype / filter_allrepo_sorted_csv.sh
Created April 18, 2015 13:20
filters sorted csv of repos with headers "line, url, tag, branch"
csvsort repo_branch_master.csv >> repo_bmaster_sorted.csv && sed -e '1s/.*_.*\,.*\,.*\,.*/line\,url\,tag\,branch/g' repo_bmaster_sorted.csv > repo_bmaster.csv
@ype
ype / gen_allrepo_csv.sh
Created April 18, 2015 13:17
generates csv of repo_links_list.txt
for i in $(cat repo_links_list.txt); do echo $(git ls-remote --get-url "$i") $(git ls-remote "$i" master) | tr ' ' ',' >> repo_branch_master.csv; done