Skip to content

Instantly share code, notes, and snippets.

View alete89's full-sized avatar
:octocat:
Focusing

Alejandro Dini alete89

:octocat:
Focusing
  • Mural
  • Argentina
View GitHub Profile
@mgiachetti
mgiachetti / doom.js
Created February 4, 2021 13:00
Script to run doom on Mural.
// @ts-check
function delay(ms) {
return new Promise((resolve) => {
setTimeout(resolve, ms);
});
}
function avgColor(data, x0, y0, width, height, dist) {
const color = [0, 0, 0, 0];
for (let y = 0; y < dist; y++) {
while true;do clear; curl https://banco.santanderrio.com.ar/exec/cotizacion/index.jsp 2> /dev/null | grep \<td\>| sed -n 2p|awk '{ gsub("[<td>\/]*[[:blank:]]*","");print}'; sleep 60; done;
@andrewroberts
andrewroberts / PDFCreator_EmailAllResponses
Last active August 31, 2023 06:38
Google Apps Script to create a PDF from each of the rows in a Google Sheet
/*
PDF Creator - Email all responses
=================================
When you click "Create PDF > Create a PDF for each row" this script
constructs a PDF for each row in the attached GSheet. The value in the
"File Name" column is used to name the file and - if there is a
value - it is emailed to the recipient in the "Email" column.
@xtman
xtman / Google_App_Script_Upload_Multi_Files_To_GoogleDrive_Form.html
Created December 6, 2016 04:36
Google App Script: Upload Multiple Files to Google Drive (Form.html)
<!DOCTYPE html>
<html>
<head>
<base target="_top">
</head>
<body>
<form id="uploaderForm">
<label for="uploaderForm">Upload multiple Files</label>
<div>
<input type="text" name="applicantName" id="applicantName"
@xtman
xtman / Google_App_Script_Upload_Multi_Files_To_GoogleDrive_Code.gs
Last active September 19, 2023 08:31
Google App Script: Upload Multiple Files to Google Drive (Code.gs)
function doGet() {
return HtmlService.createHtmlOutputFromFile('Form').setSandboxMode(
HtmlService.SandboxMode.IFRAME);
}
function createFolder(parentFolderId, folderName) {
try {
var parentFolder = DriveApp.getFolderById(parentFolderId);
var folders = parentFolder.getFoldersByName(folderName);
var folder;
@xi
xi / Makefile
Created November 6, 2016 14:08
Build a Debian package that adds guest-account functionality to LightDM.
# Build a Debian package that adds guest-account functionality to LightDM.
#
# For guest accounts to work LightDM needs a binary "guest-account" which it
# will run to create / destroy guest accounts.[0] The default Debian package
# does not provide one.[1] However, the Ubuntu package does.[2]
#
# The simple way to use this script is simply to call `make install`. This will
# fetch the Ubuntu package, unpack it and install only the files that are
# relevant for guest accounts. However, this is strongly discouraged because
# it bypasses the package system.
@danielalvarenga
danielalvarenga / terminal-colors-branch.sh
Last active July 3, 2024 08:16
Show branch in terminal Ubuntu
# Add in ~/.bashrc or ~/.bash_profile
function parse_git_branch () {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
RED="\[\033[01;31m\]"
YELLOW="\[\033[01;33m\]"
GREEN="\[\033[01;32m\]"
BLUE="\[\033[01;34m\]"
NO_COLOR="\[\033[00m\]"
@PurpleBooth
PurpleBooth / README-Template.md
Last active July 28, 2024 03:34
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites