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
  • 17:41 (UTC +07:00)
View GitHub Profile
@febritecno
febritecno / macos-optimize-setup.md
Created September 15, 2024 10:38 — forked from nmccready/macos-optimize-setup.md
macOS optimize setup

macOS 10.12 Sonoma and Up Setup

Most things should work in newer versions of macOs with slight tweaks.

Custom recipe to get macOS 10.12 Sierra running from scratch, setup applications and developer environment. This is very similar (and currently mostly the same) as my 10.11 El Capitan setup recipe and 10.10 Yosemite setup recipe. I am currently tweaking this for 10.12 Sierra and expect to refine this gist over the next few weeks.

I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. I generally reinstall each computer from scratch every 6 months, and I do not perform upgrades between releases.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

@febritecno
febritecno / main.dart
Created June 6, 2022 03:24 — forked from eduardoflorence/main.dart
GetX - Sample GetNotifier
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:dio/dio.dart';
void main() {
runApp(GetMaterialApp(
initialRoute: '/home',
getPages: [
GetPage(
name: '/home',
@febritecno
febritecno / nosleep.sh
Created November 9, 2021 04:45
Completely disable sleep on any Mac
# Useful to prevent Macbooks to go to sleep when closing the lid instead of running tools that requires a Kernel Extension (e.g. InsomniaX) and more
# Before doing anything, save your current configuration using
pmset -g
# To disable sleep
sudo pmset -a sleep 0; sudo pmset -a hibernatemode 0; sudo pmset -a disablesleep 1;
# And to go back to normal
sudo pmset -a sleep 1; sudo pmset -a hibernatemode [original hibernatemode value]; sudo pmset -a disablesleep 0;
@febritecno
febritecno / lima-on-m1-mac-installation-guide.md
Created October 23, 2021 14:53 — forked from toricls/lima-on-m1-mac-installation-guide.md
Using Lima to run containers with containerd and nerdctl (without Docker Desktop) on M1 Macs

Lima (Linux virtual machines, on macOS) installation guide for M1 Mac.

Sep. 27th 2021 UPDATED

Now we can install patched version of QEMU via Homebrew (thank you everyone for the info!). Here is the updated instruction with it:

Used M1 Mac mini 2020 with macOS Big Sur Version 11.6.

1. Install QEMU & Lima

@febritecno
febritecno / MANUAL.md
Created July 21, 2021 15:42 — forked from kimyvgy/MANUAL.md
Deploy nodejs app with gitlab.com and pm2

Deploy nodejs app with gitlab.com and pm2

This manual is about setting up an automatic deploy workflow using nodejs, PM2, nginx and GitLab CI. It is tested on:

  • Target server: Ubuntu 16.04 x64. This is suitable for Ubuntu 14.x.
  • Windows 10 on my PC to work.
@febritecno
febritecno / 99-sysctl.conf
Created March 3, 2021 02:01 — forked from francoism90/99-sysctl.conf
Linux performance tweaks (TCP/UDP, swap, VFS)
# https://docs.continuent.com/tungsten-clustering-5.0/performance-networking.html
# https://wiki.archlinux.org/index.php/Sysctl
# https://pubs.vmware.com/continuent/tungsten-replicator-3.0/performance-networking.html
# https://www.vultr.com/docs/how-to-setup-tcp-optimization-on-linux
# https://russ.garrett.co.uk/2009/01/01/linux-kernel-tuning/
fs.file-max = 2097152
net.core.netdev_max_backlog = 250000
net.core.somaxconn = 1024
net.core.rmem_max = 67108864
@febritecno
febritecno / learn.rb
Created March 1, 2021 21:14 — forked from awkale/learn.rb
#ruby #cheatsheet
# This is a comment
=begin
This is a multiline comment
No-one uses them
You shouldn't either
=end
# First and foremost: Everything is an object.
@febritecno
febritecno / readme.md
Created February 7, 2021 10:20 — forked from joaofraga/readme.md
Bootable Windows USB from Mac OSX (Terminal)

How to create an Bootable Windows USB from OSX without Bootcamp

You will need

  • USB SSD with at least 8GB
  • Windows .ISO

With this on hands

Open terminal and do the following:

@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++;
}