Skip to content

Instantly share code, notes, and snippets.

View inlife's full-sized avatar
🇺🇦
Be Mighty

Vladyslav Hrytsenko inlife

🇺🇦
Be Mighty
View GitHub Profile
@inlife
inlife / git-alias.sh
Created April 18, 2016 13:59
small aliases for git
# git
alias gitp="git push origin master"
alias gitf="git pull origin master"
alias gits="git status"
function gita {
git add .
if [ -z "$1" ]; then
echo -n "Enter commit message: "
read msg
git commit -m $msg
function getTrackList() {
var trackNoClass = ".number";
var artistClass = ".section-artist";
var trackClass = ".section-title";
var timeClass = "input.section-time.ng-pristine";
// var artists = [];
var tracks = $(".section-row").map(function() {
var trackNo = $(this).find(trackNoClass).text().trim();
<?php
header('Content-Type: text/html; charset=utf-8');
/**
* [helper fn for en/de (crypt) strings]
* @var string
*/
$mod = ( isset( $_GET['mod'] ) ? $_GET['mod'] : '' );
$val = ( isset( $_GET['val'] ) ? $_GET['val'] : '' );
@inlife
inlife / caskdo.sh
Last active February 9, 2020 10:11
Search and install desired cask in one move.
# Search for cask, select & install
## 0.1 Inlife
function caskdo {
echo 'Searching...';
OPTIONS=($(brew cask search $1 | grep -e '^[^=]'));
if [[ "$OPTIONS" == *"No Cask found"* ]]; then
echo "Not found anything like \"$1\""
else
echo 'Select number of cask you want to install: '