Skip to content

Instantly share code, notes, and snippets.

View gmist's full-sized avatar

Serg Baburin gmist

  • Tashkent, Uzbekistan
View GitHub Profile
@gmist
gmist / kmskeys10.txt
Created August 6, 2018 00:51 — forked from CHEF-KOCH/kmskeys10.txt
Windows 10 KMS Keys
Windows.10.and.Office.2016.gVLK
#####################################################################
# Install/Uninstall keys #
#####################################################################
1.) Uninstall the current product by entering the “uninstall product key” extension:
slmgr.vbs /upk
2.) Install the key that you obtained above for “Windows Srv 2012R2 DataCtr/Std KMS for Windows 10”
@gmist
gmist / dumb-ap-wired-link.sh
Created July 30, 2018 12:46 — forked from braian87b/dumb-ap-wired-link.sh
How to setup a Dumb AP, Wired backbone for OpenWRT / LEDE
@gmist
gmist / faster_get_multi.py
Created October 19, 2016 12:24 — forked from mcummins/faster_get_multi.py
Fetch a set of keys directly from App Engine memcache, instead of using ndb. Almost 3x faster if everything is in memcache.
# This Gist is an alternative to ndb.get_multi which is a lot faster in some circumstances.
# For example, fetching 500 small entities with 90% hit rate is 3x faster than ndb,
# based on my tests in App Engine production environment (F1).
# In general it is worthwhile when fetching a large number of small entities, with >50% memcache hit rate.
# For any keys not in memcache, it falls back on a normal ndb.get_multi
# The code is based on the original ndb.context code, but avoids the task queue overhead.
import logging
from google.appengine.api import memcache
╭─@ssr.local ~/Develop/appengine/my-gae-init ‹fix_cloud_sdk›
╰─ source temp/venv/bin/activate
(venv)╭─@ssr.local ~/Develop/appengine/my-gae-init ‹fix_cloud_sdk›
╰─ python
Traceback (most recent call last):
File "/Users/serg/Develop/appengine/my-gae-init/temp/venv/lib/python2.7/site.py", line 703, in <module>
main()
File "/Users/serg/Develop/appengine/my-gae-init/temp/venv/lib/python2.7/site.py", line 683, in main
paths_in_sys = addsitepackages(paths_in_sys)
File "/Users/serg/Develop/appengine/my-gae-init/temp/venv/lib/python2.7/site.py", line 282, in addsitepackages
(my-gae-init)╭─@ssr.local ~/Develop/appengine/my-gae-init ‹master›
╰─ git pull lipis master:master
(my-gae-init)╭─@ssr.local ~/Develop/appengine/my-gae-init ‹master›
╰─ git log
(my-gae-init)╭─@ssr.local ~/Develop/appengine/my-gae-init ‹master›
╰─ rm -rf temp
(my-gae-init)╭─@ssr.local ~/Develop/appengine/my-gae-init ‹master›
╰─ rm -rf main/lib
(my-gae-init)╭─@ssr.local ~/Develop/appengine/my-gae-init ‹master›
╰─ rm main/lib.zip
@gmist
gmist / app.yaml
Created March 7, 2014 07:49 — forked from cagatay/app.yaml
application: your-app-name
version: 1
runtime: python
api_version: 1
default_expiration: "30d"
handlers:
- url: /(.*\.(appcache|manifest))
mime_type: text/cache-manifest
@gmist
gmist / profiling.py
Created November 20, 2013 08:18 — forked from ikatson/profiling.py
# coding: utf-8
# Profiling middleware and decorator, that allows to profile any django
# view easily for superusers.
__author__ = '[email protected]'
import cProfile
import pstats
import tempfile