Skip to content

Instantly share code, notes, and snippets.

View yonixw's full-sized avatar

Yehonatan Water Man yonixw

View GitHub Profile
@yonixw
yonixw / readme.md
Last active November 14, 2019 20:08
Xamarin TAG snippet with class name

In visual studio:

  1. Tools > Code Snippets Manager
  2. Import
  3. Choose .Snippet file
@yonixw
yonixw / AndroidManifest.xml.md
Last active February 16, 2020 20:23
Vanced youtube disable search
@yonixw
yonixw / convert.bat
Created June 18, 2020 00:04
ImageMagick Webtoon black reigon remover
REM TO C#
REM https://www.imagemagick.org/discourse-server/viewtopic.php?t=33531
SET f=31.jpg
REM Pencil:
REM convert -size 256x256 xc: +noise Random -virtual-pixel tile -motion-blur 0x20+135 -charcoal 1 pencil_tile.gif
REM Get the black
@yonixw
yonixw / search.txt
Created June 20, 2020 22:23
Call Graph
VSCODE - JS?
Android Stduio - Java?
xCode - ioS?
doxygen
[?] Visual Studio Ext
* https://marketplace.visualstudio.com/items?itemName=YaobinOuyang.CodeAtlas
* C/C++(Tested) Python,Java,C#(Not Tested yet)
* Other languages that __doxygen__ supports:
@yonixw
yonixw / index.html
Last active September 30, 2020 01:33
Dock\Border layout problem with expending content
<html>
<head>
<title>Dock layout problem POC</title>
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<style><html>
<head>
<title>Dock layout problem POC</title><html>
<head>
@yonixw
yonixw / report_bom.js
Created October 7, 2020 01:25
SonaType small report for ci cd
var http = require('http');
var fs = require('fs');
const { exit } = require('process');
const filename = "./bom.json"
function getReadableFileSizeString(fileSizeInBytes) {
var i = -1;
var byteUnits = [' kB', ' MB', ' GB', ' TB', 'PB', 'EB', 'ZB', 'YB'];
do {
@yonixw
yonixw / Readme.md
Last active November 5, 2020 20:16
Concurrent WhatsApp Web across devices and windows

Info

Watch the video version : https://www.youtube.com/watch?v=IzZmIpXgZzo

This guide will let you run multiple WhatsApp-Web instances. Please note:

  • Send - every message send will happen as soon as possible
  • Read - Your phone will sync with only 1 instance at a time, to get update, you need to trigger it. My choise is to query a message info (any message)

Note: This guide is for educational porpuses only!!! It might break anyday. Use cautionally.

Step 1 - Sync secrets.

@yonixw
yonixw / timer.js
Last active November 15, 2022 14:06
Time nodejs
// moved to https://github.com/yonixw/nodejs-onefile
@yonixw
yonixw / get.sh
Last active April 29, 2021 20:58
Get nginx users per day
cat nginx_logs.txt // (docker logs with timestamps, so first col ($1) is time)
| tr -cd '\11\12\15\40-\176' // filter non ascii from bot requests
| grep "/202" // get rows with time like Apr/2021 or Jul/2020
| grep 'qp.png' // get rows which will called once per real user
| awk '{split($5,a,":"); print a[1] "\t" $2}' // print time of day and ip
| uniq -c
| sort -rn
| awk '{arr[$2]+=1} END {for (i in arr) {print substr(i,2),arr[i]}}' // Group IPs per day
@yonixw
yonixw / main.css
Created May 2, 2021 08:05
antd full screen dialog
@media screen and (max-width: 800px) {
.ant-modal-mask {
animation-duration: 0s !important; /* fade */
}
.ant-modal-content {
height: 100%;
}
.ant-modal {