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
| from discord.ext import commands | |
| import os | |
| import random | |
| import discord | |
| bot = commands.Bot(command_prefix='-') | |
| @bot.command() | |
| async def say(ctx, string): |
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
| import socket | |
| host_name = input("Enter the website address: ") | |
| print(f'The {host_name} IP address is: {socket.gethostbyname(host_name)}') |
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
| import socket | |
| h_name = socket.gethostname() | |
| IP_addres = socket.gethostbyname(h_name) | |
| print("Host Name is: " + h_name) | |
| print("Computer IP Address is: " + IP_addres) |
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
| import requests | |
| my_ip = requests.get("https://api.ipify.org").text | |
| print(my_ip) | |
| print("made by @knockify (on github)") |
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
| import time | |
| print("#1") | |
| time.sleep(5) | |
| print("#2") |
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
| print("Hello World!") |
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
| import random | |
| a = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","0","1","2","3","4","5","6","7","8","9"] | |
| p = "" | |
| for i in range(int(input("How long would you like your password to be? : "))): | |
| n = random.randint(0,61) | |
| p = p + a[n] | |
| print(p) |
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
| from flask import Flask | |
| app = Flask('app') | |
| @app.route('/') | |
| def hello_world(): | |
| return 'Hello, World!' | |
| app.run(host='0.0.0.0', port=8080) |
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
| //Before you start typing open your developer console and paste the following script | |
| //Now pressing any key will result in to correct key press untill you reach next space key. | |
| //I made the user push space to move further, so that someone viewing your typing will think you are not faking. | |
| //warning: Site detects the WPM above 100 and asks you to do a captcha test. | |
| var jq = document.createElement('script'); | |
| jq.src = "//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"; | |
| document.getElementsByTagName('head')[0].appendChild(jq); | |
| // ... give time for script to load, then type. | |
| jQuery.noConflict(); |
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
| import discord | |
| client = discord.Client() | |
| @client.event | |
| async def on_ready(): | |
| print(f'{client.user} has connected to Discord!') | |
| @client.event | |
| async def on_message(message): | |
| if message.author == client.user: |
NewerOlder