Windows Service with Python 3.5 and pyinstaller
- Python 3.5.x
- Visual C++ Build Tools 2015
- PyInstaller 3.2
| I remember very clear I cry when I finish volume 3 of Knuth. | |
| % | |
| I am work on CSS SQL. | |
| % | |
| First sign of depression in devops is denial: you start of ignore Nagios alert. | |
| % | |
| In devops language is not success unless is another language++. | |
| % | |
| In devops you are addict to graph if first thought after orgasm is send duration and intensity to Graphite. | |
| % |
Windows Service with Python 3.5 and pyinstaller
| package main | |
| import ( | |
| "log" | |
| "syscall" | |
| "unsafe" | |
| ) | |
| var ( | |
| kernel32 = syscall.NewLazyDLL("kernel32.dll") |
| For REST/JSON web service that returns : | |
| { | |
| "DatabaseConnections": [ | |
| { | |
| "DatabaseName": "database1", | |
| "DatabaseStatus": "Open", | |
| }, | |
| { | |
| "DatabaseName": "database2", | |
| "DatabaseStatus": "Open", |
| // Tarantool quick test | |
| // Copyright, Dennis Anikin 2016 | |
| // | |
| // Quick disclaimer: | |
| // | |
| // This test shows 500K-1000K transactions per second on one CPU core | |
| // and 600K-1600K queries per second on one CPU core. | |
| // | |
| // Based on the $6.57 per-month-price for the AWS t2.micro instance we can afford the tremendous number of 630bln queries for just $1 | |
| // |
| #!/usr/bin/env python | |
| import random | |
| import struct | |
| import sys | |
| # Most of the Fat32 class was cribbed from https://gist.github.com/jonte/4577833 | |
| def ppNum(num): | |
| return "%s (%s)" % (hex(num), num) |
| /** | |
| * This are a collection of examples for C 201. | |
| * These combine concepts you may or may not be | |
| * familiar with and are especially useful for | |
| * students new to C. There is a lot of really | |
| * cool stuff you can do in C without any cool | |
| * languages. | |
| * | |
| * This is file in particular is an introduction | |
| * to fun function usage in C. |
This page collects common comments made during reviews of Go code, so that a single detailed explanation can be referred to by shorthands. This is a laundry list of common mistakes, not a style guide.
You can view this as a supplement to http://golang.org/doc/effective_go.html.
Please discuss changes before editing this page, even minor ones. Many people have opinions and this is not the place for edit wars.
| import os,tty;tty.setcbreak(0);M=['']*16 | |
| def G(v): | |
| p=['']*4;u=list(filter(str,v));i=3 | |
| while u:z=u.pop();p[i]=u and z==u[-1]and 2*u.pop()or z;i-=1 | |
| return p | |
| def Y(M,k):i=1;M=zip(*[iter(M)]*4);exec'M=map([list,G][i*k==k*k],zip(*M))[::-1];i+=1;'*4;return sum(M,[]) | |
| while 1: | |
| r=id(M)%71+17 | |
| while M[r%16]*r:r-=1 | |
| if r:M[r%16]=r%7%2*2+2 |
| // Just before switching jobs: | |
| // Add one of these. | |
| // Preferably into the same commit where you do a large merge. | |
| // | |
| // This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
| // and then it quickly escalated into more and more evil suggestions. | |
| // I've tried to capture interesting suggestions here. | |
| // | |
| // Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
| // @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |