Skip to content

Instantly share code, notes, and snippets.

@elBarkey
elBarkey / GPT4all-langchain-demo.ipynb
Created April 5, 2023 13:44 — forked from psychemedia/GPT4all-langchain-demo.ipynb
Example of running GPT4all local LLM via langchain in a Jupyter notebook (Python)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@elBarkey
elBarkey / read.js
Created December 12, 2018 12:18 — forked from sjcotto/read.js
function isChatMessage(message) {
if (message.__x_isSentByMe) {
return false;
}
if (message.__x_isNotification) {
return false;
}
if (!message.__x_isUserCreatedType) {
return false;
}
setTimeout(function() {
function getAllModules() {
return new Promise((resolve) => {
const id = _.uniqueId("fakeModule_");
window["webpackJsonp"](
[],
{
[id]: function(module, exports, __webpack_require__) {
resolve(__webpack_require__.c);
}
@elBarkey
elBarkey / frida-okhttp3
Created November 23, 2018 23:40 — 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) {
result = this.newCall(request)
console.log(request.toString())
return result