Skip to content

Instantly share code, notes, and snippets.

View vshmoylov's full-sized avatar
🤩
Building some great stuff

Victor Shmoilov vshmoylov

🤩
Building some great stuff
View GitHub Profile
@veekaybee
veekaybee / normcore-llm.md
Last active July 21, 2024 13:28
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

@ChewySalmon
ChewySalmon / app.dockerfile
Last active March 27, 2023 18:00
Laravel development docker setup using PHP 8+, Nginx, MySql 8+, PhpMyAdmin and Mailhog. Includes all relevant service Dockerfiles and the Compose file. [Imagick edition]
FROM php:8.0-fpm
RUN apt-get update && apt-get install -y \
libmagickwand-dev \
--no-install-recommends \
&& pecl install imagick \
&& docker-php-ext-enable imagick \
&& docker-php-ext-install pdo_mysql
@abbaspour
abbaspour / nginx.conf
Last active July 14, 2024 20:45
Guide how to enable JWT validation on open source nginx server using ngx-http-auth-jwt-module
daemon off;
worker_processes 1;
error_log logs/error.log;
events {
worker_connections 1024;
}
http {
include mime.types;
@vshmoylov
vshmoylov / lswitch.c
Last active August 16, 2020 12:00
Language switcher. Taken from: https://haali.su/winutils/ Eventually will rewrite this to PowerShell script.
#define _WIN32_WINNT 0x500
#include <windows.h>
#include <tchar.h>
TCHAR g_prog_dir[MAX_PATH*2];
DWORD g_prog_dir_len;
HHOOK g_khook;
HANDLE g_hEvent;
UINT g_key=VK_APPS;
@Nimrodda
Nimrodda / letsencrypt-wildcard-renewal.md
Last active February 17, 2024 12:53
Setup automatic LetsEncrypt wildcard certificate renewal on Ubuntu server 18.04 with Namecheap

All credits go to by Bryan Roessler for his original post that I followed on how to setup LetsEncrypt wildcard certificate auto-renewal with Namecheap. I highly recommend you read his tutorial first and if you bump into issues, check out this gist next.

Unfortunately the original article is not up-to-date and doesn't have the option to leave comments so I can't communicate with the author for updates so I decided to write the updates in a Gist. I highlighted the sections that required an updated with Correction #:. I managed to get the correct setup with the help of the amazing guys at LetsEncrypt community. Here's the help thread.

Set up acme-dns

  1. Download acme-dns from https://github.com/joohoi/acme-dns/releases
  2. Move the binary somewhere sensible since we will be using
@starlinq
starlinq / cloud.mail.ru-webdav.md
Last active June 25, 2023 16:57
Подключение к Cloud.mail.ru с помощью WebDAV эмулятора в Убунту 18.04
title date
Подключение к Cloud.mail.ru с помощью WebDAV эмулятора в Убунту 18.04
2019-02-06

Подключение к Cloud.mail.ru с помощью WebDAV эмулятора в Убунту 18.04

Инструкцию для Убунту 20.04 см. здесь.

@vshmoylov
vshmoylov / create_ssh_directory.sh
Last active August 30, 2023 08:50
create .ssh directory in linux with proper permissions
#!/bin/sh
mkdir -p -m 700 ~/.ssh; (umask 0177; touch ~/.ssh/authorized_keys)
#!/bin/bash
set -e
set -x
mkdir ~/transmission
cd ~/transmission
PREFIX=/opt
@mikewlange
mikewlange / ass
Created May 25, 2017 06:49
best way download a full site
BEST WAY TO DOWNLOAD FULL WEBSITE WITH WGET
I show two ways, the first way is just one command that doesnt run in the background - the second one runs in the background and in a different "shell" so you can get out of your ssh session and it will continue either way
First make a folder to download the websites to and begin your downloading: (note if downloading www.kossboss.com, you will get a folder like this: /websitedl/www.kossboss.com/ )
(STEP1)
mkdir /websitedl/
cd /websitedl/
(STEP2)