Skip to content

Instantly share code, notes, and snippets.

Time is the most valuable what each one of us has.

Manuel T. Schrempf ManuelTS

Block or report user

Report or block ManuelTS

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
@ManuelTS
ManuelTS / FixPNGAndroidIssue.txt
Created Jun 30, 2018
The Android emulator can show this error "iCCP: Not recognizing known sRGB profile" multiple times. This command is a fix for all PNG files in your project structure. Inspired from https://gist.github.com/rupakraj/5e7e58a666282ca9c2f7
View FixPNGAndroidIssue.txt
To resolve the errors for all PNG files from your project navigate in your top project folder and execute:
find . -name "*.png" -exec pngcrush -ow -rem allb -reduce {} +
If you want to know what all commands with their arguments do use the corresponding man pages.
@ManuelTS
ManuelTS / Atom.xml
Last active May 6, 2019
Is a keymap file for Android Studio (IntelliJ) 3.4 and later to have common source code edit Atom 1.27 shortcuts. This will be updated until the 01.08.2019. The normal Android Studio keymap file location is at the end of this link: https://www.jetbrains.com/help/idea/configuring-keyboard-and-mouse-shortcuts.html
View Atom.xml
<keymap version="1" name="Atom" parent="Default for XWin">
<action id="CIDR.Lang.Cpp.GenerateDefinitions" />
<action id="ChooseRunConfiguration" />
<action id="CloseAllEditorsButActive">
<keyboard-shortcut first-keystroke="shift ctrl w" />
</action>
<action id="CloseContent">
<keyboard-shortcut first-keystroke="ctrl w" />
</action>
<action id="CollapseSelection" />
@ManuelTS
ManuelTS / SaveLoadWav.cs
Created Feb 5, 2018
Saves and loads in Unity .wav files in the Application.persistentDataPath
View SaveLoadWav.cs
/* Copyright (c) 2018 Manuel T. Schrempf
This software is provided 'as-is', without any express or implied warranty. In
no event will the authors be held liable for any damages arising from the use
of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it freely,
subject to the following restrictions:
@ManuelTS
ManuelTS / UninstallUnity.sh
Last active Jan 16, 2018
Uninstalls the Unity Editor on Ubuntu
View UninstallUnity.sh
#!/usr/bin/env bash
# Uninstalls the Unity Editor on Ubuntu.
#
# Tested for Unity 2017.30f1 downloaded from https://beta.unity3d.com/download/3c89f8d277f5/public_download.html
# and Ubuntu 17.10, but it should work with other version too.
#
# Unity is expected to be installed in your home folder, otherwise
# change the first remove command to your installation path.
#
# Execute this program as root, e.g. "sudo sh UninstallUnity.sh"
@ManuelTS
ManuelTS / install_casperJs.sh
Created Sep 28, 2017
Installs CasperJS in your Debian/Ubuntu System.
View install_casperJs.sh
#!/usr/bin/env bash
# Installs CasperJS in your Debian/Ubuntu System. Idea taken from http://docs.casperjs.org/en/latest/installation.html
#
# After you installed PhantomJS with https://gist.github.com/ManuelTS/935155f423374e950566d05d1448038d
# run this script as root with:
# sudo sh install_casperJs.sh
CASPER_JS="casperjs"
cd /usr/local/share/
@ManuelTS
ManuelTS / install_phantomJs.sh
Last active Apr 13, 2019
This script installs PhantomJS on your Debian/Ubuntu System
View install_phantomJs.sh
#!/usr/bin/env bash
# This script installs PhantomJS on your Debian/Ubuntu System
#
# Taken from https://gist.github.com/julionc/7476620#gistcomment-2030572 and changed the download directory
#
# This script must be run as root:
# sudo sh install_phantomjs.sh
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
You can’t perform that action at this time.