Skip to content

Instantly share code, notes, and snippets.

Mashpy Rahman Mashpy

Block or report user

Report or block Mashpy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Table
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<table>
<tr>
<td colspan="2">
<p>&nbsp;</p>
View currency converter
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>selected demo</title>
<style>
div {
color: red;
}
</style>
View country list
continent_lists = [
{ :id => 1, :continent_name => 'Europe', :order => 1 },
{ :id => 2, :continent_name => 'Asia', :order => 2 },
{ :id => 3, :continent_name => 'Africa', :order => 3 },
{ :id => 4, :continent_name => 'North America', :order => 4 },
{ :id => 5, :continent_name => 'South America', :order => 5 },
{ :id => 6, :continent_name => 'Australia and Oceania', :order => 6 },
]
Continent.create(continent_lists)
View install docker and run project in vps
sudo curl -sSL https://get.docker.com/ | sh
cd
curl -L https://github.com/docker/compose/releases/download/1.7.0/docker-compose-`uname -s`-`uname -m` > ./docker-compose
sudo mv ./docker-compose /usr/bin/docker-compose
sudo chmod +x /usr/bin/docker-compose
cd
git clone https://github.com/Mashpy/testphp.git
docker-composer up -d
View install gateone on ubuntu
1 ls
2 apt-get update
3 apt-get install python-pip debhelper python-support
4 pip install tornado stdeb
5 wget https://github.com/downloads/liftoff/GateOne/gateone_1.1-1_all.deb
6 ls
7 dpkg -i gateone_1.1-1_all.deb
8 apt-get install git
9 git clone https://github.com/liftoff/GateOne.git
10 cdls
View check it
https://play.google.com/store/apps/details?id=com.ijinshan.kbatterydoctor_en
View find difference codiad
<?php
require_once('common.php');
// Context Menu
$context_menu = file_get_contents(COMPONENTS . "/filemanager/context_menu.json");
$context_menu = json_decode($context_menu,true);
// Right Bar
$right_bar = file_get_contents(COMPONENTS . "/right_bar.json");
View json testing
{"message":"{\"result\":true,\"output\":{\"username\":\"ghori\",\"password\":\"ghori\",\"folder_path\":\"\\/home\\/ubuntu\\/ghori\",\"user_id\":1,\"updated_at\":\"2017-03-25 09:20:33\",\"created_at\":\"2017-03-25 09:20:33\",\"id\":55}}"}
View install laravel with php 7
897 sudo add-apt-repository ppa:ondrej/php
898 sudo apt-get update
900 sudo apt-get install php7.0-fpm
901 sudo apt-get install php7.0-mysql
902 cd /etc/nginx/
903 ls
904 cd sites-available/
905 ls
906 sudo nano default
907 sudo service nginx restart
View sqlite demo ruby
require 'sqlite3'
begin
db = SQLite3::Database.open "test.db"
db.transaction
db.execute "DROP TABLE IF EXISTS animal"
db.execute "CREATE TABLE animal
(
You can’t perform that action at this time.