I hereby claim:
- I am sigmapie8 on github.
- I am sigmapie8 (https://keybase.io/sigmapie8) on keybase.
- I have a public key ASBMkljAODZMXmVx3782h-uUUuF51kNg0Mo5h1H3HAfwGwo
To claim this, I am signing this object:
| import stem | |
| from stem.process import launch_tor_with_config | |
| def print_lines(line): | |
| if('Bootstapped' in line): | |
| print(line) | |
| tor = launch_tor_with_config(config = {'ControlPort': '9051'}, init_msg_handler = print_lines) | |
| tor.terminate() |
| from stem.process import launch_tor | |
| def print_lines(line): | |
| if('Bootstrapped' in line): | |
| print(line) | |
| tor = launch_tor(init_msg_handler = print_lines) | |
| tor.terminate() |
| from stem.process import launch_tor | |
| import os | |
| def print_lines(line): | |
| if("Bootstrapped" in line): | |
| print(line) | |
| tor_path = os.path.join("<absolute path>\\Tor Browser\\Browser\\TorBrowser\\Tor", "tor.exe") | |
| tor = launch_tor(tor_cmd = tor_path, init_msg_handler = print_lines) |
I hereby claim:
To claim this, I am signing this object:
| import os | |
| source_location = "<location\\of\\the\\folder\\where\\configuration\\files\\are\\kept" | |
| #Note how \\ is used. It is neccessary that you use \\ instead of \ for window file paths | |
| #os.walk allows us to iterate through all the files and folder in the | |
| #given location | |
| for i in os.walk(source_location): | |
| # What os.walk gives us in return is a list. | |
| # That list has 3 elements |
| import os | |
| source_location = "<location\\of\\the\\folder\\where\\configuration\\files\\are\\kept" | |
| #Note how \\ is used. It is neccessary that you use \\ instead of \ for window file paths | |
| searchString = "sha512WithECDSAEncryption" | |
| def hasEncryption(file, encryptionString): | |
| # this functions opens a single file and checks | |
| # if the file has searchString that we're looking for |
| import os | |
| from openpyxl import Workbook | |
| # we're importing Workbook class from openpyxl module | |
| source_location = "<by now you should know what goes here>" | |
| searchString = "sha512WithECDSAEncryption" | |
| servers = dict() | |
| # A dictionary to keep track of my servers | |
| # as you must remember dictionaries work with key:value pair | |
| # so if my server supports sha512WithECDSAEncryption then |
| def send_mail(email_content, latest_post_name): | |
| """ | |
| sends mail regarding latest posts to all the subscribers | |
| """ | |
| sender = "subscription@manavgarg.in" | |
| message = EmailMessage() | |
| message.set_content(email_content) | |
| message["Subject"] = latest_post_name+" By Manav Garg" | |
| message["From"] = sender |
| def latest_post(): | |
| """ | |
| returns the last modified post in posts directory | |
| """ | |
| posts_dic = dict() | |
| for dirpath, dirnames, filenames in os.walk(posts_directory): | |
| for dirname in dirnames: | |
| posts_dic[dirname] = os.stat(dirpath+"/"+dirname).st_mtime | |
| import 'package:flutter/material.dart'; | |
| import 'package:internet_connection_checker/internet_connection_checker.dart'; | |
| class CheckConnection extends StatefulWidget { | |
| @override | |
| _CheckConnectionState createState() => _CheckConnectionState(); | |
| } | |
| class _CheckConnectionState extends State<CheckConnection> { | |
| @override |