Skip to content

Instantly share code, notes, and snippets.

View pdesterlich's full-sized avatar

Phelipe de Sterlich pdesterlich

  • Novazzano, Switzerland
View GitHub Profile
@pdesterlich
pdesterlich / home.vue
Created March 12, 2018 13:25
nativescript-vue read device uuid
<template>
<Page class="page">
<StackLayout>
<Label :text="uuid"></Label>
</StackLayout>
</Page>
</template>
<script>
@pdesterlich
pdesterlich / mongo_array.txt
Created December 2, 2015 08:53
mongodb limit array documents
collection: people
{
name: 'some name',
age: 23,
...
groups: [
{
id: 1,
...
},
@pdesterlich
pdesterlich / cmd.js
Created November 23, 2015 10:22
node run shell command
function run_cmd(cmd, args, callBack ) {
var spawn = require('child_process').spawn;
var child = spawn(cmd, args);
var resp = "";
child.stdout.on('data', function (buffer) { resp += buffer.toString() });
child.stdout.on('end', function() { callBack (resp) });
} // ()
@pdesterlich
pdesterlich / cognomi.txt
Last active November 13, 2023 07:17
lista cognomi italiani
-- DISCLAIMER --
il presente elenco consiste in una raccolta di cognomi presenti sul territorio italiano (non necessariamente "italiani")
viene generato prendendo processando automaticamente uno o più archivi anagrafici e non è controllato in alcun modo
è pertanto altamente possibile che ci siano errori o refusi
non è ne pretende di essere un elenco omnicomprensivo di tutti i cognomi esistenti
----------------
abbondanza
abu
accadia
@pdesterlich
pdesterlich / nomi_italiani.txt
Last active January 6, 2024 11:15
lista nomi italiani
-- DISCLAIMER --
il presente elenco consiste in una raccolta di nomi presenti sul territorio italiano (non necessariamente "italiani")
viene generato prendendo processando automaticamente uno o più archivi anagrafici e non è controllato in alcun modo
è pertanto altamente possibile che ci siano errori o refusi
non è nè pretende di essere un elenco omnicomprensivo di tutti i nomi esistenti
----------------
abaco
abbondanza
abbondanzia
@pdesterlich
pdesterlich / hack.sh
Created March 31, 2012 14:02 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
foreach ($aMail as $rMail) {
//Create the Transport
$transport = Swift_SmtpTransport::newInstance('smtp.gmail.com', 465, 'tls')
->setUsername('assistenza@elcosistemi.it')
->setPassword('SoftwareService');
//Create the Mailer using your created Transport
$mailer = Swift_Mailer::newInstance($transport);
//Create a message