Skip to content

Instantly share code, notes, and snippets.

View burnz's full-sized avatar
🏠
Working from home

Halid Juki burnz

🏠
Working from home
View GitHub Profile
@burnz
burnz / remote-typeahead.js
Created June 15, 2012 11:13 — forked from geuis/remote-typeahead.js
Remote data querying for Twitter Bootstrap 2.0 Typeahead without modifications
<script>
// Charles Lawrence - Feb 16, 2012. Free to use and modify. Please attribute back to @geuis if you find this useful
// Twitter Bootstrap Typeahead doesn't support remote data querying. This is an expected feature in the future. In the meantime, others have submitted patches to the core bootstrap component that allow it.
// The following will allow remote autocompletes *without* modifying any officially released core code.
// If others find ways to improve this, please share.
var autocomplete = $('#searchinput').typeahead({
items: 10
})
.on('keyup', function(ev){
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 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)
Google Apps for Android 4.2 (https://www.androidfilehost.com/?fid=23060877490000128 - gapps-jb-20130812-signed.zip)
Google Apps for Android 4.1 (https://www.androidfilehost.com/?fid=22979706399755082 - gapps-jb-20121011-signed.zip)
@burnz
burnz / Install ARM Translation and Gapps from inside Genymotions
Last active December 22, 2021 12:19
Install ARM Translation and Gapps from inside Genymotions
1. Install Terminal Emulator1. This is needed so you can do shell commands. Obtain the APK then drag & drop the file to your device's window. The shell should popup, and the icon should now be in your app drawer.
2. Install the ARM translator. Extract the Genymotion-ARM-Translation_v1.1.zip file. Inside it is a directory called /system. Drag this directory to your virtual device's window. It should say "File succesfully copied to /sdcard/Download".
Then, run Terminal Emulator. Get root by running the command: su
Allow SuperUser to give Terminal Emulator root. Now run the following commands:
mount -o remount,rw /system
cp -Rf /sdcard/Download/system/* /system
chmod -R 0755 /system
@burnz
burnz / gist:bcea55161399cd110510
Created October 14, 2015 22:05
PHP Function startWith & endWith
<?php
function startsWith($haystack, $needle) {
// search backwards starting from haystack length characters from the end
return $needle === "" || strrpos($haystack, $needle, -strlen($haystack)) !== FALSE;
}
function endsWith($haystack, $needle) {
// search forward starting from end minus needle length characters
return $needle === "" || (($temp = strlen($haystack) - strlen($needle)) >= 0 && strpos($haystack, $needle, $temp) !== FALSE);
}
{
"env": {
"es6": true
},
"ecmaFeatures": {
// env=es6 doesn't include modules, which we are using
"modules": true
},
[{"name":"users","color":"Red","position":{"x":67,"y":98},"increment":true,"timestamp":true,"softdelete":true,"column":[{"name":"name","type":"string","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c33","order":0},{"name":"email","type":"string","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":false,"ui":false,"in":true,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c41","order":1},{"name":"avatar","type":"string","length":"","defaultvalue":"","enumvalue":"","ai":false,"pk":false,"nu":true,"ui":false,"in":false,"un":false,"fillable":false,"guarded":false,"visible":false,"hidden":false,"colid":"c62","order":2}],"relation":[],"seeding":[]}]

Keybase proof

I hereby claim:

  • I am burnz on github.
  • I am burnz (https://keybase.io/burnz) on keybase.
  • I have a public key ASDEXlx1LUkyx34Dw3gHbA6dPaJc4HMkpR85ZnowhME-UAo

To claim this, I am signing this object:

@burnz
burnz / cracking.md
Created March 29, 2019 17:10
Cracking guide for Sublime Text 3 Build 3200/3202 and Sublime Merge - Build 1109/1111 (Linux x86_64) - Updated #3 (20190327)

screen

Sublime Text 3 - Build 3200/3202 - Linux x64

For Build 3202:

Desciption Offset Original Patched
@burnz
burnz / cracking.md
Created March 29, 2019 18:17 — forked from vertexclique/cracking.md
Cracking guide for Sublime Text 3 Build 3059 / 3065 ( Mac / Win x86_64 / Windows x86 / Linux x64 / Linux x86 )

MacOS

Build 3059

MD5: 59bab8f71f8c096cd3f72cd73851515d

Rename it to: Sublime Text

Make it executable with: chmod u+x Sublime\ Text

@burnz
burnz / laravel_horizon.md
Created August 26, 2019 00:06 — forked from ankurk91/laravel_horizon.md
Laravel Horizon, redis-server, supervisord on Ubuntu server

Laravel Horizon, redis-server, supervisord on Ubuntu 16/18 server

Laravel 5.8, Horizon 3.x, Redis 5.x

Parepare application

  • Install and configure Laravel Horizon as instructed in docs
  • Make sure you can access the Horizon dashboard like - http://yourapp.com/horizon
  • For now it should show status as inactive on dashbaord

Install redis-server