Skip to content

Instantly share code, notes, and snippets.

View sgeto's full-sized avatar

Ali Abdulkadir sgeto

View GitHub Profile
@sgeto
sgeto / InstallNpcap.ps1
Last active July 22, 2020 17:20
A Non-Interactive Npcap Installation Script
# requires -version 4
#
# Copyright (C) 2018 Ali Abdulkadir <autostart.ini@gmail.com> <sgeto@ettercap-project.org>
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge,
# publish, distribute, sub-license, and/or sell copies of the Software,
@sgeto
sgeto / gist:ae4a941756137474fd78ececb279d45b
Created July 13, 2020 02:14 — forked from jgrossiord/gist:0bd525974a5ec059adba
Mikrotik script generate address list from DNS cache entries
:foreach i in=[/ip dns cache find] do={
:local bNew "true";
:local cacheName [/ip dns cache all get $i name] ;
# :put $cacheName;
:if (([:find $cacheName "facebook" -1] >= 0) || ([:find $cacheName "outlook" -1] >= 0)) do={
:local tmpAddress [/ip dns cache get $i address] ;
:put $cacheName;
:put $tmpAddress;
@sgeto
sgeto / high-sierra-workstation.vmx
Created November 20, 2019 04:58 — forked from mcandre/high-sierra-workstation.vmx
High Sierra VMware Workstation VMX
.encoding = "windows-1252"
config.version = "8"
virtualHW.version = "14"
pciBridge0.present = "TRUE"
pciBridge4.present = "TRUE"
pciBridge4.virtualDev = "pcieRootPort"
pciBridge4.functions = "8"
pciBridge5.present = "TRUE"
pciBridge5.virtualDev = "pcieRootPort"
pciBridge5.functions = "8"
@sgeto
sgeto / file-explorer.html
Created November 23, 2019 23:36 — forked from vinodc/file-explorer.html
Kloudless File Explorer example implementation
<!DOCTYPE html>
<html>
<head>
<title>File Explorer</title>
</head>
<body>
<!--
Throw in the HTML from the JSFiddle's HTML tab here.
The JSFiddle is at http://jsfiddle.net/pseudonumos/PB565/embedded/
-->
@sgeto
sgeto / vmfusion.sh
Created November 23, 2019 22:45 — forked from vinodc/vmfusion.sh
Shell script to run VMware VM in headless mode.
#!/bin/sh
# Modified version of:
# http://tech.namshi.com/blog/2015/08/02/vmware-fusion-headless/
# See above for adding `vmrun` to your path.
if [ -z "$vmFile" -a -f *.vmx ]
then
vmFile=`ls *.vmx | head -n 1`
echo "vmFile set to $vmFile."
@sgeto
sgeto / mikrotik
Created September 5, 2019 17:01 — forked from morteza-mori/mikrotik
Mikrotik nslookup
put [resolve google.com server 8.8.8.8]
@sgeto
sgeto / doze_mode_adb_commands.sh
Created April 15, 2019 22:29 — forked from y-polek/doze_mode_adb_commands.sh
adb commands to test Doze mode
#! /bin/zsh
# Buttery powered state
adb shell dumpsys battery | grep powered
# Unplug battery
adb shell dumpsys battery unplug
# Reset battery
adb shell dumpsys battery reset
@sgeto
sgeto / mingw.common.targets
Created April 17, 2018 06:07 — forked from mitchelldavis/mingw.common.targets
MSBuild for MinGW
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<Target Name="SetupProject">
<MakeDir Directories="$(MSBuildProjectDirectory)\obj;$(MSBuildProjectDirectory)\bin" />
</Target>
<Target Name="CleanProject">
<RemoveDir Directories="$(MSBuildProjectDirectory)\obj;$(MSBuildProjectDirectory)\bin" />
</Target>
@sgeto
sgeto / AdbCommands
Created March 23, 2019 01:03 — forked from Pulimet/AdbCommands
Adb useful commands list
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
== Shell
@sgeto
sgeto / recovery-flags.mk
Created March 9, 2019 23:02 — forked from zawzaww/twrp-recovery-flags.mk
Useful TWRP Recovery flags for building Custom Bootable Recovery
# USEFUL TWRP RECOVERY FLAGS
# by ZawZaw @XDA-Developers
# Thanks to : @xda-developers for helps
# Add EXT4 support
TARGET_USERIMAGES_USE_EXT4 := true
# Disable/enable SELinux. Only suggested when you want to enable SELinux support
TWHAVE_SELINUX := true