Skip to content

Instantly share code, notes, and snippets.

View kokoye2007's full-sized avatar

kokoye2007 kokoye2007

View GitHub Profile
@kokoye2007
kokoye2007 / adb-apk-extract
Last active December 11, 2015 11:14
APK Extract via ADB
adb shell pm list packages | awk -F":" '{print $2}' | grep -i $package
adb shell pm path
adb pull
@kokoye2007
kokoye2007 / zawgyi
Last active October 25, 2018 15:01
zawgyi xkb
// Zawgyi Myanmar xkb Keyboard for Linux
// based on ZawgyiOne2008
// developed by Ubuntu Myanmar Loco Team
default
partial alphanumeric_keys
xkb_symbols "basic" {
name[Group1]="Burmese Zawgyi";
include "level3(ralt_switch)"
@kokoye2007
kokoye2007 / Zawgyi-Force
Created June 5, 2015 05:51
SmartZawgyiPro-FontForce
javascript:(function(){fontfamily='Smart Zawgyi Pro'; document.getElementsByTagName('body')[0].style.fontFamily=fontfamily; var tag=['body','p','li','span','textarea','input','div','a','td','h1','h2','h3']; var p; for(j=0;j<tag.length;j++){ if(document.getElementsByTagName(tag[j])!=null) {p=document.getElementsByTagName(tag[j]); for(i=0;i<p.length;i++) { if( p[i].style !=undefined){ p[i].style.fontFamily=fontfamily;} } } } var iframe=document.getElementsByTagName('iframe'); for(k=0;k<iframe.length;k++) { doc=iframe[k].contentDocument;for(j=0;j<tag.length;j++){if(document.getElementsByTagName(tag[j])!=null) { p=doc.getElementsByTagName(tag[j]); for(i=0;i<p.length;i++) { if( p[i].style !=undefined){ p[i].style.fontFamily=fontfamily;} } } } } })();
@kokoye2007
kokoye2007 / smartzawgyipro.css
Created June 22, 2015 07:23
smartzawgyipro.css
@font-face {
font-family:'Smart Zawgyi Pro';
src:local('Smart Zawgyi Pro'), url('http://ubuntu-mm.net/fonts/smartzawgyipro.ttf') format('ttf');
}
http://sanfrancisco.kapeli.com/feeds/NET_Framework.tgz
http://sanfrancisco.kapeli.com/feeds/ActionScript.tgz
http://newyork2.kapeli.com/feeds/Akka.tgz
http://london.kapeli.com/feeds/Android.tgz
http://sanfrancisco2.kapeli.com/feeds/AngularJS.tgz
http://sanfrancisco2.kapeli.com/feeds/Angular.dart.tgz
http://frankfurt.kapeli.com/feeds/Ansible.tgz
http://frankfurt.kapeli.com/feeds/Apache_HTTP_Server.tgz
http://london2.kapeli.com/feeds/Appcelerator_Titanium.tgz
http://london2.kapeli.com/feeds/AppleScript.tgz
#!/bin/bash
#
# ITS FLOSS AND UNDER THE WTFPL.
# via Ko Ko Ye <[email protected]>
# Ubuntu, Ubuntu-MM, FOSSMM, FOSSASIA,
URL=http://dl.fullcirclemagazine.org/issue
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
SP=(
#! /bin/sh
### BEGIN INIT INFO
### [email protected]
# Provides: asplashscreen
# Required-Start:
# Required-Stop:
# Should-Start:
# Default-Start: S
# Default-Stop:
# Short-Description: Show custom splashscreen
#!/bin/bash
# The IP for the server you wish to ping (8.8.8.8 is a public Google DNS server)
SERVER=8.8.8.8
# The Ethernet or Wlan or Ath Address
NETWORKFACE=wlan0
# Only send two pings, sending output to /dev/null
ping -c2 ${SERVER} > /dev/null
# If the return code from ping ($?) is not 0 (meaning there was an error)
@kokoye2007
kokoye2007 / magpi-downloader
Last active August 17, 2022 17:30
MagPi Issues and Essentials Download Script
#!/bin/bash
MAG=MagPi
URL=https://raspberrypi.org/magpi-issues/
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
for n in {01..52}
do
cd "$DIR"
wget "$URL$MAG$n".pdf
done
#Additional and Essentials
pcm.!default {
type asym
playback.pcm {
type plug
slave.pcm "hw:0,0"
}
capture.pcm {
type plug
slave.pcm "hw:1,0"
}