cat /proc/sys/net/bridge/bridge-nf-call-iptables
sysctl vm.swappiness=0
swapoff -a
async function trackVisit (request, visitorId) { | |
let data = { | |
token_auth: 'secret', | |
country: request.headers.get('CF-IPCountry'), | |
urlref: request.referrer || request.headers.get('Referer'), | |
idsite: 1, | |
lang: request.headers.get('Accept-Language'), | |
apiv: 1, | |
rand: Math.random().toString(16).slice(2), | |
url: request.url, |
Did you ever have android build failed issue because of dependency resolution?
… or you were curious where all these old rxjava dependencies come from?
You can pretty easy track the module causing issues via following gradle command.
gradlew :root-module:dependencyInsight \
--configuration debugRuntimeClasspath \ // or debugCompileClasspath
--dependency io.reactivex:rxjava:1.1.0 > dependencies.txt // saves result to 'dependencies.txt' file
1.Add “aufs” or “overlay” (or both) to /etc/modules-load.d/modules.conf in your PVE host and reboot. Check it with lsmod | grep -E 'overlay|aufs' | |
2.Use a LXC image with unprivilege features (you can check them here: https://uk.images.linuxcontainers.org/) | |
3.Create the container with unprivilege option, and “keyctl=1, nesting=1” features (Options section in proxmox). | |
4.Maybe you would want to mount an external point into /var/lib/docker (Resources section in proxmox) | |
5.Check this link (https://docs.docker.com/storage/storagedriver/overlayfs-driver/#configure-docker-with-the-overlay-or-overlay2-storage-driver) to change your storage-driver in docker to use aufs or overlay2. | |
6.Install portainer: https://portainer.readthedocs.io/en/latest/deployment.html | |
Voilá… |
Download the latest ugw3
package from https://github.com/Lochnair/vyatta-wireguard/releases and install it on your USG using dpkg -i wireguard-ugw3-<version>.deb
.
cd /config/auth
umask 077
mkdir wireguard
cd wireguard
wg genkey > wg_private.key
wg pubkey < wg_private.key > wg_public.key
Hi, I am a fork from https://gist.github.com/patrickhammond/4ddbe49a67e5eb1b9c03.
A high level overview for what I need to do to get most of an Android environment setup and maintained on OSX higher Catalina and Big Sur with and without Android Studio been installed.
Considering the SDK is installed under /Users/<your_user>/Library/Android/sdk folder which is the Android Studio preferred SDK location, but it works fine under /usr/local/share/android-sdk as well, which is a location pretty much used on CI mostly.
https://github.com/shyiko/jabba instead ?
For troubleshooting, two things to first try: | |
run `git config --global gpg.program gpg2`, to make sure git uses gpg2 and not gpg | |
run `echo "test" | gpg2 --clearsign`, to make sure gpg2 itself is working | |
If that all looks all right, one next thing to try: | |
run `brew install pinentry` to ensure you have a good tool installed for passphrase entry | |
If after that install and you re-try git commit and still get the "failed to sign the data" error: | |
run `gpgconf --kill gpg-agent` to kill any running agent that might be hung |
#!/bin/bash | |
DOCKER_PS_LINE=`docker ps | awk '{print $1,$2,$NF}' | grep -m 1 $1` | |
CONTAINER_NAME=`echo $DOCKER_PS_LINE | awk '{print $2}'` | |
CONTAINER_ID=`echo $DOCKER_PS_LINE | awk '{print $1}'` | |
if [ -n "$CONTAINER_ID" ]; then | |
echo "Logged in: $CONTAINER_NAME" | |
docker exec -it $CONTAINER_ID bash | |
else | |
echo "No container found for query: '$1'" |
# The initial version | |
if [ ! -f .env ] | |
then | |
export $(cat .env | xargs) | |
fi | |
# My favorite from the comments. Thanks @richarddewit & others! | |
set -a && source .env && set +a |