https://dev.mysql.com/doc/refman/8.0/en/encryption-functions.html
install Mysql Server
$ sudo apt install mysql-serverlogin as mysql super user
> sudo mysql| version: '3' | |
| services: | |
| redis: | |
| image: "redis:3.0-alpine" | |
| command: redis-server --requirepass devpass | |
| volumes: | |
| - "./volumes/redis:/data" | |
| ports: | |
| - "6379:6379" |
| // [START initialize_firebase_in_sw] | |
| // Give the service worker access to Firebase Messaging. | |
| // Note that you can only use Firebase Messaging here, other Firebase libraries | |
| // are not available in the service worker. | |
| importScripts('https://www.gstatic.com/firebasejs/3.5.2/firebase-app.js'); | |
| importScripts('https://www.gstatic.com/firebasejs/3.5.2/firebase-messaging.js'); | |
| // Initialize the Firebase app in the service worker by passing in the | |
| // messagingSenderId. | |
| firebase.initializeApp({ |
| // wuriyanto 2022 | |
| package main | |
| import "fmt" | |
| func main() { | |
| var year uint32 = 1990 | |
| var month uint32 = 10 | |
| var day uint32 = 13 |
https://dev.mysql.com/doc/refman/8.0/en/encryption-functions.html
install Mysql Server
$ sudo apt install mysql-serverlogin as mysql super user
> sudo mysqlhttps://www.postgresql.org/docs/current/pgcrypto.html#id-1.11.7.35.8
$ sudo --login --user postgres$ \c database_name;| const { google } = require('googleapis'); | |
| const fs = require('fs'); | |
| const analyticsreporting = google.analyticsreporting('v4'); | |
| const setAuth = () => { | |
| // Obtain user credentials to use for the request | |
| const auth = new google.auth.GoogleAuth({ | |
| keyFile: 'your_service_account.json', | |
| scopes: ['https://www.googleapis.com/auth/analytics'] |
| let sendStatus = 'FAILED'; | |
| // DELAY in Milliseconds | |
| const DELAY = 1000; // 1 second | |
| const retryEmail = () => { | |
| console.log('retry failed email'); | |
| return 'FAILED'; | |
| }; |
| .PHONY : test build clean format | |
| ALL_PACKAGES=$(shell go list ./... | grep -v "vendor") | |
| test: | |
| $(foreach pkg, $(ALL_PACKAGES),\ | |
| go test -race -short $(pkg);) | |
| build: | |
| @echo "building binary" |
| # | |
| # Assumes an independent box (we'll call this one "graphite") | |
| # | |
| # Stay up to date | |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| # Install git | |
| sudo apt-get install g++ curl libssl-dev -y |
| package main | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "math" | |
| "strings" | |
| ) | |
| // α(radians) = α(degrees) × π / 180° |