Skip to content

Instantly share code, notes, and snippets.

View ayatmaulana's full-sized avatar
🔥
Focusing

Ayat Maulana ayatmaulana

🔥
Focusing
View GitHub Profile
@Minish144
Minish144 / how-to.md
Last active January 21, 2023 15:30
Minikube remote access
  1. Run the minikube
minikube start --nodes 1
  1. Proxy and expose kubernetes server api
kubectl proxy --address='0.0.0.0' --accept-hosts='^*$'
  1. Expose the proxy port to access your cluster from outside
@matteocrippa
matteocrippa / flutter.md
Last active October 26, 2023 05:47
Flutter Cheatsheet

Flutter

A quick cheatsheet of useful snippet for Flutter

Widget

A widget is the basic type of controller in Flutter Material. There are two type of basic Widget we can extend our classes: StatefulWidget or StatelessWidget.

Stateful

StatefulWidget are all the widget that interally have a dynamic value that can change during usage. It can receive an input value in the constructor or reference to functions. You need to create two classes like:

@menzerath
menzerath / backup.php
Last active February 18, 2024 19:33
PHP: Recursively Backup Files & Folders to ZIP-File
<?php
/*
* PHP: Recursively Backup Files & Folders to ZIP-File
* MIT-License - 2012-2018 Marvin Menzerath
*/
// Make sure the script can handle large folders/files
ini_set('max_execution_time', 600);
ini_set('memory_limit', '1024M');
@PurpleBooth
PurpleBooth / README-Template.md
Last active April 18, 2024 00:56
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites