Skip to content

Instantly share code, notes, and snippets.

export default {
async fetch(request) {
const html = `
<html>
<head>
<meta charset="UTF-8">
<meta content="origin" name="referrer">
</head>
<body><div class="container">
<style>
<html>
<head>
<meta charset="UTF-8">
<meta content="origin" name="referrer">
<link rel="stylesheet" href="style.css">
</head>
<body>
<script>
/*
function test(){
body {
font: 16px Open sans, sans-serif;
height: 100vh;
transition: .3s ease;
background-image: linear-gradient(-45deg, #EEF0F3 0%, #F6F5F3 100%);
}
.container {
margin: 10vh auto;
<html>
<head>
<meta charset="UTF-8">
<meta content="origin" name="referrer">
<link rel="stylesheet" href="style.css">
</head>
<body>
<script>
/*
function test(){
@reg0l
reg0l / client.py
Created March 26, 2023 12:16 — forked from yoavram/client.py
Example of uploading binary files programmatically in python, including both client and server code. Client implemented with the requests library and the server is implemented with the flask library.
import requests
#http://docs.python-requests.org/en/latest/user/quickstart/#post-a-multipart-encoded-file
url = "http://localhost:5000/"
fin = open('simple_table.pdf', 'rb')
files = {'file': fin}
try:
r = requests.post(url, files=files)
print r.text
@reg0l
reg0l / HOWTODMG.md
Created March 26, 2019 20:43 — forked from jadeatucker/HOWTODMG.md
How to create a "DMG Installer" for Mac OS X

Creating a "DMG installer" for OS X

A DMG Installer is convenient way to provide end-users a simple way to install an application bundle. They are basically a folder with a shortcut to the Applications directory but they can be customized with icons, backgrounds, and layout properties. A DMG file (.dmg) is a Mac OS X Disk Image file and it is used to package files or folders providing compression, encryption, and read-only to the package.

##Creating the DMG file #Disk Utility

Keybase proof

I hereby claim:

  • I am reg0l on github.
  • I am regolade (https://keybase.io/regolade) on keybase.
  • I have a public key ASCvK3yggxGkizmNRN81pyhB35B7bB_M6R4rt70htjvDDQo

To claim this, I am signing this object:

@reg0l
reg0l / ansible-summary.md
Created April 6, 2018 21:37 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of