View rust-actix-web-simple-example-routing-url-blog-post
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
#![allow(unused_imports, non_snake_case)] | |
use actix_web::{ | |
HttpServer, HttpResponse, App, Responder, | |
web, get, guard | |
}; | |
#[actix_web::main] | |
async fn main()-> std::io::Result<()>{ | |
HttpServer::new(||{ |
View ubuntu18-php81-apache2-composer
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
FROM ubuntu:18.04 | |
# Identify the maintainer of an image | |
LABEL maintainer="imammubin.net@gmail.com" | |
# Update the image to the latest packages | |
RUN apt-get update && apt-get upgrade -y | |
## preesed tzdata, update package index, upgrade packages and install needed software | |
RUN echo "tzdata tzdata/Areas select Asia" > /tmp/preseed.txt; \ |
View source-image-ubuntu1804-apache2-php73-composer-for-laravel7
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
# source-docker-ubuntu1804-apache2-php73-composer-for-laravel7 | |
FROM ubuntu:18.04 | |
# Identify the maintainer of an image | |
LABEL maintainer="imammubin.net@gmail.com" | |
# Update the image to the latest packages | |
RUN apt-get update && apt-get upgrade -y |
View docker-wordpress
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
version: '3' | |
services: | |
# Database | |
db: | |
container_name: database | |
image: mysql:5.7 | |
volumes: | |
- ./db_data:/var/lib/mysql |
View vue-chartjs sample2
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
import VueChartJS from 'vue-chartjs' | |
import ChartJSDatalabels from 'chartjs-plugin-datalabels' | |
import Chart from 'chart.js' | |
Chart.defaults.MyLine = Chart.defaults.line; | |
Chart.controllers.MyLine = Chart.controllers.line.extend({ | |
draw: function(ease) { | |
Chart.controllers.line.prototype.draw.call(this, ease); |
View Code Igniter 4 error with http code 500
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
# on public/index.php add | |
error_reporting(E_ALL); | |
ini_set("display_errors", 1); | |
sudo apt-get install php-intl | |
sudo /etc/init.d/apache2 restart |
View stop mysql 5.7 root login without password
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
MYSQL 5.7 | |
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'rootpasswd' ; | |
use mysql; | |
update user set host='%' where host='localhost' |
View catatan seputar react native
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
### UBUNTU ERROR | |
#### REMOVE NODE | |
##### https://github.com/yarnpkg/yarn/issues/6914 | |
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - | |
apt-get install -y nodejs | |
yarn add expo-cli -g | |
yarn expo init MyProjectName | |
https://medium.com/@saurabh.friday/install-watchman-on-ubuntu-18-04-ba23c56eb23a | |
https://stackoverflow.com/questions/31939729/regenerate-makefiles-sh-generates-libtoolize-linking-error-when-compiling-irstlm |
View Example
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
Get Cordinate GMAP from click | |
https://jsfiddle.net/4wz4z17j/2/ |
NewerOlder