Skip to content

Instantly share code, notes, and snippets.

View luizjr's full-sized avatar
🚀
Working and Learning, React Native and Kubernetes

Luiz Junior luizjr

🚀
Working and Learning, React Native and Kubernetes
View GitHub Profile
@goran-popovic
goran-popovic / AssistantController.php
Last active May 5, 2024 09:40
Using Laravel to interact with OpenAI's Assistant API (with Vision) - Basic Example (https://geoligard.com/using-laravel-to-interact-with-openai-s-assistants-api-with-vision)
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use OpenAI\Laravel\Facades\OpenAI;
class AssistantController extends Controller
{
public function generateAssistantsResponse(Request $request)
@luizjr
luizjr / add_sudoers.adoc
Last active January 25, 2023 16:42
Export / Import Gnome Terminal Profiles
echo "$USER ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/$USER
@navarrothiago
navarrothiago / README.md
Last active July 18, 2024 16:42
Turn your smartphone or tablet camera into a WebCam to make video conference in Linux
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export ANDROID_HOME=~/Android/Sdk
export PATH="$PATH:$ANDROID_HOME/tools"
export PATH="$PATH:$ANDROID_HOME/platform-tools"
# Path to your oh-my-zsh installation.
export ZSH="/Users/diegofernandes/.oh-my-zsh"
export PATH="$PATH:/usr/local/bin"
@lichti
lichti / letsencrypt-proxmox.md
Last active September 12, 2022 20:14
Proxmox with letsencrypt ssl
git clone https://github.com/certbot/certbot /opt/letsencrypt
ln -s /opt/letsencrypt/certbot-auto /usr/bin/certbot
certbot certonly --expand --agree-tos --text --non-interactive \
 --standalone \
@dimasch
dimasch / redis-clear
Last active July 5, 2024 07:16
Clear a redis cache in Docker
docker exec -it container-name redis-cli FLUSHALL