Skip to content

Instantly share code, notes, and snippets.

View warifp's full-sized avatar
:shipit:
Life is a nightmare with code, raised on ethics

Wahyu Purnomo warifp

:shipit:
Life is a nightmare with code, raised on ethics
View GitHub Profile
@warifp
warifp / unfollow.js
Created April 30, 2019 15:26 — forked from JamieMason/unfollow.js.md
Unfollow everyone on twitter.com
// Unfollow everyone on twitter.com, by Jamie Mason (https://twitter.com/fold_left)
// 1. Go to https://twitter.com/following.
// 2. Keep scrolling to the bottom repeatedly until all your followers are loaded.
// 3. Run this in your console.
[].slice.call(document.querySelectorAll('.unfollow-text')).forEach(function(button) {
button.click();
});
// If your browser is freezing because you follow *loads* of people, then try the version
@warifp
warifp / prompt
Created June 3, 2019 03:59 — forked from BenKanouse/prompt
configs for prompt (color reference in comments)
c_quiet='\[\e[0;37m\]'
c_reset='\[\e[0m\]'
c_path='\[\e[0;92m\]'
c_host='\[\e[0;95m\]'
c_user='\[\e[0;93m\]'
c_time=${c_path}
export PS1="\n${c_user}\u${c_quiet}@${c_host}\h${c_quiet}:${c_path}\w\n${c_time}\t${c_quiet}-> ${c_reset}"
### colors reference
@warifp
warifp / keybase.md
Created September 12, 2019 00:10
Keybase proof

Keybase proof

I hereby claim:

  • I am warifp on github.
  • I am warifp (https://keybase.io/warifp) on keybase.
  • I have a public key ASCQqgoZmqI0Vh6QV-t3vxZm7dgm_0_rXVpf5DJicAA7swo

To claim this, I am signing this object:

@warifp
warifp / Windows
Last active November 8, 2024 17:37 — forked from JerryLokjianming/Crack Sublime Text Windows and Linux.md
Crack Sublime Text 3.2.2 Build 3211
How to Crack Sublime Text 3 with Hex Editor
1. Download & Install Sublime Text 3.2.2 Build 3211
2. Visit Hexed.it
3. Open file sublime_text.exe
4. Search address 97 94 0D
5. Change to 00 00 00
6. Export File
@warifp
warifp / Response.php
Created June 14, 2020 10:01 — forked from jeffochoa/Response.php
Laravel HTTP status code
<?php
// This can be found in the Symfony\Component\HttpFoundation\Response class
const HTTP_CONTINUE = 100;
const HTTP_SWITCHING_PROTOCOLS = 101;
const HTTP_PROCESSING = 102; // RFC2518
const HTTP_OK = 200;
const HTTP_CREATED = 201;
const HTTP_ACCEPTED = 202;
@warifp
warifp / publickey-git-error.markdown
Created August 8, 2020 14:17 — forked from adamjohnson/publickey-git-error.markdown
Fix "Permission denied (publickey)" error when pushing with Git

"Help, I keep getting a 'Permission Denied (publickey)' error when I push!"

This means, on your local machine, you haven't made any SSH keys. Not to worry. Here's how to fix:

  1. Open git bash (Use the Windows search. To find it, type "git bash") or the Mac Terminal. Pro Tip: You can use any *nix based command prompt (but not the default Windows Command Prompt!)
  2. Type cd ~/.ssh. This will take you to the root directory for Git (Likely C:\Users\[YOUR-USER-NAME]\.ssh\ on Windows)
  3. Within the .ssh folder, there should be these two files: id_rsa and id_rsa.pub. These are the files that tell your computer how to communicate with GitHub, BitBucket, or any other Git based service. Type ls to see a directory listing. If those two files don't show up, proceed to the next step. NOTE: Your SSH keys must be named id_rsa and id_rsa.pub in order for Git, GitHub, and BitBucket to recognize them by default.
  4. To create the SSH keys, type ssh-keygen -t rsa -C "[email protected]". Th
@warifp
warifp / README.md
Created August 12, 2020 23:16 — forked from mul14/README.md
Simple Laravel Search Trait

Usage

Put SearchTrait.php in app directory. Then use SearchTrait in your model, like so

use App\SearchTrait;
use Illuminate\Database\Eloquent\Model;

class Article extends Model 
{
@warifp
warifp / imei_generator.js
Created December 28, 2020 08:45
IMEI Generator
//
// Online Random IMEI Number Generator
//
// By: LazyZhu (http://lazyzhu.com/)
//
// Modified from: http://bradconte.com/cc_generator
//
function imei_gen() {
var pos;
@warifp
warifp / imei_generator.js
Created December 28, 2020 08:45
IMEI Generator
//
// Online Random IMEI Number Generator
//
// By: LazyZhu (http://lazyzhu.com/)
//
// Modified from: http://bradconte.com/cc_generator
//
function imei_gen() {
var pos;
@warifp
warifp / imei_generator.js
Created December 28, 2020 08:45
IMEI Generator
//
// Online Random IMEI Number Generator
//
// By: LazyZhu (http://lazyzhu.com/)
//
// Modified from: http://bradconte.com/cc_generator
//
function imei_gen() {
var pos;