Skip to content

Instantly share code, notes, and snippets.

View adaptive's full-sized avatar
🎯
Focusing

Hugo Romano adaptive

🎯
Focusing
View GitHub Profile
@adaptive
adaptive / getBgHero.ts
Created December 21, 2022 02:09 — forked from jasikpark/getBgHero.ts
Tool to generate a responsive `background-image: url("bg-hero.jpg");` for https://defined.net homepage
import { getPicture } from "@astrojs/image";
type BgHeroCSS = {
/** perfect for use w/ define:vars to inject */
cssProperty: string;
/** the source of the regular image */
imageSrc: string;
/** the sourceset used in the image-set */
imageSet: string;
/** the set useful for preloading
(() => Math.floor(1e11 * Math.random()).toString(16))()
yarn global add firebase-tools --prefix /usr/local/
traceroute to 1.1.1.1 (1.1.1.1), 64 hops max, 52 byte packets
1 192.168.1.254 (192.168.1.254) 0.842 ms 0.569 ms 0.845 ms
2 * 10.242.64.1 (10.242.64.1) 2.583 ms 12.990 ms
3 bl3-77-42.dsl.telepac.pt (213.13.77.42) 16.276 ms 16.396 ms 15.945 ms
4 bl3-77-41.dsl.telepac.pt (213.13.77.41) 16.477 ms 16.531 ms 16.898 ms
5 lis1-cr1-bu10-200.cprm.net (195.8.30.237) 18.739 ms 18.761 ms 19.350 ms
6 lis2-cr1-hu12-0-0.cprm.net (195.8.1.62) 20.704 ms 22.304 ms 17.131 ms
7 172.68.100.254 (172.68.100.254) 17.304 ms 16.921 ms 16.860 ms
8 one.one.one.one (1.1.1.1) 17.377 ms 17.660 ms 16.899 ms
@adaptive
adaptive / urls.txt
Created January 15, 2018 17:07
domain zone lists
https://www.domainresearchtool.com/lists/com.zone.gz
https://www.domainresearchtool.com/lists/net.zone.gz
https://www.domainresearchtool.com/lists/org.zone.gz
https://www.domainresearchtool.com/lists/info.zone.gz
https://www.domainresearchtool.com/lists/us.zone.gz
https://www.domainresearchtool.com/lists/biz.zone.gz
http://s3.amazonaws.com/alexa-static/top-1m.csv.zip
http://downloads.majestic.com/majestic_million.csv
https://ak.quantcast.com/quantcast-top-sites.zip
https://all-certificates.s3.amazonaws.com/domainnames.gz
http://crimeflare.net:82/domains/nsout.zip
https://statvoo.com/dl/top-1million-sites.csv.zip
http://s3-us-west-1.amazonaws.com/umbrella-static/top-1m.csv.zip
https://moz.com/top500/domains/csv
https://ausdomainledger.net/au-domains-latest.csv.gz
<?
function validaNIF($nif, $ignoreFirst=true) {
//Limpamos eventuais espaços a mais
$nif=trim($nif);
//Verificamos se é numérico e tem comprimento 9
if (!is_numeric($nif) || strlen($nif)!=9) {
return false;
} else {
$nifSplit=str_split($nif);
//O primeiro digíto tem de ser 1, 2, 5, 6, 7, 8 ou 9

Keybase proof

I hereby claim:

  • I am adaptive on github.
  • I am adaptive (https://keybase.io/adaptive) on keybase.
  • I have a public key ASCJVbOmZX6F6Iii9z1vjoiqxq3HxYiwwnhlPkx0QyEbSwo

To claim this, I am signing this object:

PhotoScanPro.app/Contents/MacOS/PhotoScanPro --activate 11111-22222-33333-44444-55555
Verifying that +adaptive is my openname (Bitcoin username). https://onename.com/adaptive