Skip to content

Instantly share code, notes, and snippets.

atl*CLI> core show help
! -- Execute a shell command
acl show -- Show a named ACL or list all named ACLs
ael reload -- Reload AEL configuration
ael set debug {read|tokens|macros|contexts|off} -- Enable AEL debugging flags
agi dump html -- Dumps a list of AGI commands in HTML format
agi exec -- Add AGI command to a channel in Async AGI
agi set debug [on|off] -- Enable/Disable AGI debugging
agi show commands [topic] -- List AGI commands or specific help
aoc set debug -- enable cli debugging of AOC messages
@pixiesky
pixiesky / magento2.nginx.conf
Last active April 30, 2024 15:54
Magento 2.x Nginx (with PHP-FPM) development template.
# Magento 2.x Nginx (and PHP-FPM) development template. (Taken from the official repo and slightly edited)
# READ THROUGH FIRST! See video https://youtu.be/22RF1g_yjFI
# Andy Myers
upstream fastcgi_backend {
# use tcp connection
# server 127.0.0.1:9000;
# or socket
# This is different for different distrbutions
server unix:/PATH/TO/php-fpm.sock;

Preparing the AWQ-Quantized Model

You will need more than 24 GB of VRAM to quantize a 7B parameter model like mistral this way. I didn't have that, so I borrowed some H100 time on vast.ai for 5 dollars.

On an cloud gpu, run a docker instance from an image created by the following script:

git lfs install
git clone https://github.com/NVIDIA/TensorRT-LLM.git -b v0.8.0
cd TensorRT-LLM
@Raulebc
Raulebc / MySQL:regiones-provincias-comunas-chile.sql
Last active April 30, 2024 15:51
MySQL-Chile:regiones-provincias-comunas
Script comunas, regiones, provincias Junio 2022
DROP TABLE IF EXISTS `comunas`;
CREATE TABLE `comunas` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`comuna` varchar(64) NOT NULL,
`provincia_id` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=346 DEFAULT CHARSET=utf8;

An guide how to activate Windows 11 Pro for free

Why?

Because you will get some more features like an Bitlocker and host your device as an External Desktop which can be accessed through the internet

Am i also able to switch from any other edition to Pro?

The answer is yes! You can switch from almost any edition to Pro completely for free!

Note for users with unactivated Pro edition

People which already have Pro, but not activated, can skip to this step.

Getting started

What you first need to do is open CMD (Command Prompt) as Administrator using this keyboard key:

@magnetikonline
magnetikonline / README.md
Last active April 30, 2024 15:48
Bash getopt long options with values usage example.

Bash getopt long options with values usage example

#!/bin/bash -e

ARGUMENT_LIST=(
  "arg-one"
  "arg-two"
  "arg-three"
)
#!/bin/bash
# variables
LOGFILE="/var/log/nginx/access.log"
LOGFILE_GZ="/var/log/nginx/access.log.*"
RESPONSE_CODE="200"
# functions
filters(){
grep $RESPONSE_CODE \
@B4rtware
B4rtware / config-highlight.cfg
Last active April 30, 2024 15:40
Python IDLE Dark Theme (Visual Studio Colors)
[vsc]
definition-foreground = #3987d6
error-foreground = #fe1b1b
normal-foreground = #dcdcdc
keyword-foreground = #3987d6
hilite-foreground = #dcdcdc
comment-background = #1e1e1e
hit-foreground = #ffffff
builtin-background = #1e1e1e
stdout-foreground = #dcdcdc
@lysender
lysender / export-import-gpg-keys.md
Created July 1, 2020 03:35
Export and import GPG Keys

Export public key

gpg --export your_address@example.net > my_key.pub 

The file can then be shared to other people.

Export public key in armor ascii format