This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; notmuch-delay.el --- delay sending of mails in notmuch | |
;; Copyright (C) 2024 Marc Fargas <[email protected]> | |
;; Author: Marc Fargas <[email protected]> | |
;; Maintainer: Marc Fargas <[email protected]> | |
;; Version: 20240311.0 | |
;; URL: ??? | |
;; This file is not part of GNU Emacs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example for <https://github.com/dart-lang/markdown/pull/396> | |
void main() { | |
final fileUriUnix = | |
Uri.file(r'/home/myself/images/image.png', windows: false); | |
print(fileUriUnix.path); // /home/myself/images/image.png | |
print(fileUriUnix.toFilePath()); // /home/myself/images/image.png | |
final fileUriWindows = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sample; | |
import com.google.cloud.storage.*; | |
import com.haulmont.bali.util.Preconditions; | |
import com.haulmont.cuba.core.app.FileStorageAPI; | |
import com.haulmont.cuba.core.entity.FileDescriptor; | |
import com.haulmont.cuba.core.global.Configuration; | |
import com.haulmont.cuba.core.global.FileStorageException; | |
import com.metanube.metai4.google.service.GoogleConfig; | |
import org.apache.commons.lang3.StringUtils; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# this goes into /etc/initramfs-tools/scripts/init-premount/a_enable_wireless | |
PREREQ="" | |
prereqs() | |
{ | |
echo "$PREREQ" | |
} | |
case $1 in | |
prereqs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" do_migrations.py run django manage.py migrate on your production app engine without direct access to database | |
License: This code is release to the Public Domain under "CC0 1.0 Universal" License | |
Author: Marc Fargas <[email protected]> | |
Date: 16th October 2017 | |
This simple wsgi app allows you to call "manage.py migrate" | |
(or any other command if you wish) thus you do not need to | |
setup direct access to the database from your local machine. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# pylint: disable=missing-docstring,wrong-import-position,invalid-name,len-as-condition | |
# pylint: disable=superfluous-parens,wrong-import-order,ungrouped-imports,unsubscriptable-object | |
""" gdrive_cleanup.py <[email protected]> [start folder_id] | |
License: This code is release to the Public Domain under "CC0 1.0 Universal" License | |
Author: Marc Fargas <[email protected]> | |
This script is one we use to do some maintenance on user's Google Drive folders. | |
Things it does: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# pylint: disable=missing-docstring,wrong-import-position,invalid-name,superfluous-parens | |
""" google_drive_fix_migration.py <[email protected]> | |
License: This code is release to the Public Domain under "CC0 1.0 Universal" License | |
Author: Marc Fargas <[email protected]> | |
Background: | |
Our office did a real-life testdrive of Office 365 after 11 years on Google Apps, | |
after 3 months we decided to rollback the affected users which went smoothly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" Importar un libro diario de A3 a ContaSOL. | |
A3 permite listar el libro Diario en Excel, lo que permite su conversion | |
e importacion en otros programas como ContaSOL. | |
El libro generado es un Excel formato "antiguo" con una hoja por cada mes | |
del ejercicio. | |
A parte de importasol, hay que tener los paquetes: click, xlrd, Bunch | |
""" |