Skip to content

Instantly share code, notes, and snippets.

View mostafabahri's full-sized avatar
👨‍💻

Mostafa Bahri mostafabahri

👨‍💻
  • Germany
View GitHub Profile
[core]
autocrlf = input
editor =vim
[alias]
st = status
ld = "log --decorate --oneline"
ld5 = "log --decorate --oneline -n 5"
ll = "log --relative-date --decorate --graph --stat --abbrev-commit"
lla = "log --relative-date --decorate --graph --stat --abbrev-commit --all"
@mostafabahri
mostafabahri / index.html
Last active March 9, 2017 13:01
Semantic Todo - Vue.js
<div class="ui container top">
<div class="ui raised pink segment center aligned">
<h1 class="ui header">TodoList - Semantic UI + Vue.js</h1>
</div>
<div class="ui divider"></div>
<div class="uialigned two column grid centered stackable" id="app">
<div class="row">
<div class=" column">
<div class="ui segments">
<div class="ui segment" v-for="(todo,index) in todos"> {{todo.name}} <i class="remove icon large" @click="removeTodo(index)"></i></div>
@mostafabahri
mostafabahri / vpn.sh
Created October 23, 2016 07:57
Let the VPN stay connected.
#!/bin/bash
# don't forget to make it executable : chmod u+x vpn.sh
# run it : ./vpn.sh $vpnName
if [ -z ${1} ]
then
echo "No VPN name given.";
exit 1;
fi
while [[ true ]]; do