Skip to content

Instantly share code, notes, and snippets.

@gozan
gozan / Enable VT-X AMD-v windows home.txt
Last active September 27, 2019 06:21
Enable VT-X/AMD-v windows 10 home
If anyone is receiving the following BIOS error:
This computer doesn’t have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory.
Then please reboot your computer and press the button required to enter the BIOS/UEFI setup. This will be something like F1, F2, F8, F12, Delete, etc.
Once you enter the setup, dig around for VT-X (Intel) or AMD-v (AMD) depending on your processor. It may also be named something like Intel Virtualization Technology.
After finding it, enable it, then save and reboot. The save and reboot button is usually F10 but may be different.
@gozan
gozan / laravel-supervisor.md
Created August 20, 2019 02:28 — forked from vrajroham/laravel-supervisor.md
Installing Supervisor on AWS Elastic Beanstalk manually.

Installing Supervisor on AWS Elastic Beanstalk manually.

This gist may help you to install supervisor Manually on AWS Beanstalk host. I was enable to install and configure referring supervisor docs. Here are the steps by which I was able to use supervisor on my project.

Note: I have performed this steps on Laravel project and my instance was Debian powered. You can change according to your requirement.


  • Check python with easy_install is installed
  • Install supervisor > $ easy_install supervisor
  • Create directory for supervisor workers > mkdir /etc/supervisor/conf.d/
@gozan
gozan / readme.md
Created August 4, 2019 16:35 — forked from ianmustafa/readme.md
Konfigurasi Sublime Text 3 Favorit. Dikumpulkan dengan penuh ❤︎ oleh Ian Mustafa.

Konfigurasi Sublime Text 3 Favorit

Dikumpulkan dengan penuh ❤︎︎ oleh Ian Mustafa.

Konfigurasi

Bisa diakses melalui Ctrl+Shift+P (atau +Shift+P di Mac).

{
@gozan
gozan / gist:cbfa32660b62a231e67c54a371df9b81
Created March 27, 2019 05:13
htaccess mod_rewrite ip restriction spesific url
# redirect to 403
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$
RewriteCond %{REMOTE_ADDR} !^183\.180\.68\.132
RewriteCond %{REMOTE_ADDR} !^61\.194\.74\.162
RewriteCond %{REMOTE_ADDR} !^61\.213\.96\.4
RewriteRule ^(.*)$ - [R=403,L]
@gozan
gozan / QueueRetryAllCommand.php
Created April 19, 2018 14:36 — forked from JacobBennett/QueueRetryAllCommand.php
Laravel Queue:Retry-Multiple and Queue:Retry-All
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class RetryAllCommand extends Command
{
/**
* The name and signature of the console command.
@gozan
gozan / Git Cheatsheet.md
Last active February 5, 2018 10:13 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@gozan
gozan / add-option-to-dropdown.js
Created November 10, 2017 04:38 — forked from paulund/add-option-to-dropdown.js
Add and Remove Options in Select using jQuery
$("#selectBox").append('<option value="option6">option6</option>');
@gozan
gozan / regex-japanese.txt
Created September 18, 2017 09:57 — forked from terrancesnyder/regex-japanese.txt
Regex for Japanese
Regex for matching ALL Japanese common & uncommon Kanji (4e00 – 9fcf) ~ The Big Kahuna!
([一-龯])
Regex for matching Hirgana or Katakana
([ぁ-んァ-ン])
Regex for matching Non-Hirgana or Non-Katakana
([^ぁ-んァ-ン])
Regex for matching Hirgana or Katakana or basic punctuation (、。’)
@gozan
gozan / Sublime Text 3 Build 3103 License Key - CRACK
Created August 1, 2016 12:03
Sublime Text 3 Build 3103 License Key - CRACK
I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
@gozan
gozan / genymotionwithplay.txt
Created July 30, 2016 20:23 — forked from wbroek/genymotionwithplay.txt
Genymotion with Google Play Services
Download the following ZIPs:
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links)
Download the correct GApps for your Android version:
Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip)
Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip)
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip)
Google Apps for Android 4.4.4 (https://www.androidfilehost.com/?fid=23501681358544845 - gapps-kk-20140606-signed.zip)
Google Apps for Android 4.3 (https://www.androidfilehost.com/?fid=23060877490000124 - gapps-jb-20130813-signed.zip)