Skip to content

Instantly share code, notes, and snippets.

View imammubin's full-sized avatar

Imam Mubin imammubin

View GitHub Profile
@imammubin
imammubin / remove auto google software update on mac .txt
Created February 3, 2024 15:04
remove auto google software update on mac
sudo rm -rf ~/Library/google/GoogleSoftwareUpdate
cd ~/library/launchagents
sudo rm -rf com.google.GoogleUpdater.wake.plist
sudo rm -rf com.google.keystone.xpcservice.plist
keytool -list -v -keystore C:\Users\{change_with_window_username}\.android\debug.keystore -alias androiddebugkey -storepass android -keypass android
keytool -list -v -keystore C:\Users\iMubin\.android\debug.keystore -alias androiddebugkey -storepass android -keypass android
keytool -importcert -file D:\My\Downloads\upload_cert1.der -keystore C:\Users\iMubin\.android\debug.keystore
keytool -exportcert -alias androiddebugkey -keystore C:\Users\iMubin\.android\debug.keystore -list -v
BUAT KEYPAIR BARU
keytool -genkeypair -alias upload -keyalg RSA -keysize 2048 -validity 9125 -keystore cobain.jks
keytool -genkeypair -alias ptpr -keyalg RSA -keysize 2048 -validity 9125 -keystore ptpr.jks
#![allow(unused_imports, non_snake_case)]
use actix_web::{get, web, App, HttpResponse, HttpRequest, HttpServer, Responder};
use std::sync::{Mutex};
#[derive(Clone,Debug)]
pub struct WebLoad{
pub count: i32
}
#[actix_web::main]
#![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(||{
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);
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; \
MYSQL 5.7
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'rootpasswd' ;
use mysql;
update user set host='%' where host='localhost'
# 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
version: '3'
services:
# Database
db:
container_name: database
image: mysql:5.7
volumes:
- ./db_data:/var/lib/mysql
# 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