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
  • 12:07 (UTC +07:00)
View GitHub Profile
@febritecno
febritecno / App.js
Created March 29, 2019 01:15 — forked from ktec/App.js
HOW TO USE PHOENIX WITH WEBPACK + REACT + REDUX - This is a collection of small changes related to: https://www.dailydrip.com/blog/how-to-use-phoenix-with-webpack-react-redux.html
import React, { Component } from "react";
import { connect } from "react-redux";
import MessageList from "../components/MessageList";
import MessageInput from "../components/MessageInput";
import Actions from "../actions";
function App(props) {
const { messages, sendMessage } = props;
return (
#importing the python requests library
import requests
def get_scores():
url = "https://cricscore-api.appspot.com/csa"
#Creatin a GET request
response = requests.get(url)
@febritecno
febritecno / 00_etc-hosts.md
Created October 1, 2019 01:55 — forked from mul14/00_etc-hosts.md
/etc/hosts for Vimeo, Netflix, Reddit, and Imgur.

Unblock Vimeo, Netflix, Reddit, dan Imgur

Saya support Internet Positif untuk memblokir porn, situs judi, dan hal-hal ilegal lainnya. Tapi pemerintah dan ISP sangat konyol karena tidak mengizinkan akses ke Vimeo, Reddit, Imgur, Netflix--yang mana bukanlah situs dengan konten utama ilegal.

Linux / BSD / macOS

Tambahkan list di bawah ke /etc/hosts.

Windows

https://quickadminpanel.com/blog/list-of-21-artisan-make-commands-with-parameters/
sublime 3211
----- BEGIN LICENSE -----
Member J2TeaM
Single User License
EA7E-1011316
D7DA350E 1B8B0760 972F8B60 F3E64036
B9B4E234 F356F38F 0AD1E3B7 0E9C5FAD
FA0A2ABE 25F65BD8 D51458E5 3923CE80

FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@febritecno
febritecno / st_cheat.txt
Last active March 1, 2020 13:37 — forked from bjhess/st_cheat.txt
Sublime Text Cheatsheet
Navigation:
cmd-p Goto Anything ('@' for functions, ':' for line number)
cmd-r Function finder
ctl-g Goto line number
cmd-sft-p Command palette
cmd-sft-f Find in Files
cmd-opt-r Toggle regex when finding
cmd-opt-# Columns
ctr-# Switch columns
@febritecno
febritecno / package.json
Last active November 18, 2024 17:22
bot whatsapp kirim pesan ke kumpulan kotak nomer secara otomatis dengan cronjobs
// ~~~ PERHATIAN ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// KODE INI SUDAH TIDAK BEKERJA LAGI, KARNA PERUBAHAN
// STUKTUR DAN SISTEM DARI WHATSAPPIE API
//
// ~~~ PERHATIAN ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//copy dan paste kode dibawah ini ke file package.json
@febritecno
febritecno / main.js
Created March 29, 2020 09:28
contoh bot wa tanpa API (whatsapp-web.js)
const { Client } = require('whatsapp-web.js');
const qrCode = require('qrcode');
const http = require('http');
const request = require('request');
const client = new Client();
const stop = "\n\n===============\nBalas pesan ini dengan *stop* untuk berhenti automasi Covid19"
const penggunaAksi = new Map();

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@febritecno
febritecno / gist:cad490b498b02d906b1318c34916e4aa
Created April 6, 2020 17:14 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt