Skip to content

Instantly share code, notes, and snippets.

View atareao's full-sized avatar
馃

Lorenzo Carbonell atareao

馃
View GitHub Profile
@atareao
atareao / plantilla_podcast.svg
Created October 31, 2024 04:51
Una plantilla de los podcasts de atareao con Linux utilizando jinja
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/gjs --include-path=.
'use strict';
imports.searchPath.unshift('.');
const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
const struct = imports.utils.struct;
const concatArrayBuffers = imports.utils.concatArrayBuffers;
@atareao
atareao / docker-compose-for-traefik.yml
Created November 23, 2021 05:46
Simple WordPress With or Without Traefik
version: '3'
services:
wp_mariadb:
image: mariadb:latest
container_name: wp_mariadb
restart: unless-stopped
networks:
- internal
environment:
set encoding=utf-8
let g:ale_disable_lsp = 1
" Auto installation of Plug
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
" Plugins
call plug#begin('~/.local/share/nvim/plugged')
#!/bin/bash
if [ "$(id -u)" != "0" ]; then
echo "Sorry, you are not root."
exit 1
fi
function install(){
echo Install
@atareao
atareao / sshs
Created September 7, 2019 05:47
Search in ssh config
sshs(){
OIFS="$IFS"
IFS=$'\n'
for l in $(cat ~/.ssh/config | grep -i "$1" | grep "#")
do
echo ${l:5}
done
IFS=$OIFS
}
#!/usr/bin/env python3
import requests
import sys
import os
TOKEN = '123456789:Ab1Cd2Ef3Gh4Ij5Kl6Mn7Op8Qr9sTuVwXyZ'
def sendMessage(chat_id, text):
requests.post(
$ xinput list-props "SynPS/2 Synaptics TouchPad" | grep Capabilities
Synaptics Capabillities (309): 1, 0, 1, 0, 0, 1, 1
De izquierda a derecha, esto muestra:
(1) el dispositivo tiene un bot贸n izquierdo f铆sico
(0) el dispositivo no tiene un bot贸n central f铆sico
(1) el dispositivo tiene un bot贸n f铆sico derecho
(0) el dispositivo no es compatible con la detecci贸n de dos dedos (two-finger)
@atareao
atareao / settings
Created March 19, 2018 16:40
settings for mate
org.mate.SettingsDaemon.plugins.media-keys.gschema.xml
<schema gettext-domain="mate-settings-daemon" id="org.mate.SettingsDaemon.plugins.media-keys" path="/org/mate/settings-daemon/plugins/media-keys/">
<key name="active" type="b">
<default>true</default>
<summary>Activation of this plugin</summary>
<description>Whether this plugin would be activated by mate-settings-daemon or not</description>
</key>
<key name="priority" type="i">
<default>98</default>