Skip to content

Instantly share code, notes, and snippets.

@Yolo-Jerome
Yolo-Jerome / upgrade
Last active December 3, 2017 12:43
Automated upgrade script for Ubuntu Servers
#!/bin/bash
#returns:
# 0 - success
# 1 - success : Requires reboot
# 2 - updated failed
# 3 - upgrade failed
# 4 - dist-upgrade failed
# 5 - autoremove failed
# 6 - autoclean failed
@Yolo-Jerome
Yolo-Jerome / .bashrc
Last active December 3, 2017 13:15
.bashrc Template
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@Yolo-Jerome
Yolo-Jerome / root.bashrc
Last active December 3, 2017 13:17
.bashrc Template - Root
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
@Yolo-Jerome
Yolo-Jerome / .profile
Last active December 3, 2017 13:18
.profile Template
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
@Yolo-Jerome
Yolo-Jerome / root.profile
Last active December 3, 2017 13:18
.profile Template - Root
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
@Yolo-Jerome
Yolo-Jerome / Github to Gitlab repair Git-LFS
Last active December 28, 2017 21:16
Repair the Git-LFS support for repositories imported from Github to Gitlab
#!/bin/bash
##############################################
# This is a script for repairing Git-LFS #
# support on all imported repositories from #
# github.com to a Gitlab-Server of an #
# organisation #
# #
# This requires all Repositories already #
# imported from Github to Gitlab using the #
@Yolo-Jerome
Yolo-Jerome / EditorBase.cs
Created September 10, 2019 05:14
Custom Editor for overwriting global list/array drawer
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
{