Skip to content

Instantly share code, notes, and snippets.

View ibstelix's full-sized avatar

Ibrahima Gaye ibstelix

  • Dakar/Senegal
View GitHub Profile
@ibstelix
ibstelix / MainActivity.java
Created December 17, 2018 16:18
Android: How to collect the response of a USSD request (Including multi-session requests)
//Get the instance of TelephonyManager
final TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
try {
if (tm != null) {
Class telephonyManagerClass = Class.forName(tm.getClass().getName());
if (telephonyManagerClass != null) {
Method getITelephony = telephonyManagerClass.getDeclaredMethod("getITelephony");
@ibstelix
ibstelix / tmux-cheatsheet.markdown
Created May 24, 2018 20:37 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname