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 | |
# see also https://docs.docker.com/config/pruning/ | |
docker system prune --volumes -f | |
docker image prune -a -f |
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 | |
# | |
# Before you can run this script, you must configure a remote that points to the upstream repository in Git. | |
# example from .git/config: | |
# ``` | |
# [remote "origin"] | |
# url = [email protected]:naXa777/tutorials.git | |
# fetch = +refs/heads/*:refs/remotes/origin/* | |
# [remote "upstream"] | |
# url = https://github.com/eugenp/tutorials |
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 | |
apt install git unix2dos dos2unix --yes | |
git config --global core.autocrlf input | |
echo "Enter git user.name: " | |
read name | |
git config --global user.name "$name" | |
echo "Enter git user.email: " | |
read email | |
git config --global user.email "$email" |
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
import java.util.Random; | |
import java.util.concurrent.ArrayBlockingQueue; | |
import java.util.concurrent.BlockingQueue; | |
class Producer implements Runnable { | |
private static int count = 0; | |
private Random rg = new Random(); | |
private BlockingQueue<Object> queue = null; | |
public Producer(BlockingQueue<Object> queue) { |
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
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class EventManager : MonoBehaviour { | |
public bool LimitQueueProcesing = false; | |
public float QueueProcessTime = 0.0f; | |
private static EventManager s_Instance = null; | |
private Queue m_eventQueue = new Queue(); |
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
emulator -cpu-delay 0 -no-boot-anim -cache ./cache -avd "avd_name" |