This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// prerequest script | |
// hooked before call | |
if (pm.environment.get("offline")=="on"){ | |
pm.environment.set("baseURL", pm.environment.get("offlineSite")); | |
}else{ | |
pm.environment.set("baseURL", pm.environment.get("onlineSite")); | |
} | |
pm.environment.set("username", "salt"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.odk.collect.android.logic; | |
import android.support.annotation.NonNull; | |
import com.google.common.base.Joiner; | |
import org.javarosa.core.model.data.IAnswerData; | |
import org.javarosa.core.model.data.LongData; | |
import org.javarosa.core.model.data.StringData; | |
import org.javarosa.core.model.instance.TreeElement; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Powershell or CMD console: | |
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux | |
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform | |
open link & install: | |
https://www.microsoft.com/store/productId/9NBLGGH4MSV6 | |
akses icon shortcut, atau cmd: | |
wsl | |
ubuntu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
how to use: | |
nano ~/.bashrc | |
paste block of command_not_found_handle() in bellow | |
save & test | |
example test: | |
notepad as notepad.exe | |
explorer as explorer.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Android SSL Re-pinning frida script v0.2 030417-pier | |
$ adb push burpca-cert-der.crt /data/local/tmp/cert-der.crt | |
$ frida -U -f it.app.mobile -l frida-android-repinning.js --no-pause | |
https://techblog.mediaservice.net/2017/07/universal-android-ssl-pinning-bypass-with-frida/ | |
*/ | |
setTimeout(function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Here you can add your Google Analytics Tracking code. If you do so, do not | |
forget to set the include_analytics attribute to true on the _config.yml file --> | |
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XB3ENLMJ9V"></script> | |
<script> | |
window.dataLayer = window.dataLayer || []; | |
function gtag() { dataLayer.push(arguments); } | |
gtag('js', new Date()); | |
gtag('config', 'G-XB3ENLMJ9V'); | |
gtag('send', 'pageview'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web.settings.javaScriptEnabled = true | |
web.settings.allowFileAccessFromFileURLs = true | |
web.webViewClient = object: WebViewClient(){ | |
override fun onPageFinished(view: WebView?, url: String?) { | |
super.onPageFinished(view, url) | |
evaluateJS(view) | |
}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ***; | |
import android.app.Dialog; | |
import android.content.Context; | |
import android.content.DialogInterface; | |
import android.support.annotation.NonNull; | |
import android.support.annotation.Nullable; | |
import android.support.annotation.StyleRes; | |
import android.support.v4.widget.SwipeRefreshLayout; | |
import android.support.v7.widget.SearchView; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// remove leading zero from form input, | |
// 0000003232 change to 3232 | |
// 0000.002 change to 0.002 | |
// 00,030 change to 0,030 | |
String formatedSellingValue = roundedSellingValue | |
.replaceFirst("^((?![(\\.)|(\\,)]))+(?!$)", ""); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package *** | |
import io.reactivex.subjects.PublishSubject | |
import java.util.* | |
class RxBus { | |
companion object { | |
val instance = RxBus() | |
private val subject = PublishSubject.create<Any>() | |
} |