Skip to content

Instantly share code, notes, and snippets.

View avamsi's full-sized avatar

Vamsi Avula avamsi

View GitHub Profile
import re
import pyquery
import requests
embedlink_base = {
'adhqmedia': 'http://www.adhqmedia.com/files/embed/',
'likeafool': 'http://embed.likeafool.com/files/embed/',
'vidbaba': 'http://www.mycollection.net/new_files/embed/'
}
@echo off & python -x %~f0 %* & goto :EOF
import os.path
import sys
import subprocess
PATH_PREFIXES = [r'C:\Python27', r'C:\Python27\Scripts',
r'C:\Python27\Library\bin', '']
EXTENSIONS = ['.exe', '.cmd', '.bat']
[
/* @ EMPTY WINDOW
* Style for empty (no tabs) window
========================================================================= */
{
"class": "sheet_container_control",
"layer0.tint": [26, 29, 35],
"layer0.opacity": 1.0
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>PlasticCodeWrap</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
{
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/User/Flatland (SpaceGray Edit).tmTheme",
"copy_with_empty_selection": false,
"default_line_ending": "unix",
"dpi_scale": 1,
"enable_tab_scrolling": false,
"ensure_newline_at_eof_on_save": true,
"fade_fold_buttons": false,
[
{ "keys": ["ctrl+alt+p"], "command": "prompt_select_workspace" },
{ "keys": ["ctrl+shift+s"], "command": "save" },
{ "keys": ["ctrl+shift+v"], "command": "paste_from_history" },
{ "keys": ["ctrl+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} },
{ "keys": ["shift+f7"], "command": "build", "args": {"select": true} },
#SingleInstance force
#End::Volume_Mute
#PgUp::Volume_Up
#PgDn::Volume_Down
#!Up::
#!Right::
Run nircmd changebrightness +5
Return
@avamsi
avamsi / aria.py
Last active January 28, 2016 15:34
import subprocess
import threading
import time
import Queue
import setq
def get_conf():
while True:
time.sleep(1)
@avamsi
avamsi / irctc.py
Last active July 28, 2024 14:33
Python script to semi-automate tatkal ticket booking.
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import Select, WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from time import sleep, strftime
def waituntil(s):
while strftime('%H:%M:%S') < s:
print strftime('%H:%M:%S')
sleep(1)
@avamsi
avamsi / timer.py
Last active September 5, 2016 11:20
from contextlib import contextmanager
from sys import stderr
from timeit import default_timer as now
import atexit
@contextmanager
def timeit(s=''):
start = now()
yield
print >>stderr, '-- %06.3fs' % (now() - start), '|', s