Skip to content

Instantly share code, notes, and snippets.

View nunodotferreira's full-sized avatar

Ferreira nunodotferreira

  • ...
  • Portugal
View GitHub Profile
@nunodotferreira
nunodotferreira / README.MD
Created May 13, 2021 22:35 — forked from giordanocardillo/README.MD
Remove Office 2016 Product Key
  1. Open a command prompt as Administrator
  2. In the command prompt, type the following:
  • Office 2016 (32-bit) on a 32-bit version of Windows

    cscript "C:\Program Files\Microsoft Office\Office16\OSPP.VBS" /dstatus

  • Office 2016 (32-bit) on a 64-bit version of Windows

    cscript "C:\Program Files (x86)\Microsoft Office\Office16\OSPP.VBS" /dstatus

  • Office 2016 (64-bit) on a 64-bit version of Windows

@nunodotferreira
nunodotferreira / dreammachine-ddns.md
Created April 27, 2021 18:45
Unifi DreamMachine DDNS Fix

DreamMachine DDNS Fix

In Unifi DreamMachine (UDM) 1.5.*+ setting Dynamic DNS for NameCheap (and other) providers is broken. Monitor this thread on the Ubiquity forums for updates.

This briefly describes the problem and solution.

Problem

The UDM generates a bad URL for updating the NameCheap DDNS domain name. My UDM versions and configuration looks like:

I tried the debug steps and it doesn't appear to update at all.

import 'package:flutter/material.dart';
import 'package:good_driver_app/common/ExpandedButton.dart';
import 'package:good_driver_app/common/SmallExpandedButton.dart';
import 'package:http/http.dart' as http;
import 'dart:convert';
import 'dart:async';
class ServicePetrolPage extends StatefulWidget {
// HomePage({Key key, this.title}) : super(key: key);
@nunodotferreira
nunodotferreira / esp8266-dht-webthing.ino
Created May 22, 2019 20:29 — forked from marians/esp8266-dht-webthing.ino
ESP8266 publishing DHT temperature and humidity via Web Thing API
/**
* Publishing DHT temperature and humidity via the Web Thing API.
*
* This should work with DHT11, DHT21, DHT22 alike thanks to
* device auto detection in the markruys/arduino-DHT library.
*
* This will make the device available under http://livingroom.local/
* for msdns-aware clients.
*
* Dependencies:
@nunodotferreira
nunodotferreira / Dockerfile
Created August 9, 2018 20:27 — forked from Majkl578/Dockerfile
Dockerized example for article at Pehapkari.cz about running multiple PHP versions: https://pehapkari.cz/blog/2017/03/27/multiple-php-versions-the-easy-way/
FROM debian:stretch
ENV DEBIAN_FRONTEND noninteractive
# install NGINX
RUN apt-get update && \
apt-get install -y nginx --no-install-recommends && \
rm -rf /var/lib/apt/lists/*
@nunodotferreira
nunodotferreira / indexed.php
Created June 10, 2018 09:35 — forked from qsun/indexed.php
Check if URL is indexed by Google
<?php
function indexed($url) {
$url = 'http://webcache.googleusercontent.com/search?q=cache:' . urlencode($url);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
curl_setopt($ch, CURLOPT_NOBODY, true);
curl_setopt($ch, CURLOPT_USERAGENT, 'Chrome 10');
@nunodotferreira
nunodotferreira / php-get-remote-image-dimensions-curl
Created June 9, 2018 15:52 — forked from ontiuk/php-get-remote-image-dimensions-curl
Get Remote Image Dimensions With PHP and cURL - GetImageSize Alternative
<?php
/** 
* Retrieve remote image dimensions 
* - getimagesize alternative 
*/
/**
* Get Image Size 
@nunodotferreira
nunodotferreira / gitzip.sh
Created June 4, 2018 08:32 — forked from leonardocardoso/gitzip.sh
Zip folder ignoring files listed on .gitignore
#...
function gitzip() {
git archive -o $@.zip HEAD
}
#... gitzip ZIPPED_FILE_NAME
<?php
/*
(2014) Main source -> http://lancenewman.me/posting-a-photo-to-instagram-without-a-phone/
I just managed to sniff Instagram traffic and fixed the code
-- Have fun - batuhan.org - Batuhan Katırcı
--- for your questions, comment @ http://batuhan.org/instagram-photo-upload-with-php/