This file contains hidden or 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
| <template> | |
| <div> | |
| <span class="btn btn-file"> | |
| <i class="fa fa-camera"></i> | |
| <input name="image" type="file" @change="onFileChange" accept="image/*"> | |
| </span> | |
| <div v-if="uploadImage" class="replyImage"> | |
| <img :src="uploadImage" /> | |
| <button @click="removeImage"><i class="fa fa-close"></i></button> | |
| </div> |
This file contains hidden or 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 | |
| #This script works on preparing a clean linux distro to be ready | |
| #for being used for developemnt | |
| #Author: Yasien | |
| while [ true ];do | |
| #Getting input from user about desired operation | |
| cat << EOT | |
| Please Choose an option: |
This file contains hidden or 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/sh | |
| #Developement programs installation script | |
| #Author: Yasien | |
| sudo apt update | |
| #sublime | |
| wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - | |
| sudo apt-get install apt-transport-https | |
| echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list |
This file contains hidden or 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 | |
| if [ $# -eq 0 ] | |
| then | |
| echo 'Usage:largest.sh file|folder path NUMBEROFRECORDS' | |
| exit | |
| fi | |
| DEST=$2 | |
| NUMBEROFRECORDS=10 | |
| if [ -n $3 ] |
This file contains hidden or 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 | |
| if [ $# -eq 0 ] | |
| then | |
| echo 'Usage: audiosplitter.sh filename|directory segmenttime' | |
| exit | |
| fi | |
| FILENAME=$1 | |
| SEGMENTTIME=$2 |
This file contains hidden or 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
| #!/usr/bin/env python | |
| # coding: utf-8 | |
| # ar2en.py : Renames arabic files and directories into english recursively | |
| import os | |
| import sys | |
| import shutil | |
| chart = { "أ" : "a" , | |
| "ا" : "a" , |
This file contains hidden or 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
| # aliases | |
| alias gs='git status' | |
| alias gl="git log --graph --pretty=format:'%C(yellow)%d%Creset %C(cyan)%h%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=short --all" | |
| alias gc='git add . & git commit -m ' |
This file contains hidden or 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 | |
| if [ -z $2 ]; then | |
| echo $0" <source-dir/> <dist-dir/>" | |
| exit | |
| fi | |
| IFS=$'\n' | |
| SOURCE=$1 | |
| DEST=$2 | |
| for dir in `ls $SOURCE |rev |cut -d '/' -f1 |rev`;do |
This file contains hidden or 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 | |
| if [ $# -eq 0 ] | |
| then | |
| echo "Usage: $0 <port>" | |
| exit | |
| fi | |
| for i in `sudo lsof -i :8080| sed 's/\( \)*/\1/g' | cut -d" " -f2| sort | uniq| egrep -o '[0-9]*'`;do | |
| sudo kill -9 $i | |
| done |
This file contains hidden or 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 | |
| if [ $# -lt 2 ] | |
| then | |
| echo "Usage: $0 <src> <dst> [any-rsync-option]" | |
| exit | |
| fi | |
| rsync -aruvzp --progress --exclude='.git/' $@ |
OlderNewer