Sign in via Google or Facebook, Firebase will give you a token. With this token, ask firebase, firebase will tell you who is the user.
You take firebase as your backend/database server, focus on developing apps only.
by default,openwrt do not allow ssh access from wan, here are two method to change that: | |
1.login into your wrt from a lan host.issue the following command: | |
iptables -F | |
the command "flush away" all the firewall rules,including the one that rejects ssh request from wan. | |
now you can try ssh from anywhere. | |
aware that the firewall deactivation leads to highly security risk.and after the wrt restarts ,all default firewall configuration comes back.you hava to "flush" the rules once again. |
Sign in via Google or Facebook, Firebase will give you a token. With this token, ask firebase, firebase will tell you who is the user.
You take firebase as your backend/database server, focus on developing apps only.
Today when I got up came across a concept that "WeMe" startup, which means We=Me when you are doing startup.
Here you could tell people you are "we", actually you are "me". But you are doing more than people think you are "me".
You can do better and more than just only "me", it's like "we" or to a level of enterprise.
And you are the most important person in the Startup, ofc.
You could be a full-stack engineer, designer, sales, manager at the same time. With the help of mostly helpful CI/CD, CRM, pipelines, trendy technologies and 3rd party corporations. Or you could find partners when you try.
If you have this error, when you are pushing some codes to git server:
error: dst refspec refs/heads/main matches more than one
It might be that you locally/remotely has a tag called refs/heads/main
I believe you don't want this tag.
How to delete this tag both on remote git server and locally?
# github生成的两把钥匙 | |
client_id = 'e3a53e8921975c37fe3d' | |
client_secret = '739a252f5022855aadcc832a2facd86b1b836ef6' | |
from flask import Flask, \ | |
redirect, \ | |
jsonify | |
from furl import furl | |
import requests | |
import json | |
from flask import request |
# This RSA256 key is of 2048 bits long (valid between 1024-4096) | |
openssl genrsa -out jwtRSA256.private.key 2048 | |
openssl rsa -in jwtRSA256.private.key -pubout -out jwtRSA256.public.key | |
# no need to input passphrase | |
cat jwtRSA256.private.key | |
cat jwtRSA256.public.key | |
# notice the jwtRSA256.public.key is in ssh-rsa format |
import 'dart:async'; | |
void addLessThanFive(StreamController controller, int value) { | |
if (value < 5) { | |
controller.sink.add(value); | |
} else { | |
controller.sink.addError(StateError('$value is not less than 5')); | |
} | |
} |
#!/usr/bin/python | |
""" | |
Originally from: https://discussions.apple.com/thread/5470393 | |
The root cause to this problem will be different for everyone as it's usually some rogue app or process that isn't working properly. In my case it was a Symantec utility called 'SymUIAgent.app'. | |
Follow these steps to identify what's causing this on your machine | |
Save the code on this file to your Desktop using id_issue.py as the filename: https://gist.github.com/iMerica/8928556/raw/73832a509de4dc5394cf1747b997ea1bd1b0 ff4e/identify_focus_issue.py | |
Open Terminal.app (Located in /Applications/Utilities/) |
Stream<String> fizzBuzz(int n) async* { | |
for (var i = 1; i <= n; i++) { | |
// await Future.delayed(Duration(milliseconds: 500)); | |
if (i % 3 == 0 && i % 5 == 0) { | |
yield 'fizz buzz'; | |
} else if (i % 3 == 0) { | |
yield 'fizz'; | |
} else if (i % 5 == 0) { | |
yield 'buzz'; | |
} else { |
Future<int> sumStream(Stream<int> stream) async { | |
int sum = 0; | |
await for (var i in stream) { | |
sum += i; | |
} | |
return sum; | |
} | |
Future<int> sumStream2(Stream<int> stream) => | |
stream.reduce((previous, element) => previous + element); |