Minimal lighttpd configuration example which proxies all HTTP traffic on localhost:80 to localhost:3333. To run in a Docker container execute:
sudo docker run --rm -t -v "$(pwd)/lighttpd.conf:/etc/lighttpd/lighttpd.conf" -p 80:80 sebp/lighttpd
const axios = require("axios"); | |
/* | |
1- In Microsoft Teams, choose More options (⋯) next to the channel name and then choose Connectors. | |
2- Scroll through the list of Connectors to Incoming Webhook, and choose Add. | |
3- Enter a name for the webhook, upload an image to associate with data from the webhook, and choose Create. | |
4- Replace the webhook URL into this variable. | |
*/ | |
const webhookURL = "https://outlook.office.com/webhook/XXXXX...XXXXX/IncomingWebhook/XXXXX...XXXXX"; |
body { | |
background: #161616; | |
margin: 0; | |
height: 100dvh; | |
display: grid; | |
place-content: center center; | |
} | |
.spinner { |
This is a list of the most basic but extremely useful commands. Learning these will help you have a strong foundation to add more sophisticated commands upon.
Here are some words that we use and some meanings that you may associate them with.
We use | What you may know them as |
---|---|
directory | folder |
sudo | Run as Administor |
# Batch convert all .ppt/.pptx files encountered in folder and all its subfolders | |
# The produced PDF files are stored in the invocation folder | |
# | |
# Adapted from http://stackoverflow.com/questions/16534292/basic-powershell-batch-convert-word-docx-to-pdf | |
# Thanks to MFT, takabanana, ComFreek | |
# | |
# If PowerShell exits with an error, check if unsigned scripts are allowed in your system. | |
# You can allow them by calling PowerShell as an Administrator and typing | |
# ``` | |
# Set-ExecutionPolicy Unrestricted |
import tiktoken | |
import langdetect | |
T = tiktoken.get_encoding("o200k_base") | |
length_dict = {} | |
for i in range(T.n_vocab): | |
try: | |
length_dict[i] = len(T.decode([i])) | |
except: |
import UIKit | |
class ViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
// Create our textLabel | |
let textLabel = MagicLabel(frame: CGRect(x: 50.0, y: 50.0, width: 200.0, height: 30.0)) | |
self.view.addSubview(textLabel) |