Skip to content

Instantly share code, notes, and snippets.

View ziyaddin's full-sized avatar
Drinking Azerbaijani black tea

Ziyaddin Sadygly ziyaddin

Drinking Azerbaijani black tea
View GitHub Profile
@ziyaddin
ziyaddin / keyboard.sh
Created January 22, 2020 14:26
restore keyboard input change keybinding
gsettings set org.gnome.desktop.wm.keybindings switch-input-source "['<Shift>Alt_L']"
@ziyaddin
ziyaddin / vscode.sh
Created March 9, 2019 18:19
How to fix vscode icon in numix icon circle theme?
sudo sed -i "s/Icon=code/Icon=vscode/g" /usr/share/applications/code.desktop
@ziyaddin
ziyaddin / README.md
Created April 29, 2017 22:05 — forked from agnoster/README.md
My ZSH Theme

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

@ziyaddin
ziyaddin / Zsh & theme
Created April 29, 2017 21:42 — forked from leemour/Zsh & theme
Zsh installation and Agnoster theme settings
# Railscast
http://railscasts.com/episodes/308-oh-my-zsh
# Install Zsh
sudo apt-get update && sudo apt-get install zsh
# Install Oh-my-zsh
wget –no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O – | sh
# Make ZSH default shell

Keybase proof

I hereby claim:

  • I am ziyaddin on github.
  • I am ziyaddin (https://keybase.io/ziyaddin) on keybase.
  • I have a public key whose fingerprint is 45D4 7273 E2D3 C878 29FB 08B1 AAB2 25E5 626B B3E2

To claim this, I am signing this object:

@ziyaddin
ziyaddin / ascii.sh
Last active August 29, 2015 13:57
Write ASCII Texts In Ubuntu Terminal
$ figlet
@ziyaddin
ziyaddin / color.sh
Last active December 23, 2015 15:05
Shell script output color code snippet
RCol='\e[0m' # Text Reset
# Regular Bold Underline High Intensity BoldHigh Intens Background High Intensity Backgrounds
Bla='\e[0;30m'; BBla='\e[1;30m'; UBla='\e[4;30m'; IBla='\e[0;90m'; BIBla='\e[1;90m'; On_Bla='\e[40m'; On_IBla='\e[0;100m';
Red='\e[0;31m'; BRed='\e[1;31m'; URed='\e[4;31m'; IRed='\e[0;91m'; BIRed='\e[1;91m'; On_Red='\e[41m'; On_IRed='\e[0;101m';
Gre='\e[0;32m'; BGre='\e[1;32m'; UGre='\e[4;32m'; IGre='\e[0;92m'; BIGre='\e[1;92m'; On_Gre='\e[42m'; On_IGre='\e[0;102m';
Yel='\e[0;33m'; BYel='\e[1;33m'; UYel='\e[4;33m'; IYel='\e[0;93m'; BIYel='\e[1;93m'; On_Yel='\e[43m'; On_IYel='\e[0;103m';
Blu='\e[0;34m'; BBlu='\e[1;34m'; UBlu='\e[4;34m'; IBlu='\e[0;94m'; BIBlu='\e[1;94m'; On_Blu='\e[44m'; On_IBlu='\e[0;104m';
Pur='\e[0;35m'; BPur='\e[1;35m'; UPur='\e[4;35m'; IPur='\e[0;95m'; BIPur='\e[1;95m'; On_Pur='\e[45m'; On_IPur='\e[0;105m';
C
@ziyaddin
ziyaddin / cbar.php
Last active January 28, 2017 13:20
Parse Cbar.az currencies with PHP
<?php
$date = date ("d.m.Y");
$url = simplexml_load_file("http://cbar.az/currencies/" .$date.".xml");
echo $url->ValType[0]->Valute[2]->Nominal;
echo $url->ValType[0]->Valute[2]->Name;
echo $url->ValType[0]->Valute[2]->Value ."<br />";
echo $url->ValType[0]->Valute[34]->Nominal;
echo $url->ValType[0]->Valute[34]->Name;