Skip to content

Instantly share code, notes, and snippets.

View 3XclusiVe's full-sized avatar

Дмитрий Малых 3XclusiVe

  • Moscow
View GitHub Profile
using UnityEditor;
using UnityEngine;
using Object = UnityEngine.Object;
public class UIHelperGizmoDrawer
{
#if UNITY_USE_UI_MARGINS_VIEWER
[DrawGizmo(GizmoType.Selected)]
static void DrawGizmoForMyScript(RectTransform rect, GizmoType gizmoType)
@3XclusiVe
3XclusiVe / search_text_pattern_android_libs.sh
Last active June 22, 2018 21:28
find text pattern in all android manifests and aar files in folder.
#usage: search_text_pattern_android_libs android.permission.WRITE_EXTERNAL_STORAGE
function recursiveSearchInAARs {
for file in *; do
if [ -d "$file" ]; then
(cd -- "$file" && recursiveSearchInAARs)
fi
#foreach file with extension .aar in folder recusevly
if [[ $file == *.aar ]]; then
if ( unzip -c "$file" | grep --color -Ri --include="*.xml" "$pattern"); then
import subprocess
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
def git(command):
command_to_execute = str.split(command)
output = subprocess.check_output(["git"] + command_to_execute)
return output