Skip to content

Instantly share code, notes, and snippets.

View vicenterusso's full-sized avatar
🛠️
Mastering the art of DevOps

Vicente Russo vicenterusso

🛠️
Mastering the art of DevOps
View GitHub Profile
@vicenterusso
vicenterusso / CustomEditorBase.cs
Created March 22, 2016 23:18 — forked from t0chas/CustomEditorBase.cs
Default Custom Inspector-Editor for Unity3D with ReorderableLists for arrays handling
using UnityEngine;
using UnityEditor;
using UnityEditorInternal;
using System.Collections.Generic;
using UnityEditor.AnimatedValues;
[CustomEditor(typeof(UnityEngine.Object), true, isFallback = true)]
[CanEditMultipleObjects]
public class CustomEditorBase : Editor
{
@vicenterusso
vicenterusso / PlayMovie.cs
Created October 27, 2016 19:23
UI Canvas Movie Unity3D
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using DG.Tweening;
[RequireComponent(typeof(AudioSource))]
public class PlayMovie : MonoBehaviour
{
public MovieTexture Movie;
internal AudioSource AudioSource;
@vicenterusso
vicenterusso / HopaToolbar.cs
Last active January 20, 2017 19:29
Unity3D > Toolbar to turn on/off ScriptingDefineSymbols
using System.Linq;
using UnityEngine;
using UnityEditor;
namespace Hopa
{
namespace Utils
{
public class HopaToolbar : EditorWindow
@vicenterusso
vicenterusso / download-script.sh
Created March 23, 2019 05:02 — forked from amit-chahar/download-script.sh
Scirpt to download files from Google drive using curl (Detailed explanation can be read here: https://stackoverflow.com/a/49444877/4043524)
#!/bin/bash
fileid="FILEIDENTIFIER"
filename="FILENAME"
curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null
curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename}
@vicenterusso
vicenterusso / ScriptableObjectSpawner.cs
Last active January 8, 2020 06:52 — forked from FreyaHolmer/ScriptableObjectSpawner.cs
ScriptableObject asset spawner for Unity with search capabilities
// Adds a menu item for easy creation of your ScriptableObject types
// Usage: Right click in project view -> Create -> ScriptableObject... -> Select your type
// It will land in the root of your assets folder with the same name as your class
// Freya Holmér - [email protected]
//
// Added search capabilities by [email protected]
using System;
using UnityEngine;
using UnityEditor;
@vicenterusso
vicenterusso / docker-compose.yml
Last active April 6, 2021 17:33
Docker Composer GrayLog (4.0) + Elastic Search (7.10.0)
version: '3'
services:
# MongoDB: https://hub.docker.com/_/mongo/
mongo:
image: mongo:4.4
volumes:
- mongo_data:/data/db
networks:
- graylog
# Elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html
@vicenterusso
vicenterusso / laravel_manual_vue_install.md
Last active November 18, 2021 12:26
Manual Vuejs (2) Installation on Laravel

Manually Setting up Vue without Using laravel/ui

You don’t need to use the laravel/ui package in order to add support for Vue. In fact, you may actually choose not to if you don’t need the additional dependencies (like Bootstrap). Adding Vue support is easy enough.

  1. Install npm dependencies

$ npm install --save-dev vue vue-template-compiler

2. Create a component

@vicenterusso
vicenterusso / createinstallmedia.md
Created December 13, 2021 01:27 — forked from windyinsc/createinstallmedia.md
Create a bootable installer for macOS

Create a bootable installer for macOS

The following instructions were predominantly sourced via this Apple Support Document.

With macOS, you can use a USB flash drive or other removable media as a startup disk from which to install macOS. These advanced steps are intended primarly for system administrators and others who are familiar with the command line.

The final executable command(s) are found within Section III. Final macOS Executable Commands labled as Full Example or Full Example w/Options. I personally use the w/Options command which include both the --nointeraction and &&say Installation commands.

I. Overview

@vicenterusso
vicenterusso / SingletonDefaultExportInstance.js
Created January 14, 2022 02:57 — forked from dmnsgn/SingletonDefaultExportInstance.js
ES6 singleton pattern: module default exports an instance
class SingletonDefaultExportInstance {
constructor() {
this._type = 'SingletonDefaultExportInstance';
}
singletonMethod() {
return 'singletonMethod';
}
static staticMethod() {
@vicenterusso
vicenterusso / docker-compose.yml
Last active November 12, 2023 13:33
Docker Compose with fix Fedora 35/36/37 MySQL container - Leak Memory - High Usage - Error code 137
version: '3'
services:
mysqldb:
image: mysql:5.7.22
container_name: mysql_container_name
restart: always
ulimits:
nproc: 65535
nofile:
soft: 20000