URL | Purpose |
---|---|
/stats.do | Quick stats |
/cache.do | Clear your instance cache |
Discover gists
<?php | |
public static function onAbrirMapa($param = null) | |
{ | |
try | |
{ | |
TScript::create(" | |
if (navigator.geolocation) { | |
navigator.geolocation.getCurrentPosition(function(position) { | |
var latitude = position.coords.latitude; |
# | |
# Instructions for quick gluster server (1 node) setup with a volume on LVM. | |
# No replication, just using localhost. | |
# | |
# See https://docs.gluster.org/en/latest/Administrator%20Guide/Brick%20Naming%20Conventions/ | |
# | |
# Install GlusterFS | |
add-apt-repository ppa:gluster/glusterfs-4.0 | |
apt-get install glusterfs-server |
import time | |
import requests | |
import webbrowser as web | |
import pyautogui as pg | |
import pyttsx3 | |
class WhatsappMessage: | |
def __init__(self,phone_no, message, time_hour, time_min): |
For some reason, although Plex supports hardware-accelerated HDR tone mapping, Plex decides not to use it when subtitles need to be burned in. This results in extremely slow transcoding on hardware that should be able to keep up using hardware acceleration. I've noticed this issue on my server with Intel QuickSync, and this fix is made specifically for that case.
Before the fix, the SW tone mapping was only able to do 6-7 fps on a i5 7400T for an HDR 4K->1080p transcode. With the fix, that same transcode happens with HW tone mapping, and goes up to 82 fps. Even for HDR 4K->4K, this CPU is able to do 35 fps using QuickSync, thus keeping up with at least one video stream.
When connecting to a remote server via SSH it is often convenient to use SSH agent forwarding so that you don't need a separate keypair on that server for connecting to further servers.
This is enabled by adding the
ForwardAgent yes
option to any of your Host
entries in ~/.ssh/config
(or alternatively with the -A
option). Don't set this option in a wildcard Host *
section since any user on the remote server that can bypass file permissions can now als use keys loaded in your SSH agent. So only use this with hosts you trust.
# load the realtime components | |
loadrt [KINS]KINEMATICS | |
loadrt [EMCMOT]EMCMOT base_period_nsec=[EMCMOT]BASE_PERIOD servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS | |
loadrt flexi chip_type=STM SPI_clk_div=32 PRU_base_freq=120000 | |
loadrt not names=stepen_not,stepen_z_not,probe_basic_time_not | |
loadrt time names=probe_basic_time_time | |
loadrt estop_latch names=estop_latch | |
loadrt and2 names=run_and,step_and |
// Run GOOGLE CHROME - WORKING AS OF DEC 26 2023 | |
// Please @ me in the comments if this stops working, I will try to get it working again within the month | |
// INSTRUCTIONS | |
// 1. Open Instagram in Chrome | |
// 2. Click on "FOLLOWERS" OR "FOLLOWING" on your Instagram profile or a desired user's Instagram profile | |
// 3. Open developer tools by right clicking on the page and clicking "INSPECT" | |
// 4. Copy the code below and paste in the developer tools console and press enter to run | |
// 5. Script will not run if tab is navigated away from, minimized of unfocused (It is recommended to open a new chrome window or push tab to the side and let script run in background) |
<?php | |
$column_vencimento->setTransformer(function($value, $object, $row) | |
{ | |
if ($value < date('Y-m-d')) | |
{ | |
$row->style = 'background:#FC7474'; | |
} | |
$date = new DateTime($value); |