Skip to content

Instantly share code, notes, and snippets.

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

Ahmadreza Zibaei ahmdrz

💭
I may be slow to respond.
View GitHub Profile
import json
class School:
def __init__(self, name):
self.name = name
self.students = []
def to_dict(self):
return {
'name': self.name,
import serial
import time
def lsb(value):
return value & 0xff
def msb(value):
return value >> 8
#!/bin/bash
# your ip address
ip_address="192.168.15.142"
function change_dns() {
route add default gw 192.168.14.200
echo "nameserver 80.191.216.2" > /etc/resolv.conf
echo "nameserver 8.8.8.8" >> /etc/resolv.conf
echo "nameserver 4.2.2.4" >> /etc/resolv.conf