Skip to content

Instantly share code, notes, and snippets.

@antonizhubar
antonizhubar / nginx.conf
Created March 29, 2025 11:56 — forked from zeahoo/nginx.conf
ollama api_key add auth
events {
}
http {
server {
listen 8088;
server_name localhost;
location / {
# 验证 Bearer token 修改这里的key为你想用的key
if ($http_authorization !~ "^Bearer sk-1234567890" ) {
@antonizhubar
antonizhubar / mssql-docker-compose.yml
Created January 24, 2024 00:28 — forked from jjuanrivvera99/mssql-docker-compose.yml
SQL Server with Docker Compose
version: '3.3'
services:
mssql:
container_name: sql-server
image: mcr.microsoft.com/mssql/server:2017-latest
#image: mcr.microsoft.com/mssql/server:2017-CU11-ubuntu
restart: always
environment:
ACCEPT_EULA: "Y"
@antonizhubar
antonizhubar / index.html
Created December 14, 2022 05:02 — forked from davidonlaptop/index.html
Render XLSX within the browser
<style type="text/css">
html,
body,
iframe {
width: 100%;
height: 100%;
}
</style>
<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=https://download.microsoft.com/download/1/4/E/14EDED28-6C58-4055-A65C-23B4DA81C4DE/Products.xlsx' width='100%' height='100%' frameborder='0'>
@antonizhubar
antonizhubar / my.label
Created September 14, 2022 05:27 — forked from matteomattei/my.label
Print labels with Dymo LabelWriter 450 using Python
<?xml version="1.0" encoding="utf-8"?>
<DieCutLabel Version="8.0" Units="twips">
<PaperOrientation>Portrait</PaperOrientation>
<Id>Small30332</Id>
<PaperName>30332 1 in x 1 in</PaperName>
<DrawCommands>
<RoundRectangle X="0" Y="0" Width="1440" Height="1440" Rx="180" Ry="180" />
</DrawCommands>
<ObjectInfo>
<TextObject>
@antonizhubar
antonizhubar / usbpower.pl
Created September 1, 2022 23:54 — forked from Krellan/usbpower.pl
This is a script that will reset a Linux USB serial tty device. Sometimes they get stuck with "unable to enable UART" error messages, this will help fix.
#!/usr/bin/perl -w
#
# USB Power
# Krellan
#
# This script will attempt to recover a misbehaving USB serial tty device,
# by unbinding/rebinding the USB hub(s) that are upstream from it.
# This should force the device to reset itself.
#
# Usage: usbpower.pl ttyUSB0
@antonizhubar
antonizhubar / markdown-to-email
Created August 19, 2022 00:56 — forked from cleverdevil/markdown-to-email
markdown-to-email A simple script to send beautifully formatted emails that you write in Markdown. The email will have an HTML payload and a plain-text alternative, so you'll make everyone happy, including yourself.
#!/usr/bin/env python
'''
Send an multipart email with HTML and plain text alternatives. The message
should be constructed as a plain-text file of the following format:
From: Your Name <your@email.com>
To: Recipient One <recipient@to.com>
Subject: Your subject line
---
@antonizhubar
antonizhubar / client.py
Created August 3, 2022 02:53 — forked from stevvooe/client.py
A minimal python to go json-rpc implemention, sans HTTP
import json
import socket
s = socket.create_connection(("127.0.0.1", 5090))
s.sendall(json.dumps(({"id": 1, "method": "Hello.Hello", "params": ["hello"]})))
print s.recv(4096)
@antonizhubar
antonizhubar / reset.css
Created July 5, 2022 00:39 — forked from DavidWells/reset.css
CSS reset. Follow me on the twitters for more tips: https://twitter.com/davidwells
/* http://meyerweb.com/eric/tools/css/reset/
v2.0-modified | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
@antonizhubar
antonizhubar / index.html
Created January 21, 2022 04:59 — forked from edwardlorilla/index.html
【VUEJS BLAZEFACE TENSORFLOW】Face Detection on the browser with Tensorflow
<template id="capture">
<div>
<modal v-if="showModal" @close="showModal = false">
</modal>
<video id="myVideo" ref="video" playsinline="" style="
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
width: auto;
height: auto;
@antonizhubar
antonizhubar / docker_wordpress.md
Created November 11, 2021 22:02 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes