- 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
import os | |
path = "C:/Users/username/path/to/your/folder" | |
file_list = os.listdir(path) | |
file_list_no_extension = [os.path.splitext(x)[0] for x in file_list] | |
for i,j in zip(file_list,file_list_no_extension): | |
command_list = [] | |
command1 = "openssl x509 -inform der -in " | |
command2 = " -out " | |
command3 = ".pem" | |
command_list.append(command1) |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include "doublyLinkedList.h" | |
Node* createnode(){ | |
Node* node = malloc(sizeof(*node)); | |
return node; | |
} | |
void addNode(Node** head, int info){ |
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
# pdf File downloader for TI Links | |
from bs4 import BeautifulSoup | |
import requests | |
import urllib3 | |
import re | |
import os | |
DOWNLOAD_FOLDER = os.path.join("D:",os.sep,"electronics","TI_pdfs") | |
os.mkdir(DOWNLOAD_FOLDER) |
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
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 |
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 | |
# |
- 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
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 |
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): |
OlderNewer