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
  • 03:42 (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}")
@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 / 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 / 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 / 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 / remove-chrome-remote-desktop.sh
Created January 22, 2023 11:09 — forked from rg3915/remove-chrome-remote-desktop.sh
uninstall chrome remote desktop
sudo apt remove -y chrome-remote-desktop && sudo apt purge -y chrome-remote-desktop
@iykex
iykex / Sources.list--
Created April 21, 2023 10:23 — forked from nichham2/Sources.list--
This is a copy of the sources.list file for ubuntu-22.04-lts Server arm64 Also sources.list-ubuntu-22.04-lts Server amd64
## Note, this file is written by cloud-init on first boot of an instance
## modifications made here will not survive a re-bundle.
## if you wish to make changes you can:
## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg
## or do the same in user-data
## b.) add sources in /etc/apt/sources.list.d
## c.) make changes to template file /etc/cloud/templates/sources.list.tmpl
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
@iykex
iykex / sources.list
Created May 3, 2023 17:08 — forked from ishad0w/sources.list
Ubuntu 20.04 LTS (Focal Fossa) -- Full sources.list
deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
@iykex
iykex / youtube.js
Created August 15, 2023 08:18 — forked from l1am9111/youtube.js
YouTube Enhancer
// <![CDATA[
// ==UserScript==
// @name YouTube Enhancer
// @fullname YouTube Enhancer
// @description Download Link + Quality Selector + Rollover Preview + Media Controller + Media Resizer + More...
// @homepage http://userscripts.org/scripts/show/33042
// @icon http://s3.amazonaws.com/uso_ss/icon/33042/large.PNG?1245499122
// @updateURL http://userscripts.org/scripts/source/33042.meta.js
// @downloadURL http://userscripts.org/scripts/source/33042.user.js
// @author GIJoe