Skip to content

Instantly share code, notes, and snippets.

View PineberryCode's full-sized avatar
Working from home

MINDLUNNY PineberryCode

Working from home
View GitHub Profile
@PineberryCode
PineberryCode / record_actor_surreald.txt
Last active March 20, 2025 03:51
Surrealdb records
CREATE actor CONTENT {
skills: {
abilities: ["Superhuman Strength", "Superhuman Speed", "Invulnerability"],
weapons: [],
special: "One Punch"
},
status: {
occupation: "Hero",
rank: "B-Class Rank 7",
affiliation: ["Hero Association"]
@PineberryCode
PineberryCode / command.rs
Created January 6, 2025 01:17
How create a new window with "tauri::command" specifying the endpoint.
use tauri::Url;
#[tauri::command]
pub async fn create_test_window(handle: tauri::AppHandle) {
let _ = tauri::WebviewWindowBuilder::new(
&handle,
"test",
tauri::WebviewUrl::External(Url::parse("http://localhost:1420/example").unwrap())
)
.build()
@PineberryCode
PineberryCode / error_s.txt
Created December 22, 2024 03:10
On Ubuntu: "...= note: /usr/bin/ld: cannot find -lpq: no such file or directory collect2: error: ld returned 1 exit status"
sudo apt-get install libpq-dev
sudo apt-get install pkg-config
@PineberryCode
PineberryCode / basic_steps_of_steghide.txt
Created December 15, 2024 00:55
Basic command lines of "Steghide"
// If you have a png file, you would convert it with "imagemagick".
// Install it, then use this command: convert <sample.png> <sample.jpg>
// Apply
1. sudo steghide embed -ef <someFile.txt> -cf <sample.jpg>
// Extract information
2. sudo steghide extract -sf <sample.jpg>
CREATE DATABASE dbvallecode;
USE dbvallecode;
CREATE TABLE USERS
(
ID_USER INT AUTO_INCREMENT,
EMAIL VARCHAR (100) UNIQUE,
COD_ALUMNO VARCHAR(20),
USERNAME VARCHAR(20),
NOMBRES VARCHAR(255),
@PineberryCode
PineberryCode / example.sh
Created April 22, 2024 22:26
Shows all programming languages and its versions in Piston API
# You could download Postman or do a 'curl'
https://emkc.org/api/v2/piston/runtimes
@PineberryCode
PineberryCode / instructions.md
Last active March 31, 2024 01:42
MANJARO LINUX - Downdload and setting up SQLITE driver for Laravel

Download sqlite driver:

sudo pacman -S php-sqlite

Setting Up your php.ini file.

  • First search the php.ini with => php --ini:
#Something like this
Configuration File (php.ini) Path: /etc/php
Loaded Configuration File: /etc/php/php.ini #&lt;= Copy this
using namespace std;
int main() {
int x[] = {3,4,9,1};
//Desc
for (int r = 0; r < size(x); r++) {
for (int u = 0; u < size(x) - r - 1; u++) {
if (x[u] < x[u+1]) {
int aux = x[u];
@PineberryCode
PineberryCode / nmap-example.sh
Created March 6, 2024 01:08
Scan port of an IP with nmap
# Ignore the []
nmap [ip address] -Pn
@PineberryCode
PineberryCode / my_executable.sh
Last active February 18, 2024 04:42
create a executable of javafx from linux.
# First download the SDK of your preference
# Link: https://gluonhq.com/products/javafx/
# Create the .jar in this case vscode: Press "ctrl+shift+P" to open the options and select 'java:Export Jar...'
# Then modify the path of the sdk (ignore the '[]'):
# java --module-path [path/to/the/directory/javafx-sdk-21.0.2/lib] --add-modules javafx.controls,javafx.fxml -jar [name of your .jar]