Skip to content

Instantly share code, notes, and snippets.

View iykex's full-sized avatar
🍀
alive

mr•vybes iykex

🍀
alive
  • BitHub Inc.
  • Accra-Ghana, Africa
  • 01:31 (UTC)
  • X @nana_vybes
View GitHub Profile
@iykex
iykex / gist:8de0ba49d576fe88728da5348bc61ec7
Created May 23, 2017 21:26 — forked from dodyg/gist:5823184
Kotlin Programming Language Cheat Sheet Part 1

#Intro

Kotlin is a new programming language for the JVM. It produces Java bytecode, supports Android and generates JavaScript. The latest version of the language is Kotlin M5.3

Kotlin project website is at kotlin.jetbrains.org.

All the codes here can be copied and run on Kotlin online editor.

Let's get started.

@iykex
iykex / gist:7473b24115e5d504e6cd416cf5c9e20d
Created May 23, 2017 21:26 — forked from dodyg/gist:5616605
Kotlin Programming Language Cheat Sheet Part 2

This is a quick guide to Kotlin programming language. The previous part of this guide is here

#Object Oriented

fun main(args : Array<String>) {
  class local (val x : Int)
  
  val y = local(10)
 println("${y.x}")

Keybase proof

I hereby claim:

  • I am iykequame on github.
  • I am zac6ix (https://keybase.io/zac6ix) on keybase.
  • I have a public key ASBqpSam8l-JO82_WkLjyU8MMd4S72SORvHQWVrshm-p7go

To claim this, I am signing this object:

@iykex
iykex / lineage.mk
Created October 15, 2017 08:10
inherit stock build fingerprint for google verification in playstore
#// you must copy these lines from your stock build.prop
#//
# inherit stock build fingerprint
PRODUCT_BUILD_PROP_OVERRIDES += \
TARGET_DEVICE="Camon_C7" \
PRODUCT_NAME="TECNO-C7" \
BUILD_FINGERPRINT="TECNO/TECNO-C7/TECNO-C7:6.0/MRA58K/C7-H355A1-M-160922V69:user/release-keys" \
PRIVATE_BUILD_DESC="TECNO-C7-user 6.0 MRA58K 1461742312 release-keys"
@iykex
iykex / adb.sh
Created October 30, 2017 15:59 — forked from olivier-m/adb.sh
Remove all Google apps from an android phone. List of delete files from http://forum.xda-developers.com/showthread.php?t=1969755
# With your phone in debug mode, etc.
adb start-server
adb remount
adb shell < remove.sh
@iykex
iykex / git-reset.md
Last active May 19, 2018 20:28
GitHub </> Deleting commits history with git commands

Method One

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state.

Check out to a temporary branch:

  • git checkout --orphan TEMP_BRANCH
@iykex
iykex / compile_rom_source.md
Created April 11, 2018 23:29
Step To Compiling LineageOS `14.1` ROM From Source

Step To Compiling LineageOS 14.1 ROM From Source


Install the build packages :

To build LineageOS, you’ll need:

  • sudo apt install bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev libesd0-dev liblz4-tool libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk3.0-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev

For Ubuntu versions older than 16.04 (xenial), substitute:

  • libwxgtk3.0-dev → libwxgtk2.8-dev

CHANGELOG 📜

  • Modified : 2018-05-22

Model : Moto E⁴

SKU : XT1762


AEX-V4.6

@iykex
iykex / Embed Gists with a URL
Created May 20, 2018 22:53 — forked from bhwebworks/Embed Gists with a URL
Add to functions.php or a mu-plugin
/**
* Embed Gists with a URL
*
* Usage:
* Paste a gist link into a blog post or page and it will be embedded eg:
* https://gist.github.com/2926827
*
* If a gist has multiple files you can select one using a url in the following format:
* https://gist.github.com/2926827?file=embed-gist.php
*
@iykex
iykex / check_android_kernel_version_in_linux_terminal.md
Created June 5, 2018 18:34
command for checking kernel version of android in linux terminal
  • Code :
dd if=zImage-dtb bs=1 skip=$(LC_ALL=C od -Ad -x -w2 zImage-dtb | grep 8b1f | cut -d ' ' -f1 | head -1) | zgrep -a 'Linux version'

zImage-dtb or Image is the kernel(binary).