Skip to content

Instantly share code, notes, and snippets.

View yonixw's full-sized avatar

Yehonatan Water Man yonixw

View GitHub Profile
@yonixw
yonixw / ieESC_disable
Created June 5, 2019 16:06 — forked from danielscholl/ieESC_disable
Disable IE Enhance Security PowerShell
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 April 9, 2019 21:01
Merging git repos into same repo and saving histories
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 December 7, 2017 22:39
Script for making a folder "Backup Ready" - Windows
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
@yonixw
yonixw / gist:62e22bf97be8fb0e373cc2f2eefba649
Created June 10, 2017 20:23
Http urls for TP-Link NC250 IP Camera
MJPEG (Video only without sound):
http://<user>:<B64 Pass>@10.0.0.11:8080/stream/video/mjpeg
WAV (sound only):
http://admin:YWRtaW4=@MYIP:8080/stream/audio/wavpcm
JPEG Snapshot (slower interval than MJPEG):
http://10.0.0.11:8080/stream/snapshot.jpg
@yonixw
yonixw / JsonInCSharp.cs
Created October 29, 2016 22:39
How to use JSON in .NET 4 and Higher with ease
using System.Runtime.Serialization;
using System.Runtime.Serialization.Json;
namespace Test {
[DataContract]
public class JsonStructureExample
{
[DataMember]
public int id;
}
הגדרות
go home
```sql
Yoni
```