Skip to content

Instantly share code, notes, and snippets.

View ThomazPom's full-sized avatar

ThomazPom ThomazPom

View GitHub Profile
essentials
apt-get update && apt-get install ffmpeg git default-jdk zip
silent web file :
https://www.google.com/search?q=silent%20wav%20file
bus y4m sample file :
https://www.google.com/search?q=bus_qcif_15fps.y4m
Google chrome with fake media
@ThomazPom
ThomazPom / Facebook Page Auto Answer.js
Last active April 1, 2021 16:07
Auto answer people on Facebook page
// ==UserScript==
// @name FAQ AutoAnswer
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.facebook.com/ListeReduction/inbox*
// @grant none
// ==/UserScript==
var nlist = [];
@ThomazPom
ThomazPom / Facebook Group Auto Accept.js
Last active April 1, 2021 16:07
Auto accept people from private facebook group
// ==UserScript==
// @name Auto accept members in group facebook
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.facebook.com/groups/*/member-requests
// @match https://www.facebook.com/groups/*/admin_activities/
// @match https://www.facebook.com/groups/*/requests/
// @grant none
while true; do
echo -e "\e[32mHEURE DE RELANCE : `date '+%Y-%m-%d %H:%M:%S'`\e[39m";
pkill chromium;
sleep 5;
chromium-browser >/dev/null 2>&1 &
sleep 3600;
done;
Function Move-Create-Rename {[CmdletBinding()]Param([Parameter(ValueFromPipeline)]
$item,$Destination
)
$item_filter = Join-Path -Path "./" -ChildPath ($item.Name -replace '[[*?\]]','`$&')
$itemName_filter = $item.Name -replace '[[*?\]]','`$&'
$itemBaseName_filter = $item.BaseName -replace '[[*?\]]','`$&'
New-Item -ItemType Directory -Force -Path $Destination
scriptdir = CreateObject("Scripting.FileSystemObject").GetParentFolderName(WScript.ScriptFullName)
CreateObject("Wscript.Shell").Run "powershell.exe "+scriptdir+"\files_autoclass.ps1", 0
import sys
from os.path import *
from os import *
folder_to_class = sys.argv[1]
def concat(*args):
return ("{}" * len(args)).format(*args)
# Multiply elems in a list
def m(l,i=0,v=1):
return m(l,i+1,v*l[i]) if i+1<len(l) else v*l[i]
# >>> m([1,2,3,4,5])
# 120
<!DOCTYPE html>
<html>
<body>
<style>iframe,embed{width:90vw;height:90vh;}pre{background:lightgray;padding:10px}
</style>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<h1>Test page for Moz-Ext-Ignore-X-Frame-Options</h1>
<h2>If content is <u>blocked</u>, you may want to
widthheight=$(wm size | sed "s/.* //")
width=$(($(echo $widthheight | sed "s/x.*//g" )+0))
height=$(($(echo $widthheight | sed "s/.*x//g" )+0))
GetColorAtPixel () {
x=$1;y=$2;
rm ./screen.dump 2> /dev/null
screencap screen.dump
screenshot_size=$(($(wc -c < ./screen.dump)+0));
buffer_size=$(($screenshot_size/($width*height)))
let offset=$width*$y+$x+3