Skip to content

Instantly share code, notes, and snippets.

View httol's full-sized avatar
🎯
Focusing

Tom httol

🎯
Focusing
  • TianJin
View GitHub Profile
@httol
httol / firebase notification curl
Last active January 8, 2021 08:19 — forked from IsmailShurrab/firebase notification curl
firebase notification curl php
<?php
function send($token,$title,$body){
$url = "https://fcm.googleapis.com/fcm/send";
$serverKey = 'your server token of FCM project';
$notification = array('title' =>$title , 'text' => $body, 'sound' => 'default', 'badge' => '1');
$arrayToSend = array('to' => $token, 'notification' => $notification,'priority'=>'high');
$json = json_encode($arrayToSend);
$headers = array();
$headers[] = 'Content-Type: application/json';
$headers[] = 'Authorization: key='. $serverKey;
@httol
httol / NodeLinux.md
Created January 9, 2021 16:19
Linux install nvm,npm,yarn
  • Install nvm:
  • Install node: nvm install [YOUR_NODE_VERSION]
  • Install yarn
@httol
httol / GenSignature.md
Last active January 3, 2024 09:35
Android 应用签名APP
@httol
httol / google_fonts.css
Created September 8, 2022 10:52 — forked from sadikay/google_fonts.css
All Google Fonts In One CSS File
@font-face {
font-family: 'ABeeZee';
font-style: normal;
font-weight: 400;
src: local('ABeeZee'), local('ABeeZee-Regular'), url(http://fonts.gstatic.com/s/abeezee/v9/JYPhMn-3Xw-JGuyB-fEdNA.ttf) format('truetype');
}
@font-face {
font-family: 'Abel';
font-style: normal;
font-weight: 400;
@httol
httol / NextAuth-nextJS.md
Last active January 21, 2024 06:58
Custom Email/Password with NextAuth for nextJS project

NextAuth

1.install NextAuth

npm install next-auth

2.under app folder, create route under this folder api/auth/[...nextauth]/route.ts

import NextAuth from 'next-auth/next';
import CredentialsProvider from 'next-auth/providers/credentials'