Skip to content

Instantly share code, notes, and snippets.

View mhmtcbn's full-sized avatar

Mehmet Çoban mhmtcbn

  • İstanbul/Türkiye
View GitHub Profile
@V3YNjKbFGLSQ0FzpOu1s
V3YNjKbFGLSQ0FzpOu1s / Zyxel.py
Last active July 12, 2024 22:52 — forked from yasinkuyu/Zyxel.py
Selenium Python Zyxel (VMG3312-B10B) Router Reboot
import time
from selenium import webdriver
from selenium.webdriver import ActionChains
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.firefox.options import Options
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
@yasinkuyu
yasinkuyu / Zyxel.py
Created August 25, 2017 18:10
Selenium Python Zyxel (VMG3312-B10B) Router Reboot
def router_reset():
print "Modem resetleniyor"
driver = webdriver.Chrome('./chromedriver')
driver.get('http://192.168.1.1/login.cgi')
username = driver.find_element_by_id('username')
password = driver.find_element_by_id('userpassword')
@tonyerskine
tonyerskine / README.MD
Last active February 22, 2024 13:14
Windows Script to Convert Excel Files to CSV

Instructions

  1. Copy both files into the directory containing the files you want converted
  2. Run excel-to-csv.bat

Note: This script requires Excel to be installed.

@egel
egel / auto-remove-sublime-license-popup
Last active August 14, 2024 12:54
Auto-remove Sublime's license popup
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sublime_plugin
import subprocess
from time import sleep
import sys
cl = lambda line: subprocess.Popen(line, shell=True, stdout=subprocess.PIPE).communicate()[0].strip()
log = lambda message: sys.stderr.write("Log: %s\n" % message)