This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
#!/usr/bin/env python3 | |
import PIL | |
from PIL import ImageFont, Image, ImageDraw | |
from bidi.algorithm import get_display | |
import arabic_reshaper | |
def rtl_fix(text): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install build-essential python3-dev python-dev libssl-dev libffi-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# remove all stopped containers! | |
docker container prune |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"\.\.\/(.+?)" | |
"{% static '$1' %}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/2.8.0/css/flag-icon.min.css"> | |
{% for agency in agencies %} | |
<div class="section"> | |
<span class="flag-icon flag-icon-{{ agency.country|lower }}"></span> # here | |
<div class="info rtl"> | |
<h5>{{ agency.country.name }}</h5> | |
<h5>{{ agency.agent_name }}</h5> | |
<h5>{{ agency.email }}</h5> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.11; | |
contract Purchase { | |
uint public value; | |
address public seller; | |
address public buyer; | |
enum State { Created, Locked, Refund, Inactive } | |
// state init?? | |
State public state = State.Created; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# display all commits that are in develop but not in master | |
git log master..develop | |
# remove file from git tracking | |
git rm --cached main.py |
OlderNewer