Note
to active Office without crack, just follow https://github.com/WindowsAddict/IDM-Activation-Script,
you wiil only need to run
irm https://massgrave.dev/ias | iex
// GLSL Octahedral Texture Mapping with Edge Mirroring and Bilinear Interpolation (by Benjamin 'BeRo' Rosseaux) | |
ivec2 wrapOctahedralTexelCoordinates(const in ivec2 texel, const in ivec2 texSize) { | |
ivec2 wrapped = ((texel % texSize) + texSize) % texSize; | |
return ((((abs(texel.x / texSize.x) + int(texel.x < 0)) ^ (abs(texel.y / texSize.y) + int(texel.y < 0))) & 1) != 0) ? (texSize - (wrapped + ivec2(1))) : wrapped; | |
} | |
vec4 textureOctahedralMap(const in sampler2D tex, vec3 direction) { | |
direction = normalize(direction); // just for to make sure that it is normalized | |
vec2 uv = direction.xy / (abs(direction.x) + abs(direction.y) + abs(direction.z)); |
#!/usr/bin/env python3 | |
import json | |
import os | |
import sys | |
from configparser import ConfigParser | |
from datetime import datetime | |
from pathlib import Path | |
import boto3 |
""" | |
A demonstration on how raising KeyboardInterrupt in the context of tasks | |
spawned via asyncio's loop.run_in_executor does not cancel the threads | |
using any of the cancellation methods in asyncio Futures. | |
The only "proper" way to cancel is to: | |
1. unregister the `atexit` registered `_python_exit` function | |
2. call `shutdown(wait=False)` | |
The reason is that the `thread` module registers `_python_exit` forcing a |
resource "aws_lambda_function" "service" { | |
# Your usual aws_lambda_function configuration settings here | |
tracing_config { | |
mode = "Active" | |
} | |
} |
Note
to active Office without crack, just follow https://github.com/WindowsAddict/IDM-Activation-Script,
you wiil only need to run
irm https://massgrave.dev/ias | iex
Ninj0r admin, [Oct 20, 2017, 9:18:55 AM]: | |
It's a three step process: | |
1) Start listening to the stream and buffering the messages | |
2) Get a depth snapshot | |
3) replay the buffered messages and the live messges. | |
Depth updates have two variables, u and U | |
U is the initial updateId, and u is the final updateId. There can be multiple updates "compressed" into a single update that comes out via the web socket stream. |
#![feature(lang_items)] | |
#![no_std] | |
#[no_mangle] | |
pub fn add_one(x: i32) -> i32 { | |
x + 1 | |
} | |
// needed for no_std |
FROM microsoft/dotnet:2.0-sdk as builder | |
RUN mkdir -p /root/src/app/aspnetcoreapp | |
WORKDIR /root/src/app/aspnetcoreapp | |
#copy just the project file over | |
# this prevents additional extraneous restores | |
# and allows us to resuse the intermediate layer | |
# This only happens again if we change the csproj. | |
# This means WAY faster builds! |
async def gather_dict(tasks: dict): | |
async def mark(key, coro): | |
return key, await coro | |
return { | |
key: result | |
for key, result in await gather( | |
*(mark(key, coro) for key, coro in tasks.items()) | |
) | |
} |