Skip to content

Instantly share code, notes, and snippets.

View pr0way's full-sized avatar
🎯
Focusing

Tpk pr0way

🎯
Focusing
View GitHub Profile
@pr0way
pr0way / index.html
Last active November 10, 2018 20:04
"Moving levels" - universal concept do anything on scroll (for example ~ start/stop YouTube player)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
.box{
@pr0way
pr0way / goMail.py
Created October 18, 2018 15:43
Gmail 2018 auto log-in with selenium
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
myLog = "user@example.com"
myPass = "password"
browser = webdriver.Chrome('C:\\chromedriver')
browser.get("https://accounts.google.com/signin/v2/identifier?continue=https%3A%2F%2Fmail.google.com%2Fmail%2F&service=mail&sacu=1&rip=1&flowName=GlifWebSignIn&flowEntry=ServiceLogin")
element = browser.find_element_by_name("identifier")
element.send_keys(myLog)
@pr0way
pr0way / verifyDomain.sh
Created June 15, 2018 12:14
Nice code to check correct vhost domain from input field
defaultExt="local"
defaultName="example"
function vaildDomain(){
if [[ $1 =~ \. ]]; then
local domain=$(echo ${1%%.*} | tr '[:upper:]' '[:lower:]')
local tld=$(echo ${1##*.} | tr '[:upper:]' '[:lower:]')
@pr0way
pr0way / keybase.md
Created April 25, 2018 19:46
keybase.md

Keybase proof

I hereby claim:

  • I am r0v on github.
  • I am tpk (https://keybase.io/tpk) on keybase.
  • I have a public key ASC1wCUwPF3ltiwQSackxVHHGQAyvvLkqmcrz4G4kSywDgo

To claim this, I am signing this object: