This file contains 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
#!/usr/bin/env python | |
# coding=utf-8 | |
import os, mechanize, cookielib, re | |
CURRENT_DIR = os.path.dirname(__file__) | |
br = mechanize.Browser() | |
cj = cookielib.LWPCookieJar() | |
br.set_cookiejar(cj) |
This file contains 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
#!/usr/bin/python | |
import hashlib | |
import sys | |
def decryptMD5(testHash): | |
s = [] | |
while True: | |
m = hashlib.md5() | |
for c in s: |
This file contains 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
#!/usr/bin/python | |
import subprocess | |
import re | |
ps = subprocess.Popen(['ps', '-caxm', '-orss,comm'], stdout=subprocess.PIPE).communicate()[0] | |
vm = subprocess.Popen(['vm_stat'], stdout=subprocess.PIPE).communicate()[0] | |
processLines = ps.split('\n') | |
sep = re.compile('[\s]+') | |
rssTotal = 0 # kB |
This file contains 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
class MultipleFormsView(ItemUpdate): | |
model = MyModel | |
template_name = '' | |
success_url = reverse_lazy('') | |
form_class = Form1 | |
second_form_class = Form2 | |
third_form_class = Form3 | |
This file contains 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
" https://github.com/VundleVim/Vundle.vim | |
" https://valloric.github.io/YouCompleteMe/ | |
" | |
let $PATH = '/usr/local/bin:'.$PATH | |
set nocompatible " be iMproved, required | |
filetype off " required | |
if has("multi_byte") | |
if &termencoding == "" | |
let &termencoding = &encoding |
This file contains 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
#!/usr/bin/python | |
import aiohttp | |
import asyncio | |
import httpx | |
from timeit import default_timer as timer | |
from time import sleep | |
This file contains 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
#!/usr/bin/python | |
import aiohttp | |
import asyncio | |
from timeit import default_timer as timer | |
from time import sleep | |
async def main(): |
This file contains 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
#!/bin/bash | |
# | |
# Auto-rotate touch screen based on device orientation. | |
# | |
# Fedora 36 | |
# 5.17.14-300.fc36.x86_64 | |
# | |
# Cinnamon 5.2.7 | |
# | |
# You just need to add this script to the startup of applications for the user. |
This file contains 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
#!/usr/bin/python | |
from collections import deque | |
def combinations(digits): | |
keys = { | |
"2": "abc", | |
"3": "def", | |
"4": "ghi", |
This file contains 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
#!/usr/bin/python | |
def combinations(digits): | |
keys = { | |
"2": "abc", | |
"3": "def", | |
"4": "ghi", | |
"5": "jkl", | |
"6": "mno", |
OlderNewer