{
"models": [
{
"title":"Groq Llama 8b",
"provider":"openai",
"model": "llama3-8b-8192",
"apiBase": "https://api.groq.com/openai/v1",
"apiKey": "",
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// broker.js | |
"use strict"; | |
const { ServiceBroker } = require("moleculer"); | |
const Sequelize = require("./middlewares/sequelize"); | |
const broker = new ServiceBroker({ | |
middlewares: [Sequelize()] | |
}); | |
broker.createService({ | |
name: "service", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#RANCHER_SERVER_NAME=$(docker ps -a --format "{{.Image}} {{.Names}}" | grep -i "rancher/rancher" | cut -d' ' -f2) | |
RANCHER_SERVER_NAME=rancher-server | |
TODAY_DATE=$(date +%Y%m%d) | |
RANCHER_COPY_NAME=rancher-data-${TODAY_DATE} | |
CREDENTIALS_PATH=~/secrets | |
BACKUP_PATH=~/backup | |
RANCHER_BACKUP_FILE_BASE=rancher-data-backup | |
RANCHER_BACKUP_FILE=${RANCHER_BACKUP_FILE_BASE}-${TODAY_DATE}.tar.gz | |
USE_GDRIVE=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
RANCHER_SERVER_NAME=$(docker ps -a --format "{{.Image}} {{.Names}}" | grep -i "rancher/rancher" | cut -d' ' -f2) | |
TODAY_DATE=$(date +%Y%m%d) | |
RANCHER_COPY_NAME=rancher-data-${TODAY_DATE} | |
CREDENTIALS_PATH=~/secrets | |
BACKUP_PATH=~/backup | |
RANCHER_BACKUP_FILE=rancher-data-backup-${TODAY_DATE}.tar.gz | |
USE_GDRIVE=0 | |
if [ "$1" = "--gdrive" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# usage ./extract_tampermonkey_script.py "/home/<user>/.config/<browser>/Default/Local Extension Settings/<extension_id>" | |
# i.e.: ./extract_tampermonkey_script.py "/home/foo/.config/google-chrome-beta/Default/Local Extension Settings/gcalenpjmijncebpfijmoaglllgpjagf" | |
# | |
import leveldb | |
import sys | |
import re | |
import json | |
import codecs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Allocate the file | |
fallocate -l 4G /swapfile | |
#Give right permissions | |
chmod 600 /swapfile | |
#make it a swap file | |
mkswap /swapfile | |
#turn swap on | |
swapon /swapfile | |
#mount it at every boot | |
echo "/swapfile none swap sw 0 0" >> /etc/fstab |
People
![]() :bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |