Skip to content

Instantly share code, notes, and snippets.

View guitorioadar's full-sized avatar
🎯
Focusing

Wasi Sadman guitorioadar

🎯
Focusing
View GitHub Profile
@jacks205
jacks205 / RNMultipleTargetsInstructions.md
Last active December 5, 2024 19:48
Settings up multiple app targets in React-Native
@SuPair
SuPair / build_strongswan_android.md
Created November 27, 2017 07:14 — forked from vmlinz/build_strongswan_android.md
Instructions to build StrongSwan android client from git source

Instructons of building StrongSwan android client from git source

Official guide

https://wiki.strongswan.org/projects/strongswan/wiki/AndroidVPNClientBuild

  • Preparing the dev environment(Build on Ubuntu 14.04 amd64 to prevent various issues), see the [Doc] [1]
  • Preparing the source code: ./autogen.sh && ./configure && make dist
  • Preparing the dev environment with Android sdk and ndk for further development
@jpswade
jpswade / install_adb.sh
Last active July 4, 2024 09:38
Install android on centos
#!/bin/sh
# yum install android-tools -y
yum install java-1.8.0-openjdk-devel
mkdir -p android-sdk-linux
cd android-sdk-linux
# @see https://developer.android.com/studio/index.html
wget --output-document=android-sdk.zip --quiet https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip
unzip android-sdk.zip
rm -f android-sdk.zip
yes | tools/bin/sdkmanager --licenses
@athityakumar
athityakumar / powerlevel9k.config
Created July 6, 2017 18:38
Powerlevel9k oh-my-zsh theme configuration for screenshots used in https://github.com/athityakumar/colorls
export ZSH=$HOME/.oh-my-zsh
export DEFAULT_USER='athityakumar'
TERM=xterm-256color
ZSH_THEME="powerlevel9k/powerlevel9k"
POWERLEVEL9K_MODE='awesome-fontconfig'
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
POWERLEVEL9K_RPROMPT_ON_NEWLINE=true
POWERLEVEL9K_SHORTEN_DIR_LENGTH=2
@hugosenari
hugosenari / BIG iOS URL SCHEME LIST 1.txt
Last active April 23, 2025 10:51 — forked from genadyo/gist:295a5e8f0d743f57137f
Android/IOs Url Schemas
BIG iOS URL SCHEME LIST
HAD TO MAKE A DROPBOX FILE BECAUSE THIS LIST WAS TOO LONG TO POST IN THE COMMENTS OR NOT MAKE THE WORKFLOW APP TAKE FOREVER TO READ IT.
☠JAILBREAK/SYSTEM APPS
--------------------------
activator://
itms-apps://
itms-services://
@efremidze
efremidze / UUID.swift
Created August 18, 2016 23:46
optional variable assignment with default value
var UUID: String? {
return keychain[Constants.Keychain.UUID.description] ?? {
let string = UIDevice.currentDevice().identifierForVendor?.UUIDString
keychain[Constants.Keychain.UUID.description] = string
return string
}()
}
@enginebai
enginebai / MainActivity.java
Last active July 27, 2021 11:10
Get the current location and display a marker on Google Map.
package com.enginebai.sample;
import android.content.Context;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
@vmlinz
vmlinz / build_strongswan_android.md
Last active April 22, 2025 18:18
Instructions to build StrongSwan android client from git source

Instructons of building StrongSwan android client from git source

Official guide

https://wiki.strongswan.org/projects/strongswan/wiki/AndroidVPNClientBuild

  • Preparing the dev environment(Build on Ubuntu 14.04 amd64 to prevent various issues), see the [Doc] [1]
  • Preparing the source code: ./autogen.sh && ./configure && make dist
  • Preparing the dev environment with Android sdk and ndk for further development
@hamakn
hamakn / height.java
Created April 6, 2015 02:41
Android: Get height of status, action, navigation bar (pixels)
// status bar height
int statusBarHeight = 0;
int resourceId = getResources().getIdentifier("status_bar_height", "dimen", "android");
if (resourceId > 0) {
statusBarHeight = getResources().getDimensionPixelSize(resourceId);
}
// action bar height
int actionBarHeight = 0;
final TypedArray styledAttributes = getActivity().getTheme().obtainStyledAttributes(
@prime31
prime31 / gist:5675017
Last active June 2, 2025 06:29
Simple PHP script showing how to send an Android push notification. Be sure to replace the API_ACCESS_KEY with a proper one from the Google API's Console page. To use the script, just call scriptName.php?id=THE_DEVICE_REGISTRATION_ID
<?php
// API access key from Google API's Console
define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' );
$registrationIds = array( $_GET['id'] );
// prep the bundle
$msg = array