-
https://icons.duckduckgo.com/ip2/{hostname}.ico
-
https://www.google.com/s2/favicons?domain_url={hostname}
-
https://favicon.yandex.net/favicon/{hostname1}/{hostname2}/
-
https://f1.allesedv.com/16/{hostname}
http://grab-favicons.herokuapp.com/api/v1/grab-favicons/?url={hostname}
https://besticon-demo.herokuapp.com/icon?url={hostname}&size=80..120..200
http://favicongrabber.com/service-api-reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { ipcMain } = require( 'electron' ); | |
const path = require( 'path' ); | |
const fs = require( 'fs-extra' ); | |
const os = require( 'os' ); | |
const open = require( 'open' ); | |
const chokidar = require( 'chokidar' ); | |
// local dependencies | |
const notification = require( './notification' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# initializers/cors.rb | |
Rails.application.config.middleware.insert_before 0, Rack::Cors do | |
allow do | |
# Allow localhost in CORS | |
origins /(https?:\/\/)((localhost:)|(127.0.0.1:))/ | |
resource '*', | |
headers: :any, | |
methods: [:get, :post, :put, :patch, :delete, :options, :head] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin font($font-family, $font-file) { | |
@font-face { | |
font-family: $font-family; | |
src: url($font-file +'.eot'); | |
// If the user has the font locally, use that | |
src: local($font-file), | |
url($font-file + '.eot?#iefix') format('embedded-opentype'), | |
url($font-file + '.woff') format('woff'), | |
url($font-file + '.ttf') format('truetype'), | |
url($font-file + '.svg#aller') format('svg'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# app/controllers/Miscellaneous.rb | |
# This is where we will call the Service. Imagine that this file is somewhere else in the projects, like maybe a controller | |
place_id = GoogleAPIService.fetch_id(-15.34095, 32.53719) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Install cloudflared using homebrew: | |
brew install cloudflare/cloudflare/cloudflared | |
2) Create /usr/local/etc/cloudflared/config.yaml, with the following content | |
proxy-dns: true | |
proxy-dns-upstream: | |
- https://1.1.1.1/dns-query | |
- https://1.0.0.1/dns-query |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function pbcopy(data) { | |
var proc = require('child_process').spawn('pbcopy'); | |
proc.stdin.write(data); | |
proc.stdin.end(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// NOTE: `AppName` is simply your PascalCase application name (`modulePrefix` key from `../config/environment.js`) | |
window.AppName.__container__.lookup('service:router')._router._routerMicrolib.recognizer.names; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
NewerOlder