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
@observer
export class MessageComponent extends React.Component<any, any> {
constructor(props: any) {
super(props);
this.state = {
editValue: this.props.message.content,
};
this.handleEditButton = this.handleEditButton.bind(this);
this.handleTrash = this.handleTrash.bind(this);
! function (e, t) {
"object" == typeof exports && "object" == typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define([], t) : "object" == typeof exports ? exports.JsMediaSDK_Instance = t() : e.JsMediaSDK_Instance = t()
}(window, function () {
return function (e) {
var t = {};
function n(i) {
if (t[i]) return t[i].exports;
var r = t[i] = {
i: i,
@jbis9051
jbis9051 / view.js
Last active December 2, 2019 20:46
function switchThread(convo) {
selectedConvo = convo;
document.querySelectorAll('.thread').forEach(el => {
if (el === convo.selector) {
el.setAttribute("selected", "")
} else {
el.removeAttribute("selected")
}
});
Process: node [3356]
Path: /usr/local/bin/node
Identifier: node
Version: 0
Code Type: X86-64 (Native)
Parent Process: webstorm [1518]
Responsible: webstorm [1518]
User ID: 506
Date/Time: 2019-11-27 15:19:36.623 -0500
Nov 17 17:53:35 webserver-tt kernel: [157870.560856] lsb_release invoked oom-killer: gfp_mask=0x6200ca(GFP_HIGHUSER_MOVABLE), order=0, oom_score_adj=0
Nov 17 17:53:35 webserver-tt kernel: [157870.560862] CPU: 0 PID: 31460 Comm: lsb_release Not tainted 5.0.0-1025-gcp #26~18.04.1-Ubuntu
Nov 17 17:53:35 webserver-tt kernel: [157870.560863] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Nov 17 17:53:35 webserver-tt kernel: [157870.560865] Call Trace:
Nov 17 17:53:35 webserver-tt kernel: [157870.560881] dump_stack+0x63/0x85
Nov 17 17:53:35 webserver-tt kernel: [157870.560886] dump_header+0x57/0x315
Nov 17 17:53:35 webserver-tt kernel: [157870.560890] ? kvm_sched_clock_read+0x11/0x20
Nov 17 17:53:35 webserver-tt kernel: [157870.560893] ? sched_clock+0x9/0x10
Nov 17 17:53:35 webserver-tt kernel: [157870.560895] oom_kill_process+0x254/0x280
Nov 17 17:53:35 webserver-tt kernel: [157870.560896] out_of_memory+0x11b/0x510
@jbis9051
jbis9051 / err
Created November 15, 2019 14:08
$ journalctl -xe
-- Unit mysql.service has begun starting up.
Nov 15 14:03:29 webserver-tt audit[16495]: AVC apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="
Nov 15 14:03:29 webserver-tt kernel: audit: type=1400 audit(1573826609.473:118): apparmor="DENIED" operation="open"
Nov 15 14:03:29 webserver-tt audit[16501]: AVC apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="
Nov 15 14:03:29 webserver-tt kernel: audit: type=1400 audit(1573826609.533:119): apparmor="DENIED" operation="open"
Nov 15 14:03:29 webserver-tt mysqld[16501]: Initialization of mysqld failed: 0
Nov 15 14:03:29 webserver-tt systemd[1]: mysql.service: Control process exited, code=exited status=1
Nov 15 14:03:29 webserver-tt systemd[1]: mysql.service: Failed with result 'exit-code'.
Nov 15 14:03:29 webserver-tt systemd[1]: Failed to start MySQL Community Server.
@jbis9051
jbis9051 / err
Created November 15, 2019 14:05
$ journalctl -xe
-- Unit mysql.service has begun starting up.
Nov 15 14:03:29 webserver-tt audit[16495]: AVC apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="
Nov 15 14:03:29 webserver-tt kernel: audit: type=1400 audit(1573826609.473:118): apparmor="DENIED" operation="open"
Nov 15 14:03:29 webserver-tt audit[16501]: AVC apparmor="DENIED" operation="open" profile="/usr/sbin/mysqld" name="
Nov 15 14:03:29 webserver-tt kernel: audit: type=1400 audit(1573826609.533:119): apparmor="DENIED" operation="open"
Nov 15 14:03:29 webserver-tt mysqld[16501]: Initialization of mysqld failed: 0
Nov 15 14:03:29 webserver-tt systemd[1]: mysql.service: Control process exited, code=exited status=1
Nov 15 14:03:29 webserver-tt systemd[1]: mysql.service: Failed with result 'exit-code'.
Nov 15 14:03:29 webserver-tt systemd[1]: Failed to start MySQL Community Server.
return (
(body['adult-tickets'] && body['student-ticket']) // make sure that the number of tickets are there (we use this to calculate price)
&& (/^\d+$/.test(body["adult-tickets"]) && /^\d+$/.test(body["student-tickets"])) // make sure they are numbers
&& (body["adult-tickets"] = parseInt(body["adult-tickets"])) // parse em and make sure it worked
&& (body["student-tickets"] = parseInt(body["student-tickets"]))
&& (body["adult-tickets"] > 0 || body["student-tickets"] > 0) // check that either student or adult ticket forms were included
&& (body["adult_tickets"].length === body["adult-tickets"] || body["student_tickets"].length === body["student-tickets"]) // check that we have all the forms and no more
&& [body["adult_tickets"], body["student_tickets"]].every(
b => keys.every(e => Object.keys(b).includes(e) && b[e].length < 255)) // make sure all the keys in the above array are in the all of the inputs for each
&& [body["adult_tickets"],
Intimus pacmaster s, The PacMaster S packaging material shredders allow businesses to recycle their cardboard packaging in a unique way., https://nonagon-paddlefish-5ywp.squarespace.com/s/IS_PacMasterS_VS_01-18_en.pdf, TECHNOLOGY
Shreds old and obsolete cardboard to robust packaging material, Well designed controls: lockable power switch is also an emergency stop switch, Single pass operation, Lockable master switch, Size guide on the work surface to ensure accurate cutting of the cardboard to customise the stuffing mats to required format
Extremely robust steel plate housing for heavy duty use at the packing station, SPECIFICATIONS, Dimensions (H x W x D): 37.4" x 27.1" x 18.5", Cutting Speed: 7.1 in/sec
Supply Voltage: 400 V, Noise level (dB(A)): 62-68.5, Weight: 308.6 lbs
HSM SHREDSTAR S10, DOCUMENT SHREDDER, Data protection for everyone., This modern and compact strip cut document shredder with a separate CD cutting unit destroys your data reliably and quietly, both at home or in a small office., https://
@jbis9051
jbis9051 / eval.js
Last active October 22, 2019 19:23
const {workerData: code, parentPort} = require('worker_threads');
async function done(error, result) {
parentPort.postMessage({error: error, result: result, logged: console._items});
}
/* most extra functions could be possibly unsafe*/
const whitey = {
Array: 1,
Boolean: 1,