Skip to content

Instantly share code, notes, and snippets.

View Ziul's full-sized avatar
🏢
Working hard

Luiz Oliveira Ziul

🏢
Working hard
View GitHub Profile
@ruanbekker
ruanbekker / dnsmasq.conf
Last active November 6, 2024 16:34
Tinkering with Loki, Promtail, Grafana, Prometheus, Nginx and Dnsmasq
log-queries
log-facility=/var/log/dnsmasq.log
no-resolv
server=8.8.4.4
server=8.8.8.8
address=/router/10.1.1.1
address=/server/10.1.1.2
@bmaupin
bmaupin / free-database-hosting.md
Last active November 15, 2024 21:16
Free database hosting
@torjusb
torjusb / paste_excel.js
Created February 25, 2015 07:59
Handle pasted text from Excel, and split it into arrays of rows and columns
var clipboardData = window.clipboardData || event.clipboardData || event.originalEvent && event.originalEvent.clipboardData;
var pastedText = clipboardData.getData("Text") || clipboardData.getData("text/plain");
if (!pastedText && pastedText.length) {
return;
}
// Parse the pasted text from Excel into rows.
// Pasted text is usually separated by a new line for each row,
@RickKimball
RickKimball / diskio.h
Created April 7, 2012 04:29
msp430 Petit FatFile System sample
/*-----------------------------------------------------------------------
/ PFF - Low level disk interface modlue include file (C)ChaN, 2009
/-----------------------------------------------------------------------*/
#ifndef _DISKIO
#include "integer.h"
/* Status of Disk Functions */
typedef BYTE DSTATUS;