Skip to content

Instantly share code, notes, and snippets.

View febritecno's full-sized avatar
🏠
Working from home

Febrian Dwi Putra febritecno

🏠
Working from home
  • linkedin.com/in/febrian-dwi-putra
  • Bojonegoro, indonesia
  • 14:06 (UTC +07:00)
View GitHub Profile
@febritecno
febritecno / myproject_flutter_folder.md
Last active March 21, 2021 21:04
Catatan Flutter Paket

---------------------------------

Rules : Folder widget based on the number of uses

----------------------------------------

  • root : folder lib/views/widgets/templates -> return single component [pure native widget]

  • lv1 : folder lib/views/widgets/atomic/atoms -> containing 1-2 widget component [non native widget (external library)]

  • lv2 : folder lib/views/widgets/atomic/molecules -> containing 2-6 atoms / templates components [big components in the screen]

  • lv3 : folder lib/views/widgets/atomic/organisms -> containing > 6 atoms / templates components [the full screen widget]
@febritecno
febritecno / fix_force_close_adb_linux.md
Last active February 22, 2021 12:59
run smooth low res config mirror scrcpy + fix force close scrpy when android studio run adb
  1. Restart ADB server dengan perintah berikut : adb kill-server adb start-server

  2. Cara kedua adalah dengan melakukan langkah berikut :

sudo cp ~/Android/Sdk/platform-tools/adb /usr/bin/adb sudo chmod +x /usr/bin/adb sudo nano /etc/environment tambahkan script berikut sebelum tanda petik dua

@febritecno
febritecno / php-cheat-sheet-01.md
Created January 24, 2021 17:34 — forked from mulderu/php-cheat-sheet-01.md
php cheat sheet , php look up code, php simple guide
# syntax
array ( "key" => "value", … );
die("message");
do { block } while (condition);
$x = 1; 
while($x <= 5) {
    echo "The number is: $x <br>";
    $x++;
}
@febritecno
febritecno / blade_cheatsheet.txt
Last active December 4, 2022 23:16
notes laravel cheatsheet relational and Eloquent
{{ $var }} - Echo content
{{ $var or 'default' }} - Echo content with a default value
{{{ $var }}} - Echo escaped content
{{-- Comment --}} - A Blade comment
@extends('layout') - Extends a template with a layout
@if(condition) - Starts an if block
@else - Starts an else block
@elseif(condition) - Start a elseif block
@endif - Ends a if block
@foreach($list as $key => $val) - Starts a foreach block
@febritecno
febritecno / medium - zsh + oh-my-zsh - complete setup
Created December 13, 2020 17:51 — forked from aviralwal/medium - zsh + oh-my-zsh - complete setup
For medium article - Simple yet awesome zsh+ tmux development environment setup
# clone repo to get theme file for oh-my-zsh
git clone https://github.com/aviralwal/newserversetup.git
cd newserversetup
#zsh setup
sudo apt update
sudo apt install -y zsh
sudo chsh -s $(which zsh) $(whoami)
touch ~/.zshrc
echo "#hello" > ~/.zshrc
zsh
@febritecno
febritecno / link downloader repo
Created December 12, 2020 03:50
downloder github
@febritecno
febritecno / unzip.php
Created October 24, 2020 13:43
extract zip for fastest ftp uploader
application/x-httpd-php unzip.php ( C++ source, ASCII text, with CRLF line terminators )
<?php
/**
* The Unzipper extracts .zip or .rar archives and .gz files on webservers.
* It's handy if you do not have shell access. E.g. if you want to upload a lot
* of files (php framework or image collection) as an archive to save time.
* As of version 0.1.0 it also supports creating archives.
*
* @author Andreas Tasch, at[tec], attec.at
@febritecno
febritecno / alist.md
Last active September 10, 2020 04:49 — forked from tuannvm/cheatsheet.md
golang cheetsheet all by example #go #cheatsheet #golang
@febritecno
febritecno / fullscreen.js
Created September 4, 2020 11:18
fullscreen chrome
$(document).ready(function() {
launchIntoFullscreen(document.documentElement);
});
function launchIntoFullscreen(element) {
if(element.requestFullscreen) {
element.requestFullscreen();
} else if(element.mozRequestFullScreen) {
element.mozRequestFullScreen();
@febritecno
febritecno / database.rules.json
Created August 26, 2020 04:52 — forked from codediodeio/database.rules.json
Common Database Rules for Firebase
// No Security
{
"rules": {
".read": true,
".write": true
}
}