Skip to content

Instantly share code, notes, and snippets.

Markus Paeschke Neoklosch

Block or report user

Report or block Neoklosch

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Neoklosch
Neoklosch / git_alias
Last active Jan 17, 2019
git aliases
View git_alias
alias.hide=update-index
alias.show=update-index
alias.purge=remote prune origin
alias.purge-dry=remote prune origin --dry-run
alias.l=log --graph --oneline --all --decorate --topo-order
alias.last=rebase -i HEAD~1
alias.l2=log --graph --abbrev-commit --decorate --format=format:"%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)" --all
alias.l3=log --graph --abbrev-commit --decorate --format=format:"%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n"" %C(white)%s%C(reset) %C(dim white)- %an%C(reset)" --all
@Neoklosch
Neoklosch / README.md
Created Feb 14, 2018 — forked from lopspower/README.md
How to Analyze & Manage Memory on Android Like a Boss
View README.md

Analyze & Manage Memory on Android Like a Boss

This Blog is all about memory management in Android. It provides information about how you can analyze & reduce memory usage while developing an Android app.

Memory management is a complex field of computer science and there are many techniques being developed to make it more efficient. This guide is designed to introduce you to some of the basic memory management issues that programmers face.

Memory Management in Android

Android is a Linux based operating system. It uses native open source C libraries which power Linux machines. All the basic operating system operations like I/O, memory management and so on are handled by the Linux kernel. Like Java and .NET, Android uses its own run time and virtual machine to manage application memory. Unlike either of these frameworks, the Android run time also manages the lifetime processes. Each Android application runs in a separate process within its own Dalvik instance, relinquishing all responsibility for memo

View pre-push
#!/bin/bash
CMD="./gradlew clean test"
# Check if we actually have commits to push
commits=`git log @{u}..`
if [ -z "$commits" ]; then
exit 0
fi
$CMD
View teatimer.py
#!/usr/bin/env python
import argparse
import os
import time
import signal
import sys
import gi
gi.require_version('Notify', '0.7')
@Neoklosch
Neoklosch / matrix-effect.py
Created Mar 28, 2017
Simple Matrix rain effect for the linux terminal
View matrix-effect.py
import fcntl
import time
import random
import struct
import signal
import sys
import termios
import argparse
DEFAULT_SPEED = 0.05
@Neoklosch
Neoklosch / foe_bot.py
Last active Mar 12, 2017
Simple Forge of Empires Collect Bot
View foe_bot.py
#!/usr/bin/env python
import os
import sys
import signal
import time
import pyscreenshot as ImageGrab
import ImageOps
from numpy import *
@Neoklosch
Neoklosch / teatimer.py
Created Jan 31, 2017
python tea timer
View teatimer.py
#!/usr/bin/env python
import argparse
import os
import time
import signal
import sys
import gi
gi.require_version('Notify', '0.7')
@Neoklosch
Neoklosch / android_icon_resizer.py
Last active May 14, 2016
Android Icon Resizer - Resizes an input image to android specific drawable images
View android_icon_resizer.py
#!/usr/bin/python
# The MIT License (MIT)
#
# Copyright (c) 2016 Markus Paeschke
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
View tu-berlin-notifier.py
#!/usr/bin/env python
import subprocess, time, json
import urllib2
def main():
print "Starting notifier..."
message = ["notify-send", "Deine Nummer Digga, geh los!"]
while True:
@Neoklosch
Neoklosch / crlfHelper.js
Last active Dec 3, 2015
Helps to convert line endings from one type to the other.
View crlfHelper.js
// Copyright (c) 2015 Markus Paeschke
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
You can’t perform that action at this time.