Skip to content

Instantly share code, notes, and snippets.

View alexforsale's full-sized avatar
👀
On the lookouts

Kristian Alexander P alexforsale

👀
On the lookouts
View GitHub Profile
@alexforsale
alexforsale / logcat-20140419-1801
Created April 19, 2014 11:57
using M8625SSNSKMLYA1050 hardware/qcom/display
- waiting for device -
--------- beginning of /dev/log/main
I/DEBUG ( 121): debuggerd: Apr 19 2014 10:39:25
--------- beginning of /dev/log/system
I/Vold ( 116): Vold 2.1 (the revenge) firing up
D/Vold ( 116): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)
D/Vold ( 116): Volume sdcard2 state changing -1 (Initializing) -> 0 (No-Media)
D/Vold ( 116): Volume sdcard2 state changing 0 (No-Media) -> 2 (Pending)
D/Vold ( 116): Volume sdcard2 state changing 2 (Pending) -> 1 (Idle-Unmounted)
W/Vold ( 116): Duplicate state (1)
@alexforsale
alexforsale / phonepatch.patch
Last active August 29, 2015 14:06
possible phone fc fix
diff --git a/core/java/android/provider/CallLog.java b/core/java/android/provider/CallLog.java
index 6d14dfc..d1a690c 100644
--- a/core/java/android/provider/CallLog.java
+++ b/core/java/android/provider/CallLog.java
@@ -246,6 +246,13 @@ public class CallLog {
public static final String CACHED_FORMATTED_NUMBER = "formatted_number";
/**
+ * The subscription id.
+ * <P>Type: Integer</P>
From a67f8c0ca3bad08a7d4ecf26df6a11c2757a9aee Mon Sep 17 00:00:00 2001
From: alexforsale <alexforsale@yahoo.com>
Date: Sun, 21 May 2017 00:54:00 +0700
Subject: [PATCH 1/6] A16C3H: drivers:input:misc: add kionix_accel
---
arch/arm/boot/dts/qcom/msm8909-qrd-skuc.dtsi | 16 +
drivers/input/misc/Kconfig | 9 +
drivers/input/misc/Makefile | 1 +
drivers/input/misc/kionix_accel.c | 2518 ++++++++++++++++++++++++++

Keybase proof

I hereby claim:

  • I am alexforsale on github.
  • I am alexforsale (https://keybase.io/alexforsale) on keybase.
  • I have a public key ASB0YMqk6M5QmUebqDNzWTVFx9OQWPjrg3aV39s4Tk0GYgo

To claim this, I am signing this object:

@alexforsale
alexforsale / Rakefile
Created December 21, 2017 09:51 — forked from SirRawlins/Rakefile
Using Jekyll plugins on GitHub Pages.
# Rquire jekyll to compile the site.
require "jekyll"
# Github pages publishing.
namespace :blog do
#
# Because we are using 3rd party plugins for jekyll to manage the asset pipeline
# and suchlike we are unable to just branch the code, we have to process the site
# localy before pushing it to the branch to publish.
#
@alexforsale
alexforsale / openpgp.txt
Created January 18, 2018 11:24
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:27517709e592f14c5a51d90b972b3c2d613e4ae9]
--- ./gcc/config/i386/t-linux64.orig 2013-01-14 16:32:37.000000000 +0000
+++ ./gcc/config/i386/t-linux64 2013-04-22 06:12:32.984439677 +0000
@@ -34,6 +34,6 @@
comma=,
MULTILIB_OPTIONS = $(subst $(comma),/,$(TM_MULTILIB_CONFIG))
MULTILIB_DIRNAMES = $(patsubst m%, %, $(subst /, ,$(MULTILIB_OPTIONS)))
-MULTILIB_OSDIRNAMES = m64=../lib64$(call if_multiarch,:x86_64-linux-gnu)
-MULTILIB_OSDIRNAMES+= m32=$(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)$(call if_multiarch,:i386-linux-gnu)
+MULTILIB_OSDIRNAMES = m64=../lib
+MULTILIB_OSDIRNAMES+= m32=../lib32
@alexforsale
alexforsale / list_gcp_iprange.sh
Created February 3, 2020 09:17 — forked from n0531m/list_gcp_iprange.sh
Google Cloud Platform : ip address range
#!/bin/bash
# https://cloud.google.com/compute/docs/faq#find_ip_range
# nslookup -q=TXT _cloud-netblocks.googleusercontent.com 8.8.8.8
myarray=()
for LINE in `dig txt _cloud-netblocks.googleusercontent.com +short | tr " " "\n" | grep include | cut -f 2 -d :`
do
myarray+=($LINE)
for LINE2 in `dig txt $LINE +short | tr " " "\n" | grep include | cut -f 2 -d :`
@alexforsale
alexforsale / buat_ario.sh
Last active July 29, 2020 06:33
script bash
#!/usr/bin/env bash
# disetiap awal script harus pakai #! untuk si script
# bisa mencari file "bash", umumnya "#!/bin/bash", tapi
# tidak semua operating system menaruh "bash" di "bin",
# ada yang di "/usr/bin"(linux pada umumnya), "/usr/local/bin"(bsd) dll.
# kalau /usr/bin/env biasanya semua seragam(entah kalau diwindows).
# buat function dengan nama LongestWord
function LongestWord(){
# ambil setiap parameter yang diberikan