Skip to content

Instantly share code, notes, and snippets.

View IrvanFza's full-sized avatar

Irvan Fauziansyah IrvanFza

View GitHub Profile
@IrvanFza
IrvanFza / Package Control.sublime-settings
Created January 29, 2015 15:29
My Favourite Packages of Sublime Text 3
{
"in_process_packages":
[
],
"installed_dependencies":
[
"0_package_control_loader",
"bz2"
],
"installed_packages":
@IrvanFza
IrvanFza / Preferences.sublime-settings
Created January 29, 2015 15:30
My Favourite Settings of Sublime Text 3
{
"auto_complete_commit_on_tab": true,
"bold_folder_labels": true,
"close_windows_when_empty": false,
"color_scheme": "Packages/User/Monokai Soda.tmTheme",
"font_size": 14,
"highlight_line": true,
"highlight_modified_tabs": true,
"hot_exit": false,
"ignored_packages":
<?php
function fivaa($input) {
// Set up variable for result
$output = '';
// Loop all trough input number descendingly
for ($i=$input; $i > 0; $i--) {
// Loop the first two number of the input
@IrvanFza
IrvanFza / sampleREADME.md
Created August 3, 2020 03:23 — forked from FrancesCoronel/sampleREADME.md
A sample README for all your GitHub projects.

FVCproductions

INSERT GRAPHIC HERE (include hyperlink in image)

Repository Title Goes Here

Subtitle or Short Description Goes Here

@IrvanFza
IrvanFza / whatsapp-send-in-current-chat.js
Created November 9, 2020 17:28 — forked from EyMaddis/whatsapp-send-in-current-chat.js
Sending messages programmatically on web.whatsapp.com
// this allows to send arbitrary messages. The chat conversation you want to send messages to has to be open.
// just run this in the JS console
// http://stackoverflow.com/a/39165137/1249001
function findReactComponent(dom) {
for (var key in dom)
if (key.startsWith("__reactInternalInstance$")) {
var compInternals = dom[key]._currentElement;
var compWrapper = compInternals._owner;
var comp = compWrapper._instance;
@IrvanFza
IrvanFza / good_flog_score.txt
Created December 12, 2022 17:12 — forked from ssmythe/good_flog_score.txt
What's a Good Flog Score?
From: http://jakescruggs.blogspot.com/2008/08/whats-good-flog-score.html
What's a Good Flog Score?
I've been using Flog to measure the complexity of my Ruby code and I was wondering how others interpret Flog numbers.
I'll go first with my opinions:
Score of Means
0-10 Awesome
11-20 Good enough
@IrvanFza
IrvanFza / message.md
Created May 14, 2023 02:33 — forked from skplunkerin/message.md
rails custom error message validation without column

Best solution:

http://stackoverflow.com/a/808776/1180523

# model
validates   :email,    :uniqueness => { message: "is wrong" }
validates   :name,    :uniqueness => { message: "Your name is wrong" }

HUMANIZED_ATTRIBUTES = {
  :email => "E-mail address",
  :name => "" # don't include column name in error
@IrvanFza
IrvanFza / default.md
Created June 22, 2025 12:21 — forked from cablej/default.md
Cluely System prompt

<core_identity> You are an assistant called Cluely, developed and created by Cluely, whose sole purpose is to analyze and solve problems asked by the user or shown on the screen. Your responses must be specific, accurate, and actionable. </core_identity>

<general_guidelines>

  • NEVER use meta-phrases (e.g., "let me help you", "I can see that").
  • NEVER summarize unless explicitly requested.
  • NEVER provide unsolicited advice.
  • NEVER refer to "screenshot" or "image" - refer to it as "the screen" if needed.
  • ALWAYS be specific, detailed, and accurate.

Boost Prompt

A prompt to boost your lazy "do this" prompts. Install with one of the buttons below.

Install in VS Code Install in VS Code Insiders

Use

@IrvanFza
IrvanFza / claude-code-prompt.txt
Created August 26, 2025 10:08 — forked from agokrani/claude-code-prompt.txt
Claude Code System Prompt
'system':
[
{
'type': 'text',
'text': "You are Claude Code, Anthropic's official CLI for Claude.",
'cache_control': {'type': 'ephemeral'}
},
{
'type': 'text',
'text': 'You are an interactive CLI tool that helps users with software engineering tasks.