Skip to content

Instantly share code, notes, and snippets.

View masiur's full-sized avatar
💭
I may be slow to respond.

Masiur Rahman Siddiki masiur

💭
I may be slow to respond.
View GitHub Profile
--- Install missing packages:
sudo apt-get install libgtk2.0-0:i386 libidn11:i386 libglu1-mesa:i386 libpangox-1.0-0:i386 libpangoxft-1.0-0:i386
--- Install OALD8:
linux32 setup.sh
--- Address sound problem:
cd ~/oald8/plugins
mv libflashplayer.so libflashplayer.so.old
mkdir flash9
#include<iostream>
#include<cstring>
#include<cstdio>
using namespace std;
#define sf scanf
#define pf printf
char figure[10][800];
int countPos=0;
'sudo gedit /etc/apache2/apache2.conf'
###add the folowing line to the bottom of the file
'Include /etc/phpmyadmin/apache.conf'
###then you uninstall phpmyadmin by following command
'sudo apt-get purge phpmyadmin*'
###then install again the following command
'sudo apt-get install phpmyadmin'
###Now Configure it hitting space button when the promp appears
@masiur
masiur / nodejs.sh
Created April 12, 2016 09:51 — forked from ratulcse10/nodejs.sh
install nodejs in ubuntu
sudo apt-get install nodejs
sudo apt-get install npm
sudo ln -s /usr/bin/nodejs /usr/bin/node
sudo npm install -g express
@masiur
masiur / gist:f7940a9de23241b10000b9f00394c6eb
Created April 12, 2016 09:52 — forked from ratulcse10/gist:b60a4a32689011b24af1
setup tomcat7 on ubuntu 14.04 Real
https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-7-on-ubuntu-14-04-via-apt-get
server slow solution
replacing securerandom.source=file:/dev/urandom with securerandom.source=file:/dev/./urandom from file $JAVA_PATH/jre/lib/security/java.security solved my problem.
$JAVA_HOME is here /usr/lib/jvm/default-java
@masiur
masiur / setup laravel project on server
Last active June 17, 2016 18:02
Laravel Project setup on UBUNTU server
Execute the Steps serially
laravel 5.1
assuming domain name 'sustcse12.cf'
sudo apt-get update
sudo mkdir -p /var/www/sustcse12.cf/public_html
sudo chown -R $USER:$USER /var/www/sustcse12.cf/public_html
cd /var/www/sustcse12.cf/public_html
@masiur
masiur / README.md
Created April 21, 2016 19:41 — forked from oodavid/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@masiur
masiur / digital_ocean_lamp_setup.md
Created April 21, 2016 19:45 — forked from linhai86/digital_ocean_lamp_setup.md
Digital Ocean LAMP Setup (Ubuntu 14.04)

[Initial Server Setup with Ubuntu 14.04] [1]

ssh root@SERVER_IP_ADDRESS

adduser demo

# Add the new user to the sudo group
gpasswd -a demo sudo

# Add public key to new remote user
@masiur
masiur / server_config.md
Created April 21, 2016 20:08 — forked from da-n/server_config.md
Basic server config.

Server config

This is a collection of condensed, edited articles to aid in setting up a new server. Credits are at the bottom of this document.

Initial server setup

1. Login

Login as the main user:

https://laracasts.com/discuss/channels/general-discussion/guzzlehttpguzzle-using-latest-stable-version-break-laravel-mail-sending-through-mandrillmailgun
#####
Make sure that you have "guzzlehttp/guzzle": "~4.0". It has to be THIS particular version. Can't be higher.
I installed mine using composer require guzzlehttp/guzzle and it installed version 5.2. Which cause it not to send emails. Correcting composer.json and running "composer update" fixed it straight away.
######
I had the exact same but on Windows & xampp. My solution was as simple as: Follow this link: http://curl.haxx.se/ca/cacert.pem Copy the entire page and save it in a: "cacert.pem"
Then in your php.ini file insert or edit the following line: curl.cainfo = "[pathtothisfile]\cacert.pem"