Skip to content

Instantly share code, notes, and snippets.

View jbis9051's full-sized avatar
😎
Reinventing Everything

Josh Brown jbis9051

😎
Reinventing Everything
View GitHub Profile
sqlite.open(path.join('/', 'Users', 'joshuabrown3', 'Desktop', 'chat.db')).then(db => db.all('SELECT * FROM `chat`').then(chats => {
const promises = [];
const convos = chats.map(chat => {
const convo = new Conversation(chat, db);
promises.push(new Promise(resolve => {
convo.on("ready", resolve);
}));
convos.push(convo);
});
Promise.all(promises).then(_ => {
@jbis9051
jbis9051 / promises.js
Last active September 22, 2019 23:30
db.all('SELECT `chat`.`chat_identifier`,`chat`.`ROWID`,`chat`.`service_name` FROM `chat`').then(chats => {
chats.forEach(chat => {
db.all(`SELECT message.text,message.\`is_from_me\`,message.service,message.date FROM chat_message_join INNER JOIN message ON chat_message_join.message_id = message.ROWID WHERE chat_message_join.chat_id = ${chat.ROWID} ORDER BY message.date ASC`).then(messages => {
addThread(chat.chat_identifier, chat.ROWID, chat.service_name, messages)
});
});
});
@jbis9051
jbis9051 / log
Created September 8, 2019 22:01
106.12.40.233 - - [08/Sep/2019:17:11:25 -0400] "GET / HTTP/1.1" 302 213
106.12.40.233 - - [08/Sep/2019:17:11:25 -0400] "POST /%75%73%65%72%2e%70%68%70 HTTP/1.1" 302 221
106.12.40.233 - - [08/Sep/2019:17:11:25 -0400] "GET /index.php HTTP/1.1" 302 222
106.12.40.233 - - [08/Sep/2019:17:11:26 -0400] "GET /phpmyadmin/index.php HTTP/1.1" 302 233
106.12.40.233 - - [08/Sep/2019:17:11:26 -0400] "GET /phpMyAdmin/index.php HTTP/1.1" 302 233
106.12.40.233 - - [08/Sep/2019:17:11:26 -0400] "GET /pmd/index.php HTTP/1.1" 302 226
106.12.40.233 - - [08/Sep/2019:17:11:26 -0400] "GET /pma/index.php HTTP/1.1" 302 226
106.12.40.233 - - [08/Sep/2019:17:11:27 -0400] "GET /PMA/index.php HTTP/1.1" 302 226
106.12.40.233 - - [08/Sep/2019:17:11:27 -0400] "GET /PMA2/index.php HTTP/1.1" 302 227
106.12.40.233 - - [08/Sep/2019:17:11:27 -0400] "GET /pmamy/index.php HTTP/1.1" 302 228
!function (t) {
var e = {};
function n(r) {
if (e[r])
return e[r].exports;
var i = e[r] = {
i: r,
l: !1,
exports: {}
};
import Download from './Download';
import DownloadItem from './components/DownloadItem/DownloadItem.js';
import React from "react";
import Enum from './enum.js';
const {DownloadStatus} = Enum;
const events = window.require('events');
class Bot {
constructor(client){
this.client = client;
this.client.otherFunc();
}
someFunc(str){
}
}
java.util.ArrayList;
import javafx.geometry.Pos;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.stage.Stage;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.layout.Pane;
import javafx.scene.layout.HBox;
java.util.ArrayList;
import javafx.geometry.Pos;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.stage.Stage;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.layout.Pane;
import javafx.scene.layout.HBox;
import React from 'react';
import StandardMenu from '../Shared/StandardMenu/StandardMenu';
import Checkbox from "../Shared/checkbox";
const os = require('os');
export default class SettingsMenu extends React.component {
constructor(props) {
super(props);
import React from 'react';
import StandardMenu from '../Shared/StandardMenu/StandardMenu';
import Checkbox from "../Shared/checkbox";
export default class SettingsMenu extends React.component{
constructor(props) {
super(props);
this.updateSettings = this.updateSettings.bind(this);
this.changePath = this.changePath.bind(this);