Skip to content

Instantly share code, notes, and snippets.

View iykex's full-sized avatar
🍀
alive

mr•vybes iykex

🍀
alive
  • Resolut Business Solutions Ltd.
  • Accra-Ghana, Africa
  • 07:23 (UTC)
  • X @nana_vybes
View GitHub Profile
// set the first nav item as active
var dis = $(".list-wrap li").eq(0);
// align the wave
align(dis);
// align the wave on click
$(".list-wrap li").click(function(){
dis = $(this);
@iykex
iykex / RomSourceCompressor.sh
Created October 22, 2018 17:16
Basically its for Compressed Android Rom source for slow internet/limited bandwidth devs.
ROMNAME=lineage-14.1
LINK=https://github.com/LineageOS/android
BRANCH=cm-14.1
THREAD_COUNT_SYNC=Number of your CPU Threads
echo -e "# Installing necessary packages..."
sudo apt install bc pxz wput
echo -e "# Installed"
echo -e "# Installing repo..."
package accumulatedsum;
/**
*
* @author oscartorres
*/
public class MainFrame extends javax.swing.JFrame {
long currentSum = 0;
@iykex
iykex / ffmpeg-compress-mp4
Created October 18, 2018 17:35 — forked from lukehedger/ffmpeg-compress-mp4
Compress mp4 using FFMPEG
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4
@iykex
iykex / twitter-verified-icon.svg
Created October 18, 2018 10:09 — forked from notslang/twitter-verified-icon.svg
The blue verified icon, extracted from Twitter's icon font & resized using Inkscape
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@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).

@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
*

CHANGELOG 📜

  • Modified : 2018-05-22

Model : Moto E⁴

SKU : XT1762


AEX-V4.6

@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
@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