Implementing end-to-end HTTPS encryption with CloudFlare for Google App Engine applications.
Register the root domain with Google Cloud Platform at the following:
Ubuntu 22.04.3 | |
Expo running on android emulator crashing when chrome was opening, the emulator was closing | |
To solve added a file in ~/.android/advancedFeatures.ini | |
Vulkan = off | |
GLDirectMem = on |
Awake of your mod | |
RoR2Application.onLoad += Thing; | |
private static bool IsNetworkBaseType(Type type) | |
{ | |
return type.BaseType != null && type.BaseType == typeof(UnityEngine.Networking.NetworkBehaviour); | |
} | |
private static bool HasValidBaseType(Type type) |
# -*- coding: utf-8 -*- | |
from selenium import webdriver | |
from selenium.webdriver import ActionChains | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support import expected_conditions as ec | |
from selenium.webdriver.support.ui import WebDriverWait | |
driver = webdriver.Chrome() |
#!/usr/bin/env bash | |
# | |
# Bootstrap script for setting up a new OSX machine | |
# | |
# This should be idempotent so it can be run multiple times. | |
# | |
# Some apps don't have a cask and so still need to be installed by hand. These | |
# include: | |
# | |
# - Twitter (app store) |
import numpy as np | |
import soundfile as sf | |
from scipy.fftpack import fft, ifft | |
def rotateSignal(signal,flip): | |
if flip: | |
signal = signal[::-1] | |
x = np.concatenate((signal, signal[1:][::-1])) # concatenating the array with a reverse of itself makes it such that the fourier transform doesn't layer over a reversed version of itself in the inverse fft | |
rotSig = ifft(x) |
The following are examples of the four types rate limiters discussed in the accompanying blog post. In the examples below I've used pseudocode-like Ruby, so if you're unfamiliar with Ruby you should be able to easily translate this approach to other languages. Complete examples in Ruby are also provided later in this gist.
In most cases you'll want all these examples to be classes, but I've used simple functions here to keep the code samples brief.
This uses a basic token bucket algorithm and relies on the fact that Redis scripts execute atomically. No other operations can run between fetching the count and writing the new count.
commit 154c5879d48d0165b6bf3a37047dc38ee579b0f9 (HEAD -> wip/true-black-theme) | |
Author: Oscar Mira <valldrac@molly.im> | |
Commit: Oscar Mira <valldrac@molly.im> | |
Add dark theme with true black background color | |
diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationFragment.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationFragment.kt | |
index 0cdf7dcf91..6ac4eef67f 100644 | |
--- a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationFragment.kt | |
+++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationFragment.kt |