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
#ssid.conf | |
<VirtualHost amitssid.com:80> | |
ServerName amitssid.com | |
ServerAlias www.amitssid.com | |
DocumentRoot /var/www/html/SSID/app | |
ServerAdmin webmaster@localhost | |
RailsEnv production | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
CustomLog ${APACHE_LOG_DIR}/access.log combined |
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 | |
####for 64 bit Linux only | |
sudo apt-get install ia32-libs | |
sudo apt-get install libc6-i386 | |
sudo dpkg --add-architecture i386 | |
sudo apt-get update | |
sudo apt-get install libglu1-mesa:i386 | |
sudo apt-get install libxcursor1 libxcursor-dev | |
sudo apt-get install libxcursor1:i386 |
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
class QueryExecutor { | |
string strQuery; | |
CreateConnection c; | |
public QueryExecutor(string query) { | |
strQuery = query; | |
c = new CreateConnection(); | |
} | |
public QueryExecutor(string query, string strConnection) { | |
strQuery = query; |
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
\documentclass{beamer} | |
%এটা লাগবে, | |
\usepackage{fontspec} | |
%এটা দিয়ে একটা ফন্ট ডিফাইন করা হয়েছে, এইটা দিয়ে আমরা বাংলা লেখাগুলার আগে লিখে দিলে ঐ অংশ বাংলা ফন্ট দিয়ে পড়বে | |
\font\deffont="FreeSerif:script=beng" at 14pt | |
%যেমন এখানে | |
\title{\deffont একটি বাংলা লেখা} | |
\author{\deffont অমিত} | |
\date{\deffont ৭ জানুয়ারি, ২০১৩} | |
\begin{document} |
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
\documentclass{article} | |
%এই প্যাকেজটা লাগবে | |
\usepackage{fontspec} | |
%script অংশ দিয়ে বুঝাচ্ছি এটা বাংলা | |
\setmainfont{SolaimanLipi:script=beng} | |
%প্যারাগ্রাফের শুরুতে ফাঁকা যায়গা থাকবে না | |
\setlength{\parindent}{0in} | |
\title{একটি বাংলা লেখা} | |
\author{অমিত} | |
\date{১৬ জানুয়ারি, ২০১৩} |
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
CC = gcc | |
CFLAGS = -lm | |
all: mm1 | |
backup: | |
cd .. && zip chap1_c_backup.zip chap1_c/* | |
mm1: lcgrand.o mm1.o | |
@echo making everything nice and sweet to mm1 |
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 | |
pdftk *.pdf cat output output.pdf |
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
import subprocess | |
cmd_list_jpg = 'ls -C -1 | grep .jpg' | |
all_files = subprocess.check_output(cmd_list_jpg, shell = True) | |
for i in all_files.split('\n'): | |
if i.find('convert') != -1: | |
continue | |
subprocess.check_output('convert {0} {0}.pdf'.format(i), shell = True) |
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 | |
#<- this is a comment. | |
newport=2222 | |
forwardport=27960 | |
sudo iptables -t nat -A PREROUTING -p udp --dport $newport -j REDIRECT --to-ports $forwardport | |
#To check whether this rule works, type this command | |
#sudo iptables -nL -v --line-numbers -t nat |
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/sh | |
# Install Brightness Controller script | |
# Download / Save this script. Make it executable. Run it. | |
# It requires having wget installed, if you use another command line interface downloader, change wget to it. | |
wget https://github.com/lordamit/Brightness/archive/master.zip | |
unzip -o master.zip -d ~/.Brightness | |
rm master.zip | |
echo "[Desktop Entry] | |
Encoding=UTF-8 |
OlderNewer