Skip to content

Instantly share code, notes, and snippets.

View dahngeek's full-sized avatar
🖥️
Working on PWAs

Daniel Xutuc dahngeek

🖥️
Working on PWAs
View GitHub Profile
@dahngeek
dahngeek / .htaccess
Created June 23, 2023 16:53
Server configuration for laravel in a shared hosting , working with IONOS hosting.
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteBase /
Options +FollowSymLinks
RewriteEngine On
# Handle Authorization Header
@dahngeek
dahngeek / gist:e664a3016b7cf1fb17c2024b6415ec06
Created April 24, 2023 05:27
Scroll down or up using a command
xdotool click 4
xdotool click 5
while true; do xdotool click 5; sleep 0.1; done
// scroll until you killl the command.
https://askubuntu.com/questions/474546/is-there-a-command-to-scroll
@dahngeek
dahngeek / count instances
Created April 24, 2023 05:18
count instances of a command without counting grep searching it
ps -aux | grep "scrolldown.sh" | grep -vc grep
// remove c to list instead of count

Testimonios para la iglesia Capitulo 53 - Extremos de la Reforma Pro salud

Se me mostró el curso de B en su propia familia. Ha sido severo y autoritario. Adoptó la reforma pro salud defendida por el hermano C y, como él, adoptó puntos de vista extremos sobre el tema; y al no tener una mente bien equilibrada, ha cometido terribles errores, cuyos resultados el tiempo no borrará. Con la ayuda de los elementos recopilados de los libros, comenzó a llevar a cabo la teoría que había escuchado defendida por el hermano C y, como él, se aseguró de llevar todo al nivel que había erigido. Trajo a su propia familia a sus rígidas reglas, pero no pudo controlar sus propias propensiones animales. Fracasó en llegar a la meta y en mantener su cuerpo bajo control. Si hubiera tenido un conocimiento correcto del sistema de reforma pro salud, habría sabido que su esposa no estaba en condiciones de dar a luz hijos sanos. Sus propias pasiones no dominadas habían dominado sin razonamiento de causa a efecto.

Antes del nacimiento

@dahngeek
dahngeek / gist:03a71de788032dfe8f05d34c86fc163b
Created September 28, 2021 16:52
Fix different json format in between mysql versions. Different request json formats, one without quotes and the other with quotes, same code. That happemed to me in two different installations, its supposed to be because different mysql versions. one with native driver, one with normal: 5.7.24-ndb-7.6.8 vs Distrib 5.7.33
https://stackoverflow.com/questions/26974914/laravel-eloquent-integers-returned-as-strings-in-mssql
cast the specific properties you want as ints.
protected $casts = [
'id' => 'integer',
'owner_id' => 'integer',
'is_local' => 'integer',
'vessel_type_id' => 'integer',
'registration_number' => 'integer',
'gross_register_tonnage' => 'integer',
@dahngeek
dahngeek / tutorial.md
Last active March 22, 2021 05:10
Repair GNS3 Linux VPCS path not defined.
  1. Download the original VPC
  2. https://sourceforge.net/projects/vpcs/
  3. Add it to some directory and chmod +x thedownloadedfile
  4. copy the path to that file into GNS3 config.

This page gave me the hint: https://docs.gns3.com/docs/emulators/vpcs/

If that doesnt work because when you're using the console in GNS3, just by typing two letters or characters it sends the command and makes the VPCS unusable, yo should try de following

@dahngeek
dahngeek / dabblet.css
Last active October 24, 2020 19:39
Talleres Día de la Creación
/**
* Talleres Día de la Creación
*/
font-family: 'Arial', Helvetica;
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
max-width: 100%;
overflow:hidden;
@dahngeek
dahngeek / mqtt-client.py
Created October 14, 2020 01:33
MQTT Client for python3 remember to install paho-mqtt
import paho.mqtt.client as mqtt
# The callback for when the client receives a CONNACK response from the server.
def on_connect(client, userdata, flags, rc):
print("Connected with result code "+str(rc))
./destreamer.sh -i "https://web.microsoftstream.com/video/13463334-a5c2-4b4a-a61c-6041899649e8" \
"https://web.microsoftstream.com/video/c1ecd889-c0e2-4e58-8a81-dfb3f0a3da2b" \
"https://web.microsoftstream.com/video/a9b615a5-d0ae-4371-850e-d9b8cd498644" \
"https://web.microsoftstream.com/video/1e422efd-2248-459e-9f72-6a7260075f36"
@dahngeek
dahngeek / inputs.txt
Created January 21, 2020 03:51
Snippets de ffmpeg útiles para hacer cosas rápido.
file 'E:\Videos\PROXIMO REINO\000.mp4'
file 'E:\Videos\PROXIMO REINO\elultimoreino.webp'