This file contains hidden or 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
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” |
This file contains hidden or 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
# ======================================================== | |
# Setup a Dumb AP, Wired backbone for OpenWRT / LEDE | |
# ======================================================== | |
# Set lan logical interface as bridge (to allow bridge multiple physical interfaces) | |
uci set network.lan.type='bridge' | |
# assign WAN physical interface to LAN (will be available as an additional LAN port now) | |
uci set network.lan.ifname="$(uci get network.lan.ifname) $(uci get network.wan.ifname)" | |
uci del network.wan.ifname | |
# Remove wan logical interface, since we will not need it. | |
uci del network.wan |
This file contains hidden or 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
# 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 |
This file contains hidden or 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
╭─@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 |
This file contains hidden or 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
(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 |
This file contains hidden or 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
application: your-app-name | |
version: 1 | |
runtime: python | |
api_version: 1 | |
default_expiration: "30d" | |
handlers: | |
- url: /(.*\.(appcache|manifest)) | |
mime_type: text/cache-manifest |
This file contains hidden or 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
# 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 |