Skip to content

Instantly share code, notes, and snippets.

View akamud's full-sized avatar
👳‍♂️

Mahmoud Ali akamud

👳‍♂️
View GitHub Profile
@akamud
akamud / AppExtractor.bat
Created October 4, 2014 14:04
Script to extract android database files without root
@echo off
color 0a
title Extractor
if [%1]==[] (
echo Nome do aplicativo nao especificado...
echo.
echo Operation Failed!
) else (
echo Please connect your Android device with USB Debugging enabled:
echo.
public class Blog
{
public int BlogId { get; set; }
public string Url { get; set; }
public List<Post> Posts { get; set; }
}
@akamud
akamud / snippet.txt
Created May 17, 2016 01:33
Asp.Net Core RC2 on OS X with ZSH
# run this on an open terminal:
echo "export PATH=$PATH:/usr/local/share/dotnet/" >> .zshrc
@akamud
akamud / gist:84a432913044baf5bc482f1eb24e0ec4
Created February 19, 2017 23:57
Xamarin.Android error
2>d:\Documents\Visual Studio 2015\Projects\App4\App4\App4.Droid\Resources\Resource.Designer.cs(1290,119,1290,143): error CS0117: 'Resource.Styleable' does not contain a definition for 'SnackbarLayout_elevation'
2>d:\Documents\Visual Studio 2015\Projects\App4\App4\App4.Droid\Resources\Resource.Designer.cs(1291,130,1291,165): error CS0117: 'Resource.Styleable' does not contain a definition for 'SnackbarLayout_maxActionInlineWidth'
2>d:\Documents\Visual Studio 2015\Projects\App4\App4\App4.Droid\Resources\Resource.Designer.cs(1308,104,1308,113): error CS0117: 'Resource.Styleable' does not contain a definition for 'TabLayout'
2>d:\Documents\Visual Studio 2015\Projects\App4\App4\App4.Droid\Resources\Resource.Designer.cs(1309,118,1309,141): error CS0117: 'Resource.Styleable' does not contain a definition for 'TabLayout_tabBackground'
2>d:\Documents\Visual Studio 2015\Projects\App4\App4\App4.Droid\Resources\Resource.Designer.cs(1310,120,1310,145): error CS0117: 'Resource.Styleable' does not contain a definition for '
Error 1 Could not find android.jar for API Level 24. This means the Android SDK platform for API Level 24 is not installed. Either install it in the Android SDK Manager (Tools > Open Android SDK Manager...), or change your Xamarin.Android project to target an API version that is installed.
@akamud
akamud / README-Template.md
Created September 12, 2017 13:58 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@akamud
akamud / ColorExtensions.cs
Created March 17, 2018 16:45
Color extensions to fix iOS Color Space
public static class ColorExtensions
{
public static UIColor ToCorrectUIColor(this Color color)
{
return new UIColor(new CGColor(CGColorSpace.CreateSrgb(), new nfloat[] { (float)color.R, (float)color.G, (float)color.B, (float)color.A }));
}
public static CGColor ToCorrectCGColor(this Color color)
{
return new CGColor(CGColorSpace.CreateSrgb(), new nfloat[] { (float)color.R, (float)color.G, (float)color.B, (float)color.A });
@akamud
akamud / .vsvimrc
Last active August 24, 2018 16:40
VsVim RC
set clipboard=unnamed
imap jj <ESC>
nnoremap <Leader>s :%s/\<<C-r><C-w>\>/
nnoremap <Leader>a :noh<CR>
nnoremap <Leader>c *Nciw
nnoremap <Leader>f :/\%<c-r>=line('.')<cr>l
nnoremap <CR> o<ESC>
@akamud
akamud / simulator.sh
Created August 1, 2019 22:34
Open your iOS simulator's data folder
open "`xcrun simctl get_app_container booted com.company.yourapp data`"