Skip to content

Instantly share code, notes, and snippets.

View varemenos's full-sized avatar

Adonis Kakoulidis varemenos

View GitHub Profile
@varemenos
varemenos / oh-my-zsh-git-aliases.zsh
Last active August 29, 2015 13:57
oh-my-zsh GIT Aliases
alias ga='g a'
alias gb='g b'
alias gbi='g bi'
alias gc='g c'
alias gcl='g cl'
alias gco='g co'
alias gd='g d'
alias gf='g f'
alias gg='g g'
alias gi='g i'
@varemenos
varemenos / oh-my-zsh-package-manager-aliases.zsh
Created March 18, 2014 23:31
oh-my-zsh Package Manager Aliases
if [ -f /etc/debian-release ]; then
# Apt-get
alias clean='sudo apt-get clean'
alias purge='sudo apt-get purge'
alias search='sudo apt-get search'
alias update='sudo apt-get update'
alias remove='sudo apt-get remove'
alias upgrade='sudo apt-get upgrade'
alias install='sudo apt-get install'
alias autoremove='sudo apt-get autoremove'
@varemenos
varemenos / oh-my-zsh-action-aliases.zsh
Last active December 7, 2016 00:30
oh-my-zsh Action Aliases
alias untar='tar -zxvf'
alias untarxz='tar -xJf'
alias pbcopy='xclip -selection clipboard' # OSX compatibility
alias pbpaste='xclip -selection clipboard -o' # OSX compatibility
alias orphans='sudo pacman -Rs $(pacman -Qdtq)' # removes orphan packages from Archlinux
@varemenos
varemenos / oh-my-zsh-applications.zsh
Last active July 11, 2016 17:05
oh-my-zsh Application Aliases
alias ls='ls -X -h --group-directories-first --color'
alias grep='grep --color=auto'
alias gedit='subl'
alias g='git'
@varemenos
varemenos / oh-my-zsh-settings.zsh
Last active August 29, 2015 13:57
oh-my-zsh-settings
ZSH=$HOME/.oh-my-zsh
ZSH_THEME="agnoster"
COMPLETION_WAITING_DOTS="true"
DISABLE_CORRECTION="true"
HISTCONTROL=ignoredups:ignorespace
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets root)
source $ZSH/oh-my-zsh.sh
export PATH=$PATH:/usr/sbin:/sbin:/bin
@varemenos
varemenos / oh-my-zsh-aliasfix.zsh
Last active August 29, 2015 13:57
oh-my-zsh Alias fix
# Sudofix (fixes aliases not being able to run when using sudo)
alias sudo='sudo '
@varemenos
varemenos / oh-my-zsh-plugins.zsh
Last active August 29, 2015 13:57
oh-my-zsh plugins
plugins=(gitfast last-working-dir ssh-agent bower nvm gem node npm rbenv themes grunt autoenv zsh-syntax-highlighting command-not-found)
@varemenos
varemenos / checkCalc.js
Last active December 29, 2015 12:19
Check if calc() is supported by your browser
// returns true if your browser supports calc()
myapp.checkCalc = function (prefix = '') {
var el = document.createElement('div');
el.style.cssText = prefix + 'width: calc(1px);';
return !!el.style.length;
};
// returns true if your browser supports any version of calc(), prefixed or not
myapp.checkAllCalc = function (prefix = '') {
return myapp.checkCalc('-webkit-') || myapp.checkCalc('-moz-') || myapp.checkCalc();
@varemenos
varemenos / powerquake.ahk
Created August 27, 2013 05:24
PowerShell - QuakeStyle (now supports posh~git as well)
F12::
DetectHiddenWindows, on
If WinExist("posh~git") OR WinExist("Windows PowerShell")
{
If WinActive("posh~git") OR WinActive("Windows PowerShell")
{
WinHide
if(temptitle="")
WinActivate ahk_class Shell_TrayWnd
@varemenos
varemenos / Microsoft.PowerShell_profile.ps1
Created August 23, 2013 05:04
A profile script that generates a prompt similar to this: AdonisK@home-pc: C:\Users\AdonisK$_
# Clear screen
cls
# Get user
$USER = $PWD.toString()
$USER = $USER.Remove(0, 9)
# Get hostname
$HOSTNAME = HOSTNAME.exe