Skip to content

Instantly share code, notes, and snippets.

Avatar

Yehonatan Water Man yonixw

View GitHub Profile
@yonixw
yonixw / convert.bat
Created Jun 18, 2020
ImageMagick Webtoon black reigon remover
View convert.bat
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 / AndroidManifest.xml.md
Last active Feb 16, 2020
Vanced youtube disable search
View AndroidManifest.xml.md
@yonixw
yonixw / readme.md
Last active Nov 14, 2019
Xamarin TAG snippet with class name
View readme.md

In visual studio:

  1. Tools > Code Snippets Manager
  2. Import
  3. Choose .Snippet file
View TabGuardManager$2$1.smali.md

access$700 will add the domain to cache. By removing it we will make each navigation query our local server. Also Im afraid to put there full url which will create bugs.

@@ -221,7 +221,7 @@

     iget-object v1, v1, Lorg/mozilla/gecko/TabGuardManager$2;->val$domainName:Ljava/lang/String;

-    invoke-static {v0, v1}, Lorg/mozilla/gecko/TabGuardManager;->access$700(Lorg/mozilla/gecko/TabGuardManager;Ljava/lang/String;)V
+    #invoke-static {v0, v1}, Lorg/mozilla/gecko/TabGuardManager;->access$700(Lorg/mozilla/gecko/TabGuardManager;Ljava/lang/String;)V
@yonixw
yonixw / main.cpp
Created Sep 1, 2019
WINAPI Open process as user from SYSTEM with deny on query.
View main.cpp
#include <Windows.h>
#include <wtsapi32.h>
#include <userenv.h>
#include <aclapi.h>
#include <stdio.h>
#include <sddl.h>
#pragma comment(lib, "Userenv.lib")
#pragma comment(lib, "wtsapi32.lib")
@yonixw
yonixw / decoded.js
Created Aug 29, 2019 — forked from gwillem/decoded.js
962 stores found breached on the 4th of July - https://sansec.io
View decoded.js
// Decoded by Sanguine Security <info@sansec.io>
String.prototype.hexEncode = function() {
var a, b;
var output = '';
for (b = 0; b < this.length; b++) {
a = this.charCodeAt(b).toString(16);
output += ('000' + a).slice(-4)
};
return output
};
@yonixw
yonixw / b2_sync.bat
Created Jun 21, 2019
Uploading folder to BlackBlaze B2 using cli
View b2_sync.bat
SET B2CMD=b2 sync --threads 20 --compareVersions "size"
SET B2BUCKET=2tb-disk
b2 list-unfinished-large-files %B2BUCKET%
REM b2 cancel-all-unfinished-large-files 2tb-disk
echo Start encrypted
%B2CMD% E:\encrypted b2://%B2BUCKET%/encrypted
echo Start WindowsImageBackup
@yonixw
yonixw / ieESC_disable
Created Jun 5, 2019 — forked from danielscholl/ieESC_disable
Disable IE Enhance Security PowerShell
View ieESC_disable
function Disable-ieESC {
$AdminKey = "HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}"
$UserKey = "HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A8-37EF-4b3f-8CFC-4F3A74704073}"
Set-ItemProperty -Path $AdminKey -Name "IsInstalled" -Value 0
Set-ItemProperty -Path $UserKey -Name "IsInstalled" -Value 0
Stop-Process -Name Explorer
Write-Host "IE Enhanced Security Configuration (ESC) has been disabled." -ForegroundColor Green
}
Disable-ieESC
@yonixw
yonixw / git.sh
Created Apr 9, 2019
Merging git repos into same repo and saving histories
View git.sh
git filter-branch -f --tree-filter "mkdir Citadel.Core.Windows && ls | grep -v Citadel.Core | xargs -d '\n' mv -t Citadel.Core.Windows" HEAD
git filter-branch -f --tree-filter "if [ -f '.gitignore' ]; then mv '.gitignore' 'Citadel.Core.Windows/.gitignore'; fi" HEAD
git filter-branch -f --tree-filter "if [ -f '.travis.yml' ]; then mv '.travis.yml' 'Citadel.Core.Windows/.travis.yml'; fi" HEAD
@yonixw
yonixw / RESET_FILES.bat
Created Dec 7, 2017
Script for making a folder "Backup Ready" - Windows
View RESET_FILES.bat
set /p path=Enter folder path (C:\Path\to\Folder or G:)
REM Make me owner:
takeown /D Y /f "%path%" /r
REM Make sure i have permission and remove all deny
icacls "%path%\*.*" /reset /T
REM Remove system (-S) and hiddden (-H) from all files
attrib /S /D /L -H -S "%path%\*.*"
pause