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
// ============================================================================ | |
// Copyright (c) 2012 by Terasic Technologies Inc. | |
// ============================================================================ | |
// Permission: | |
// Terasic grants permission to use and modify this code for use | |
// in synthesis for all Terasic Development Boards and Altera Development | |
// Kits made by Terasic. Other use of this code, including the selling | |
// ,duplication, or modification of any portion is strictly prohibited. |
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
#!/usr/bin/env bash | |
# a script to compile and run linux kernel using qemu and gdb | |
# | |
# author: hadi_sfr([email protected]) | |
# | |
# Usage: | |
# Download .tar.gz kernel file from https://www.kernel.org/pub/linux/kernel/ | |
# Put .tar.gz file besdie this script | |
# Run the script |
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
#!/usr/bin/bash | |
# Agnoster BASH Theme | |
# | |
# Author: H@di([email protected]) | |
# | |
# Usage: 1. set a powerline-compatible font for terminal | |
# 2. append this file to your ~/.bash_profile | |
# | |
# • powerline-compatible fonts: https://github.com/powerline/fonts/tree/master/SourceCodePro |
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
# ~/.bash_profile | |
alias ls='ls --color=auto' | |
alias grep="grep --color=auto" | |
alias diffstat="diffstat -C" | |
alias hiddneFilesShow='defaults write com.apple.finder AppleShowAllFiles YES && rm ~/.DS_Store; killall Finder /System/Library/CoreServices/Finder.app' | |
alias hiddneFilesHide='defaults write com.apple.finder AppleShowAllFiles NO && rm ~/.DS_Store; killall Finder /System/Library/CoreServices/Finder.app' | |
function aria2webui(){ |
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
#!/usr/bin/env bash | |
for f in `find . -name "*.srt"`; do | |
iconv -f ms-arab -t utf8 $f > ${f%".srt"}.u.srt | |
echo -e ${f%".srt"}.u.srt | |
done |
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
#!/usr/bin/env bash | |
# PDF Stamper Scrtipt | |
# | |
# Author: H@di ([email protected]) | |
# | |
# pdftk in.pdf multistamp stamp.pdf output out.pdf | |
# https://www.pdflabs.com/docs/how-to-add-headers-footers-watermarks-and-stamps-to-pdf/ | |
# |
NewerOlder