Skip to content

Instantly share code, notes, and snippets.

@ho3ein-mola
ho3ein-mola / leafletjs-example using openstreet.html
Created February 4, 2018 15:41 — forked from khahani/leafletjs-example using openstreet.html
استفاده از leaflet با openstreet
<!DOCTYPE html>
<html>
<meta charset="utf-8"/>
<head>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" />
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
<style type="text/css">
#mapid { height: 400px; }
</style>
</head>
@ho3ein-mola
ho3ein-mola / 1.php
Created February 20, 2018 19:07
test
<?php
echo test;
?>
@ho3ein-mola
ho3ein-mola / ip.sh
Last active February 20, 2018 19:42
ایپی سرور
hostname -I
@ho3ein-mola
ho3ein-mola / .bash
Created February 20, 2018 19:43
نصب bind9
sudo apt-get install bind9
@ho3ein-mola
ho3ein-mola / .bash
Last active February 20, 2018 19:51
کانفیگ بایند ناین 1
cd /etc/bind
sudo nano named.conf.options
@ho3ein-mola
ho3ein-mola / .bash
Created February 20, 2018 19:55
تغییر named.conf.options
// forwarders {
// 0.0.0.0;
// };
// به شکل پایین تغییر بدبد
forwarders {
8.8.4.4;
};
@ho3ein-mola
ho3ein-mola / .bash
Created February 20, 2018 20:02
ساخت زون برای دامنه
// cd /etc/bind/
sudo nano {yourdomin.ir}.db
@ho3ein-mola
ho3ein-mola / .bash
Created February 20, 2018 20:10
زون بایند ناین
;
; BIND data file for {yourdomin.ir}
;
$TTL 3h
@ IN SOA ns1.{yourdomin.ir}. email.{yourdomin.ir}. (
1 ; Serial
3h ; Refresh after 3 hours
1h ; Retry after 1 hour
1w ; Expire after 1 week
1h ) ; Negative caching TTL of 1 day
@ho3ein-mola
ho3ein-mola / .bash
Created February 20, 2018 20:30
معرفی زون ساخته شده
zone "yourdomin.ir" {
type master;
file "/etc/bind/yourdomin.ir.db";
};
@ho3ein-mola
ho3ein-mola / .bash
Created February 20, 2018 20:47
تست دی ان اس سرور
; <<>> DiG 9.9.5-3-Ubuntu <<>> @your_vps_ip_address yourdomin.ir
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21829
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 3
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION: