- | e | p | |
---|---|---|---|
l | execl | execle | execlp |
v | execv | execve | execvp |
- int execl(char const *path, char const *arg0, ...);
- int execle(char const *path, char const *arg0, ..., char const *envp[]);
# /etc/sysctl.d/wireguard.conf | |
net.ipv4.ip_forward=1 | |
net.ipv6.conf.all.forwarding=1 | |
net.ipv6.conf.default.forwarding=1 | |
net.ipv6.conf.eth0.proxy_ndp=1 | |
#/etc/wireguard/wg0.conf (DO virtual machine) | |
[Interface] | |
# The server interface does not actually need an ipv6. | |
# The 2 following must be repeated for each used addres [0, 1] |
#!/bin/bash | |
inner() { | |
local cmd="$@" | |
local REGEX="(^|log.showSignature=false )(add|rm|mv) " | |
if [[ $cmd =~ $REGEX ]]; then | |
echo 'Stopping IntelliJ from being a not well-behaved git client. See IDEA-194592, IDEA-63391, IDEA-176961, ...' >&2 | |
return 1 | |
fi | |
git "$@" | |
} |
From eb244d10da4f96f8147cc0bcadf2e043106745a4 Mon Sep 17 00:00:00 2001 | |
From: Francesco Salvatore <[email protected]> | |
Date: Fri, 14 Dec 2018 16:15:44 +0100 | |
Subject: [PATCH] Fix reboot-on-shutdown issue with the new camera module | |
Since the introduction of Android N on FP2 devices equipped | |
with the new camera module, when an user tries to shutdown the device | |
it starts the power-off procedure but reboots before finishing. | |
This makes it impossible to turn off the phone and, | |
as a side effect, even to encrypt the device. |
#!/usr/bin/env python | |
'''Using Webhook and self-signed certificate''' | |
# This file is an annotated example of a webhook based bot for | |
# telegram. It does not do anything useful, other than provide a quick | |
# template for whipping up a testbot. Basically, fill in the CONFIG | |
# section and run it. | |
# Dependencies (use pip to install them): | |
# - python-telegram-bot: https://github.com/leandrotoledo/python-telegram-bot |
- | e | p | |
---|---|---|---|
l | execl | execle | execlp |
v | execv | execve | execvp |
import com.android.volley.TimeoutError; | |
import com.android.volley.VolleyError; | |
import com.android.volley.Request; | |
import com.android.volley.Response; | |
import com.android.volley.toolbox.JsonObjectRequest; | |
import org.json.JSONObject; | |
Response.Listener<JSONObject> successListener = new Response.Listener<JSONObject>() { |
<script> | |
var host = "YOURDOMAIN.github.io"; | |
if ((host == window.location.host) && (window.location.protocol != "https:")) | |
window.location.protocol = "https"; | |
</script> |