Skip to content

Instantly share code, notes, and snippets.

@alyatwa
alyatwa / frida-okhttp3.js
Last active March 16, 2021 01:07 — forked from tiiime/frida-okhttp3.js
frrida log okhttp request
// frida -U ${package} -l request.js
Java.perform(function () {
var OkHttpClient = Java.use("okhttp3.OkHttpClient");
var RealCall = Java.use("okhttp3.RealCall");
OkHttpClient.newCall.implementation = function (request) {
var result = this.newCall(request)
console.log(request.toString())
return result
@alyatwa
alyatwa / Component.jsx
Created April 5, 2020 16:27 — forked from krambertech/Component.jsx
ReactJS: Input fire onChange when user stopped typing (or pressed Enter key)
import React, { Component } from 'react';
import TextField from 'components/base/TextField';
const WAIT_INTERVAL = 1000;
const ENTER_KEY = 13;
export default class TextSearch extends Component {
constructor(props) {
super();
@alyatwa
alyatwa / functions.php
Created January 24, 2020 23:24 — forked from jonathanjanssens/functions.php
Add schema to yoast seo breadcrumbs
<?php
/**
* Add schema to yoast seo breadcrumb
*/
add_filter('wpseo_breadcrumb_links', 'jj_add_crumb_schema', 10, 1);
function jj_add_crumb_schema($crumbs) {
if ( ! is_array( $crumbs ) || $crumbs === array() ) {
@alyatwa
alyatwa / app.js
Created October 7, 2019 14:44 — forked from JuanJo4/app.js
Twitter OAuth with node-oauth for node.js + express 4
/*
Node.js, express, oauth example using Twitters API
Install Dependencies:
npm install express
npm install oauth
Create App File:
Save this file to app.js
package main
import (
"log"
"net/http"
"net/url"
"fmt"
"golang.org/x/net/html"
"io/ioutil"
)