Skip to content

Instantly share code, notes, and snippets.

View ricardoalcantara's full-sized avatar

Ricardo Alcantara ricardoalcantara

View GitHub Profile
@ricardoalcantara
ricardoalcantara / compose.yml
Created April 15, 2024 12:08
Wordpress Docker Composer
services:
wordpress:
image: wordpress
restart: always
ports:
- "8000:80"
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: example_user
WORDPRESS_DB_PASSWORD: example_password
ricardo@pop-os:~/Projects/rust/raylib-rs/showcase$ cargo build --target=wasm32-unknown-emscripten
Compiling cc v1.0.69
Compiling fs_extra v1.2.0
Compiling libc v0.2.99
Compiling lazy_static v1.4.0
Compiling cfg-if v1.0.0
Compiling cmake v0.1.45
Compiling raylib-sys v3.5.0 (/home/ricardo/Projects/rust/raylib-rs/raylib-sys)
error: failed to run custom build command for `raylib-sys v3.5.0 (/home/ricardo/Projects/rust/raylib-rs/raylib-sys)`
@ricardoalcantara
ricardoalcantara / AdmobInterface.cs
Last active July 18, 2020 06:41
Interface that depends on Admob.gd
using Godot;
namespace AdmobLib
{
public class AdmobInterface : Node
{
private static AdmobSystem _instance;
public static AdmobSystem Instance => _instance;
[Signal] public delegate void BannerLoaded();
@ricardoalcantara
ricardoalcantara / Admob.cs
Last active May 18, 2022 12:33
Godot-Android-Admob-Plugin admon.gd to C#
using Godot;
namespace AdmobLib
{
public class Admob : Node
{
[Signal] public delegate void banner_loaded();
[Signal] public delegate void banner_failed_to_load(int error_code);
[Signal] public delegate void interstitial_failed_to_load(int error_code);
[Signal] public delegate void interstitial_loaded();
@ricardoalcantara
ricardoalcantara / AutoHotkey_Desktop.ahk
Created April 13, 2020 12:29
AutoHotkey_Desktop.ahk
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
; From
; https://www.computerhope.com/tips/tip224.htm
; Globals
DesktopCount = 4 ; Windows starts with 2 desktops at boot
CurrentDesktop = 1 ; Desktop count is 1-indexed (Microsoft numbers them this way)
;
; This function examines the registry to build an accurate list of the current virtual desktops and which one we're currently on.
@ricardoalcantara
ricardoalcantara / AndroidBuild.sh
Created November 29, 2019 03:48
Godot Android build low size
scons -j8 tools=no module_bmp_enabled=no module_bullet_enabled=no module_csg_enabled=no module_dds_enabled=no module_enet_enabled=no module_etc_enabled=no module_gdnative_enabled=no module_gridmap_enabled=no module_hdr_enabled=no module_mbedtls_enabled=no module_mobile_vr_enabled=no module_opus_enabled=no module_pvr_enabled=no module_recast_enabled=no module_regex_enabled=no module_squish_enabled=no module_tga_enabled=no module_thekla_unwrap_enabled=no module_theora_enabled=no module_tinyexr_enabled=no module_vorbis_enabled=no module_webm_enabled=no module_websocket_enabled=no disable_advanced_gui=yes disable_3d=yes builtin_openssl=no module_speex_enabled=no module_pbm_enabled=no module_ik_enabled=no module_cscript_enabled=no module_chibi_enabled=no module_webm_enabled=no module_webp_enabled=no module_visual_script_enabled=no module_upnp_enabled=no module_mono_enabled=no module_theora_enabled=no builtin_libvorbis=no module_mobile_vr_enabled=no builtin_speex=no deprecated=no platform=android target=release and
#!/bin/sh
lock() {
i3lock
}
case "$1" in
lock)
lock
;;
logout)
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
CPU Family: 0x6
using System;
using System.Net.Http;
namespace simpleHttpClient
{
class Program
{
static void Main(string[] args)
{
var httpClient = new HttpClient();
#define SOFT 0
#define HARD 1
#include<stdio.h>
/* demo.c: My first C program on a Linux */
struct error {
float yaw;
float pitch;
float roll;