Skip to content

Instantly share code, notes, and snippets.

View dalisoft's full-sized avatar
😀
Happy to code

Davlatjon Sh dalisoft

😀
Happy to code
View GitHub Profile
@tomasevich
tomasevich / nginx_nodejs.md
Last active September 17, 2024 17:17
Сервер в связке Nginx + NodeJs

Сервер в связке Nginx + NodeJs

Данная пошаговая инструкция поможет освоить основы на простом примере

Для справки

Сервер поднимался на Debian 8 c характеристиками:

CPU - 1 ядро x 500 МГц

@six519
six519 / opencv_test.js
Last active February 29, 2020 10:42
(Node.js Sample Code) Basic Motion Detection With OpenCV
var cv = require('./node_modules/opencv/lib/opencv');
var sleep = require('sleep');
var camera = new cv.VideoCapture(0); //open camera
//set the video size to 512x288
camera.setWidth(512);
camera.setHeight(288);
var window = new cv.NamedWindow('Camera');
var firstFrame, frameDelta, gray, thresh;
@jthomas
jthomas / package.json
Last active September 24, 2023 21:58
Using TensorFlow.js with MobileNet models for image classification on Node.js
{
"name": "tf-js",
"version": "1.0.0",
"main": "script.js",
"license": "MIT",
"dependencies": {
"@tensorflow-models/mobilenet": "^0.2.2",
"@tensorflow/tfjs": "^0.12.3",
"@tensorflow/tfjs-node": "^0.1.9",
"jpeg-js": "^0.3.4"
@AriTheElk
AriTheElk / gpg_key_backup.md
Last active June 4, 2022 11:53
Backup/Restore GPG key

The following is the procedure I use on UNIX systems:

First, export all public certificates into a public keyring:

$ gpg --armor --export > pub.asc

Second, export all secret certificates into a secret keyring:

@bmaupin
bmaupin / free-database-hosting.md
Last active April 8, 2025 14:38
Free database hosting
@xavierfoucrier
xavierfoucrier / gpg-signing.md
Last active March 31, 2025 11:40
GPG signing with Git and Github Desktop

GPG signing – git github-desktop

Here is a short guide that will help you setup your environment to create signed commits or signed tags with Git locally. This has been extensively tested on Windows with Git and the Github Desktop application: I use it every day for my professional development projects.

I you face any issue, feel free to leave a comment below.

Summary

  1. Sign commits or tags
  2. Key passphrase
  3. Disable signatures
  4. Renew a GPG key
const path = require('path');
const fs = require('fs');
const glob = require('glob-all');
const appDirectory = fs.realpathSync(process.cwd());
const resolveApp = relativePath => path.resolve(appDirectory, relativePath);
const PurgecssPlugin = require('purgecss-webpack-plugin');
module.exports = {
adss.video.qq.com
bugly.qq.com
dp3.qq.com
fusion.qq.com
pingtas.qq.com
huatuocode.weiyun.com
report.huatuo.qq.com
vd.l.qq.com
nex.163.com
sentry.music.163.com
@mergwyn
mergwyn / zfsbench
Last active March 13, 2025 08:36
ZFS benchmarking using fio
#!/usr/bin/env bash
set -o errexit
echo $(date):Random read
fio --filename=test --sync=1 --rw=randread --bs=4k --numjobs=1 \
--iodepth=4 --group_reporting --name=test --filesize=10G --runtime=300 && rm test
echo $(date):Random write
fio --filename=test --sync=1 --rw=randwrite --bs=4k --numjobs=1 \
@Justintime50
Justintime50 / reset-xcode-install.md
Last active September 16, 2024 15:55
Reset Your Xcode Installation on macOS

Reset your Xcode Install on macOS

Having troubles with Xcode or their Command Line Tools? Follow this guide to reset your Xcode instance on macOS and resolve issues such as "No Xcode or CLT version detected!"

1) Check if Xcode is installed

xcode-select -print-path