This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Oracle JDK Removal Mac OSx | |
# | |
sudo rm -rf /Library/Java/JavaVirtualMachines/jdk<version>.jdk | |
sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin | |
sudo rm -rf /Library/PreferencePanes/JavaControlPanel.prefPane |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Simple script to revoke delete permissions | |
# | |
DIRECTORY=$1 | |
if [ "$DIRECTORY" != "" ]; then | |
chmod 0700 $1 | |
chmod +a "group:everyone deny delete" $1 | |
echo "Delete permissions revoked with success!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# MacOS Android Studio Cleaner | |
# | |
rm -Rf /Applications/Android\ Studio.app | |
rm -Rf ~/Library/Preferences/AndroidStudio* | |
rm ~/Library/Preferences/com.google.android.studio.plist | |
rm -Rf ~/Library/Application\ Support/AndroidStudio* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package pt.utl.ist.cmov.bomberman.controllers; | |
import pt.utl.ist.cmov.bomberman.controllers.interfaces.SimpleGestureListener; | |
import android.app.Activity; | |
import android.view.GestureDetector; | |
import android.view.GestureDetector.SimpleOnGestureListener; | |
import android.view.MotionEvent; | |
public class SimpleGestureController extends SimpleOnGestureListener { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cat << ►_◄ > /dev/null | |
# | |
# Tmux config | |
# | |
# set Zsh as your default Tmux shell | |
set-option -g default-shell /bin/zsh | |
# colors please |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val defaultAkkaTimeout = 60 | |
val defaultNumberOfActors = 10 | |
def getComponentActor[T <: AnyRef](timeout: akka.util.Timeout = Timeout(Duration(defaultAkkaTimeout, SECONDS)))(implicit m: Manifest[T]): T = { | |
val className = this.classCache.get(m.runtimeClass.getName) | |
val actorCount = defaultNumberOfActors | |
val actors = createRouterActors(actorCount,className,timeout) | |
val router = system.actorOf(Props.empty.withRouter(SmallestMailboxRouter.create(actors.toIterable.asJava))) | |
TypedActor(system).typedActorOf(TypedProps(Reflect(system).actorClassFor(className.get)).withTimeout(timeout), router) |
NewerOlder