Skip to content

Instantly share code, notes, and snippets.

View O330oei's full-sized avatar
💭
Law and Order begins with the alphabet

O330oei O330oei

💭
Law and Order begins with the alphabet
View GitHub Profile
<VirtualHost *:80>
ServerName test.localhost
Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
Header always set Access-Control-Max-Age "1000"
RewriteEngine On
RewriteCond %{HTTP:Connection} Upgrade [NC]
RewriteRule /(.*) ws://localhost:3001/$1 [P,L]
>>> b# <!-- ... existing HTML ... --> <div id="like_button_container">
</div> <!-- ... existing HTML ... --> / $ { dogglow } < { Github } >
<lf>
*.js eol=lf
*.jsx eol=lf
*.json eol=lf
@O330oei
O330oei / gist:f0ba4d828e26adb2f37779cae455a650
Last active February 11, 2020 16:23
PowerShell/CONTRIBUTING
<<-$ 17:41:13.754 ----- OpenVPN Start ----- $ 17:41:13.756 -- EVENT:
<< $ CORE_THREAD_ACTIVE 17:41:13.760 -- OpenVPN core 3.git::728733ae:Release android << $ armv7a thumb2 32-bit PT_PROXY$ built on Aug 14 2019 14:13:59 17:41:13.761 -- << << $ Frame=512/2048/512 mssfix-ctrl=1250 17:41:13.764 -- UNUSED OPTIONS 0 [verb]
<< $ [4] 5 [nobind] 8 [resolv-retry] [infinite] 9 [persist-key]
<< $ 10 [persist-tun] 17:41:13.765 -- EVENT: RESOLVE 17:41:13.769 -- Contacting
<< $ x.x.x.x:1194 via UDP 17:41:13.770 -- EVENT: WAIT 17:41:13.777 --
<< $ Connecting to [x.x.x.x]:1194 (x.x.x.x)
<< $ 8.via UDPv4 17:41:23.766 -- Server poll timeout, trying next remote entry...
<< $ 17:41:23.767 -- EVENT: RECONNECTING 17:41:23.772 -- EVENT: RESOLVE 17:41:23.784
<< $ Contacting x.x.x.x :1194l via UDP 17:41:23.785 --
<< $ EVENT: WAIT 17:41:23.793 -- Connecting to [x.x.x.x]
@O330oei
O330oei / puppeteer_pdf.js
Last active February 11, 2020 17:07 — forked from codesorter2015/puppeteer_pdf.js
Grab pdf content using puppeteer
const puppeteer = require('puppeteer');
const getPdf = (page) => {
let url = await page.url();
return page.evaluate(url => {
return new Promise(async resolve => {
const reader = new FileReader();
const response = await window.fetch(url, {
credentials: 'same-origin',
method: 'POST'
});