Skip to content

Instantly share code, notes, and snippets.

@steamboatid
steamboatid / vnc-current-session-x0vncserver-tigervnc.txt
Last active June 15, 2024 11:03
vnc current session, x0vncserver, tigervnc
#-- original script: https://gilgil.gitlab.io/2020/05/29/1.html
#-------------------------------------------------------------
at server :
# apt install install tigervnc-scraping-server
# mkdir -p ~/.vnc
# vncpasswd
Password:
Verify:
! 2021-12-29 https://139.99.17.109
139.99.17.109###top-banner
139.99.17.109###after-menu-2
! 2021-12-29 https://www.facebook.com
||facebook.com/video/unified_cvc/*$xhr,domain=facebook.com
! 2022-01-06 https://139.99.17.109
139.99.17.109##.post > .custom-html-widget.textwidget > .row
139.99.17.109###middle-banner
@steamboatid
steamboatid / delete-all-wordpress-terms.sql
Created November 19, 2022 04:32
delete all wordpress terms
DELETE a, b, c
FROM `wp_term_relationships` AS a
INNER JOIN `wp_term_taxonomy` AS b ON (a.`term_taxonomy_id` = b.`term_taxonomy_id`)
INNER JOIN `wp_terms` AS c ON (b.`term_id` = c.`term_id`)
WHERE a.`object_id` IN (SELECT `ID` FROM `wp_posts` WHERE `post_type`='post');
DELETE a, b, c
FROM `wp_term_relationships` AS a
INNER JOIN `wp_term_taxonomy` AS b ON (a.`term_taxonomy_id` = b.`term_taxonomy_id`)
INNER JOIN `wp_terms` AS c ON (b.`term_id` = c.`term_id`)
@steamboatid
steamboatid / stop-words.txt
Last active November 10, 2022 01:31
daftar stop words bahasa indonesia. dikumpulkan dari berbagai sumber
acap
acara
ada
adakan
adalah
adanya
adapun
aduh
aduhai
agak
@steamboatid
steamboatid / sanitize.inc.php
Last active July 20, 2020 16:53
Paranoid input sanitizing in PHP
<?
///////////////////////////////////////
// sanitize.inc.php
// Sanitization functions for PHP
// by: Gavin Zuchlinski, Jamie Pratt, Hokkaido
// webpage: http://libox.net
// Last modified: September 27, 2003
//
// Many thanks to those on the webappsec list for helping me improve these functions
///////////////////////////////////////
<?php echo '<?xml version="1.0" encoding="UTF-8"?>' ?>
<xsl:stylesheet version="2.0"
xmlns:sitemap="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<html>
<head>
<style type="text/css">
a {
normalizing gpos for ANN
- pan00 = pan to 0,0, then rotate each 15 degrees
- flipx= from pan00, flip x, then rotate 15 degrees
- flipy= from pan00, flip y, then rotate 15 degrees
- flipxy= from pan00, flip x, flip y, then rotate 15 degrees
- normalize to 1,1
- divide time --> using distance between points
t1/t2 = d1/d2 --> t2= d2/d1 * t1