These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.
This file contains hidden or 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
| # install_certifi.py | |
| # | |
| # sample script to install or update a set of default Root Certificates | |
| # for the ssl module. Uses the certificates provided by the certifi package: | |
| # https://pypi.python.org/pypi/certifi | |
| import os | |
| import os.path | |
| import ssl | |
| import stat |
This file contains hidden or 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
| #coding=utf8 | |
| import re, sys, time, os | |
| from ctypes import Structure, c_short, windll, byref | |
| try: | |
| from shutil import get_terminal_size | |
| except: | |
| from backports.shutil_get_terminal_size import get_terminal_size | |
| CN_REGEX = re.compile(u'[\u4e00-\u9fff]') |
This file contains hidden or 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 python3 | |
| import sys | |
| from datetime import datetime | |
| import time | |
| from time import sleep | |
| from dnslib import DNSLabel, QTYPE, RD, RR, RCODE | |
| from dnslib import A, AAAA, CNAME, MX, NS, SOA, TXT | |
| from dnslib.server import DNSServer |
This file contains hidden or 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/local/env sh | |
| PORT="30022" | |
| sudo sed -i "s/#Port 22/Port ${PORT}/g" /etc/ssh/sshd_config | |
| sudo sed -i "s/#PermitRootLogin yes/PermitRootLogin no/g" /etc/ssh/sshd_config | |
| echo ""|sudo tee -a /etc/ssh/sshd_config | |
| echo "AllowUsers samuel"|sudo tee -a /etc/ssh/sshd_config | |
| echo ""|sudo tee -a /etc/ssh/sshd_config |
This file contains hidden or 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
| #!/bin/sh | |
| # disable firewalld | |
| systemctl stop firewalld | |
| systemctl mask firewalld | |
| # disable selinux (required if change sshd port) | |
| # don't change /etc/sysconfig/selinux, its softlink. "sed -i" will make softlink a real file. | |
| # sudo sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config | |
| # setenforce 0 |
This file contains hidden or 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
| #!/user/env python | |
| # by Samuel <[email protected]> | |
| import json | |
| import base64 | |
| import hashlib | |
| import datetime | |
| from Crypto.Cipher import AES, PKCS1_v1_5 | |
| from Crypto.PublicKey import RSA, DSA | |
| from Crypto import Random |
This file contains hidden or 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/python | |
| import django.core.handlers.wsgi | |
| import os, signal, functools, time | |
| import tornado.httpserver | |
| import tornado.ioloop | |
| import tornado.wsgi | |
| from tornado.options import options, define | |
| try: | |
| define("port", default=8888, help="run on the given port", type=int) |
This file contains hidden or 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
| /*jslint undef: true, nomen: true, eqeqeq: true, plusplus: true, newcap: true, immed: true, browser: true, devel: true, passfail: false */ | |
| /*global window: false, readConvertLinksToFootnotes: false, readStyle: false, readSize: false, readMargin: false, Typekit: false, ActiveXObject: false */ | |
| var dbg = (typeof console !== 'undefined') ? function(s) { | |
| console.log("Readability: " + s); | |
| } : function() {}; | |
| /* | |
| * Readability. An Arc90 Lab Experiment. | |
| * Website: http://lab.arc90.com/experiments/readability |
This file contains hidden or 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
| #Newbie programmer | |
| def factorial(x): | |
| if x == 0: | |
| return 1 | |
| else: | |
| return x * factorial(x - 1) | |
| print factorial(6) | |
| #First year programmer, studied Pascal |