This document has now been incorporated into the uWSGI documentation:
http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html
Steps with explanations to set up a server using:
--- growl.new/Plugins/Actions/SMS/GrowlSMSDisplay.m 2013-04-24 12:50:06.000000000 -0700 | |
+++ growl/Plugins/Actions/SMS/GrowlSMSDisplay.m 2013-04-24 12:38:47.000000000 -0700 | |
@@ -138,7 +138,7 @@ | |
CFDataRef postData = CFStringCreateExternalRepresentation(kCFAllocatorDefault, dataString, kCFStringEncodingUTF8, 0U); | |
CFURLRef clickatellURL = CFURLCreateWithString(kCFAllocatorDefault, CFSTR("https://api.clickatell.com/xml/xml"), NULL); | |
NSMutableURLRequest *post = [[NSMutableURLRequest alloc] initWithURL:(NSURL *)clickatellURL]; | |
- CFStringRef contentLength = CFStringCreateWithFormat(kCFAllocatorDefault, NULL, CFSTR("%u"), CFDataGetLength(postData)); | |
+ CFStringRef contentLength = CFStringCreateWithFormat(kCFAllocatorDefault, NULL, CFSTR("%lu"), CFDataGetLength(postData)); | |
// NSLog(@"SMS display: Sending data: %@", postData); |
exit # Dont run this as a script | |
# LLVM seems to work great on Musl, there only seems some build errors | |
# when trying to build the sanitizers. So sanitizers have been disabled. | |
# This is rougly based on this: | |
# https://wiki.musl-libc.org/building-llvm.html | |
# But updated for LLVM 8 | |
# We are also focusing on making a GNU-less toolchain, as there is | |
# no libgcc and no libstdc++, instead we favor LLVM's own compiler-rt |
# bigdecoder.py, by aderyn@gmail.com, 2009-03-01 | |
# | |
# decoder for .BIG-format files utilized by Red Alert 3 and C&C: Zero Hours | |
# among others. .big is a trivial archival format. quite frankly, this is | |
# probably the simplest compound file format imaginable. | |
# | |
# this script is written for microsoft windows. it can probably be easily | |
# adapted for other platforms, but i haven't tried. | |
# | |
# file structure: |
/* | |
* Demo of libpq epoll. | |
* Build: g++ libpq-epoll.cpp -o libpq-epoll -lpq | |
* Run: ./libpq-epoll | |
*/ | |
#include <arpa/inet.h> | |
#include <cstdlib> | |
#include <cstring> | |
#include <errno.h> |
# do this after all install(...) commands so that all targets are finalized. | |
# Essentially, the last thing included at the end of the top-level CMakeLists.txt | |
set(CPACK_GENERATOR "TBZ2") | |
set(CPACK_SOURCE_GENERATOR "TBZ2") | |
set(CPACK_PACKAGE_DIRECTORY ${PROJECT_BINARY_DIR}/package) | |
set(CPACK_SOURCE_IGNORE_FILES .git/ .github/ .vscode/ .mypy_cache/ _CPack_Packages/ | |
${CMAKE_BINARY_DIR}/ ${PROJECT_BINARY_DIR}/ | |
) |
body { | |
background-color: #272822; | |
} | |
div#cgit { | |
padding: 0em; | |
margin: 0em; | |
font-family: sans-serif; | |
font-size: 10pt; | |
color: white; |
# | |
# This piece of code is in the public domain. | |
# <zh.jesse@gmail.com> | |
# | |
from datetime import datetime | |
def get_age(date): | |
'''Take a datetime and return its "age" as a string. | |
The age can be in second, minute, hour, day, month or year. Only the |
From 387fd25f57f41009fc317f7922e957de9f370ff2 Mon Sep 17 00:00:00 2001 | |
From: Ilya Kurdyukov <jpegqs@gmail.com> | |
Date: Tue, 14 Dec 2021 21:54:32 +0700 | |
Subject: [PATCH] faster lzma_decoder for x86 | |
Notice: Uses inline assembly with CMOV instruction. | |
Another change that removes the comparison with in_size can give a few | |
percent speedup for architectures with a small number of registers. | |
--- |
# Adjust the following variables as necessary | |
REMOTE=origin | |
BRANCH=$(git rev-parse --abbrev-ref HEAD) | |
BATCH_SIZE=500 | |
# check if the branch exists on the remote | |
if git show-ref --quiet --verify refs/remotes/$REMOTE/$BRANCH; then | |
# if so, only push the commits that are not on the remote already | |
range=$REMOTE/$BRANCH..HEAD | |
else |