Skip to content

Instantly share code, notes, and snippets.

//Code.gs
const spreadsheetId = 'Your Google Sheet ID';
const ss = SpreadsheetApp.openById(spreadsheetId);
function doGet(e){
return HtmlService.createTemplateFromFile("main").evaluate()
.setTitle("User Booking")
.addMetaTag('viewport', 'width=device-width, initial-scale=1')
.setXFrameOptionsMode(HtmlService.XFrameOptionsMode.ALLOWALL);
}
@yuvve
yuvve / Obsidian Git-Mobile.md
Last active May 4, 2024 08:53
Automatically sync notes to and from git repository whenever you open and close Obsidian on mobile.

How to automatically sync Obsidian between Github and Android with Termux and Tasker

I use Obsidian git on PC, and this workaround (since the plugin doesn't support mobile) to seamlessly* sync my notes to and from my phone. Using these instructions you create an automation for pulling every time you open Obsidian, and pushing every time you close it.

* you can still get merge conflicts...

Preparation

  1. Install Tasker.
  2. Install Termux.
  3. Install Termux tasker plugin.
  4. Open Termux and write termux-setup-storage, give it permissions.
@olimpa
olimpa / Code.gs
Created April 17, 2022 04:25 — forked from ex-preman/Code.gs
CRUD Using Google Apps Script
function doGet(e) {
Logger.log(e);
var op = e.parameter.action;
var ss = SpreadsheetApp.open(DriveApp.getFileById("YOUR_SPREADSHEET_ID"));
var sn = "YOUR_SHEET_NAME";
var sheet = ss.getSheetByName(sn);
if (op == "insert")
return insert_value(e, sheet);
@JaimeObregon
JaimeObregon / observatorios.txt
Last active March 19, 2024 21:35
Pero, ¿cuántos observatorios financiados con dinero público hay en España?
Observatori Municipal de l'Habitatge d'Alcoi
Observatorio Autonómico dos Ríos de Galicia
Observatorio da Sociedade da Información e a Modernización de Galicia
Observatorio da Violencia no Contorno Laboral
Observatorio de Administración Electrónica
Observatorio de Igualdad de Oportunidades entre Mujeres y Hombres
Observatorio de la Cadena Alimentaria
Observatorio de la Ciencia Ciudadana
Observatorio de la Gestión Empresarial en Biodiversidad
Observatorio de la Infancia de España
@ta264
ta264 / get-docker.sh
Last active February 26, 2024 13:46
Install docker on arm64 synology
#!/bin/bash
set -e
ARCH=aarch64
DOCKER_VERSION=20.10.0
DOCKER_DIR=/volume1/@docker
echo "Downloading docker $DOCKER_VERSION-$ARCH"
curl "https://download.docker.com/linux/static/stable/$ARCH/docker-$DOCKER_VERSION.tgz" | tar -xz -C /usr/local/bin --strip-components=1
@c0reyes
c0reyes / README.md
Last active March 3, 2021 13:20
Marca de agua
@Aldaviva
Aldaviva / Windows 10 services.md
Last active May 6, 2024 23:55
Safety of disabling services in Windows 10

These settings apply to a normal, functioning Windows 10 Pro desktop with

  • wired Ethernet
  • Bluetooth
  • IPv6
  • no Wi-Fi
  • no touch screen

Safe to disable

|Display Name|Name|Notes|

/**
* Función para calcular el % de cambio
*
* @param {numero} antiguoValor Valor Antiguo
* @param {numero} nuevoValor Valor Orginal
* @return El % de cambio entre los dos valores
* @customfunction
*/
function porcentajeCambio(antiguoValor, nuevoValor) {
@ex-preman
ex-preman / Code.gs
Last active March 21, 2024 03:44
CRUD Using Google Apps Script
function doGet(e) {
Logger.log(e);
var op = e.parameter.action;
var ss = SpreadsheetApp.open(DriveApp.getFileById("YOUR_SPREADSHEET_ID"));
var sn = "YOUR_SHEET_NAME";
var sheet = ss.getSheetByName(sn);
if (op == "insert")
return insert_value(e, sheet);
@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active May 20, 2024 01:18
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !