Skip to content

Instantly share code, notes, and snippets.

View sgeto's full-sized avatar

Ali Abdulkadir sgeto

View GitHub Profile
@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 / 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 / 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 / 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 / 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
@rem *** Disable Some Service ***
sc stop DiagTrack
sc stop diagnosticshub.standardcollector.service
sc stop dmwappushservice
sc stop WMPNetworkSvc
sc stop WSearch
sc config DiagTrack start= disabled
sc config diagnosticshub.standardcollector.service start= disabled
sc config dmwappushservice start= disabled
@sgeto
sgeto / external.patch
Created February 17, 2019 03:02 — forked from flankerhqd/external.patch
Patch on mksh to enable shell command logging into logcat. Rememeber to replace ash to mksh on emulator builds.
diff --git a/Android.mk b/Android.mk
index e53b863..1d3854e 100644
--- a/Android.mk
+++ b/Android.mk
@@ -8,7 +8,6 @@ LOCAL_PATH:= $(call my-dir)
# /system/etc/mkshrc
include $(CLEAR_VARS)
-
LOCAL_MODULE:= mkshrc