- 1xx : Informational
- 2xx : Success
- 3xx : Redirection
- 4xx : Client Error
- 5xx : Server Error
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
# /etc/NetworkManager/conf.d/30-randomize-mac-address.conf | |
# REQUIRES NETWORK MANAGER >= 1.4.1 (Ubuntu Zesty and above) | |
# Thanks to https://blogs.gnome.org/thaller/2016/08/26/mac-address-spoofing-in-networkmanager-1-4-0/ | |
# This randomize your MAC address for *new* connections | |
# Be sure to change your existing (saved) connections in | |
# /etc/NetworkManager/system-connections/* |
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
#!/usr/bin/env python | |
# | |
# Proof of Concept: UDP Hole Punching | |
# Two client connect to a server and get redirected to each other. | |
# | |
# This is the client. | |
# | |
# Koen Bollen <meneer koenbollen nl> | |
# 2010 GPL | |
# |
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
FROM ubuntu:18.10 | |
RUN apt-get update && apt-get upgrade -y \ | |
&& apt-get install -y --no-install-recommends apt-utils software-properties-common wget \ | |
&& apt-get install -y build-essential python3 python3-distutils \ | |
&& wget --no-check-certificate https://bootstrap.pypa.io/get-pip.py \ | |
&& python3 get-pip.py --trusted-host pypi.org --trusted-host files.pythonhosted.org | |
#RUN apt-get install python3.6 python-pip | |
#RUN python -m pip install pip --upgrade | |
#RUN python -m pip install wheel | |
#RUN apt-get install -y python3-numpy |
- Install qemu-arm-static
- Pull arm32v7/debian:jessie
- docker run -v /usr/bin/qemu-arm-static:/usr/bin/qemu-arm-static --rm -it arm32v7/debian:jessie --name rpi-test
- apt-get update
- apt-get upgrade
- apt-get install nano
- apt-get install binutils apt-utils
- apt-get install build-essential build-essential in turn installs the following- binutils bzip2 cpp cpp-4.9 dpkg-dev fakeroot g++ g++-4.9 gcc gcc-4.9 ifupdown isc-dhcp-client
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
version: '3' | |
services: | |
client: | |
#image: ubuntu:18.10 | |
# build : This directive can be used instead of image. Specifies the location of the Dockerfile that will be used to build this container | |
build: ./ | |
container_name: Chat_client | |
volumes: | |
- ./:/code |
- Year round submissions
- Provide handsome compensation
- Submissions
- Response Time : 7 months
- Peading Period: July 1-31
- Very handsome Compensation
- Submissions
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 hashlib | |
full_file = 'isd-inventory.csv' | |
part_file = 'isd-inventory.csv.part' | |
m = hashlib.md5() | |
with open(full_file, 'rb') as f: | |
for chunk in iter(lambda: f.read(128*m.block_size), b''): | |
m.update(chunk) | |
print(m.hexdigest()) |
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 fish: | |
def __init__(self,name): | |
self.name = name | |
self.skeleton = "bones" | |
def swims(self): | |
print(self.name, "swims") | |
def eyes(self): | |
print(self.name, "has eyelids") | |
class salmon(fish): |
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 spacy | |
from spacy.matcher import Matcher | |
Active = "Harry ate six shrimp at dinner.\ | |
Beautiful giraffes roam the savannah.\ | |
Sue changed the flat tire.\ | |
We are going to watch a movie tonight.\ | |
I ran the obstacle course in record time.\ | |
The crew paved the entire stretch of highway.\ | |
Mom read the novel in one day.\ |