Skip to content

Instantly share code, notes, and snippets.

Working from home

Febrian Dwi Putra febritecno

Working from home
View GitHub Profile
febritecno /
Last active Nov 25, 2021


akses listen port localhost backend ke IP[port]

---- RESPON DIO tidak harus dimasukan ke model

-> kalau post tidak pakai model

febritecno /
Created Nov 9, 2021 — forked from pwnsdx/
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 / fix share folder beda user
Last active Nov 3, 2021
Fix linux error connection dns (valet)
View fix share folder beda user
sudo chown -R $(whoami) /opt/homebrew /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions /opt/homebrew/var/homebrew/locks /opt/homebrew/var/log
chmod u+w /opt/homebrew /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions /opt/homebrew/var/homebrew/locks /opt/homebrew/var/log
febritecno /
Created Oct 23, 2021 — forked from toricls/
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 / sample.js
Last active Sep 14, 2021
sample store vuex
View sample.js
// if use computed mapState, can use like local props data() ->
// mapState('filename') -> this.$store.state.items
export const state = () => ({
items: []
febritecno /
Created Jul 21, 2021 — forked from kimyvgy/
Deploy nodejs app with and pm2

Deploy nodejs app with 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 / 99-sysctl.conf
Created Mar 3, 2021 — forked from francoism90/99-sysctl.conf
Linux performance tweaks (TCP/UDP, swap, VFS)
View 99-sysctl.conf
fs.file-max = 2097152
net.core.netdev_max_backlog = 250000
net.core.somaxconn = 1024
net.core.rmem_max = 67108864
febritecno / learn.rb
Created Mar 1, 2021 — forked from awkale/learn.rb
#ruby #cheatsheet
View learn.rb
# This is a comment
This is a multiline comment
No-one uses them
You shouldn't either
# First and foremost: Everything is an object.
View inject_css_nativier.css
overflow-x: hidden;
overflow-y: scroll;
position: relative;