Skip to content

Instantly share code, notes, and snippets.

Avatar
🌍
Lower Your Eyelids To Die With The Sun

Tomas Carnecky wereHamster

🌍
Lower Your Eyelids To Die With The Sun
View GitHub Profile
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
View SketchSystems.spec
Aurum GNC
Boot
ok -> Welcome
emergency stop -> Emergency Stop
some event -> Workout
Welcome
Mode Selection
Workout
Exercise
View .gitignore
index.js
index.d.ts
example.js
example.d.ts
node_modules/
@wereHamster
wereHamster / README.md
Last active Jun 21, 2020 — forked from yorkxin/README.md
Proxy to remote server with CORS support
View README.md

cors.py for mitmproxy

Hacking CORS restriction to enable in-browser XHR to any server.

Usage

Say you are running an web app at localhost, and you want to send XHR to http://remote-server:80, but the CORS restriction forbids access because you are sending requests from an origin that remote-server:80 does not allow.

Run:

View stack-test.cabal
name: stack-test
version: 0.0.1
author: Tomas Carnecky
maintainer: tomas.carnecky@gmail.com
build-type: Simple
cabal-version: >= 1.10
View gist:2608a5f774edf8d334be
"4ornsGrsjsgww" - 4
"JMEbIqDYGdrZn" - 3
"TZJIrIkqExIEc" - 1
"GpIVJIsEmX8mF"
"7dQEIw6BbArDV"
"WxPUtdG2S2OYm"
"RmxkZuJIYiHGK" - 2
"DWUipRQnSOoFM"
View keybase.md

Keybase proof

I hereby claim:

  • I am wereHamster on github.
  • I am werehamster (https://keybase.io/werehamster) on keybase.
  • I have a public key whose fingerprint is A077 7880 A5E5 97BD A192 2151 68B9 B79C 5167 3CF5

To claim this, I am signing this object:

View gist:41609f079dd1851b678a
git for-each-ref --format='%(refname)' refs/heads/ | while read ref; do git log --oneline $ref | tail -n 1; done
View package.json
{
"name": "playground",
"version": "0.0.0",
"description": "",
"main": "server.js",
"dependencies": {
"connect": "~2.11.0",
"connect-compiler": "~0.1.3",
"less": "~1.5.1",
"livereload": "~0.3.2"
View comments.rb
require 'mail'
class Jekyll::Post
alias :to_liquid_without_comments :to_liquid
def to_liquid
data = to_liquid_without_comments
data['comments'] = Comments::load(self)