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/zsh | |
check_command() { | |
command -v $1 > /dev/null 2>&1 | |
} | |
export ZSH=$HOME/.oh-my-zsh | |
# // --- Different settings for SSH ------------ | |
if [[ -n $SSH_CONNECTION ]]; then |
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 ~/.ssh/id_rsa.pub | ssh name@server_ip_address "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys" | |
sudo apt install timeshift | |
sudo timeshift --create --comments "A new backup" --tags D | |
# --tags D stands for Daily Backup | |
# --tags W stands for Weekly Backup | |
# --tags M stands for Monthly Backup | |
# --tags O stands for On-demand Backup | |
# sudo timeshift --restore |
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 | |
sudo apt-get update && sudo apt-get -y upgrade | |
sudo apt-get install -y \ | |
apt-transport-https \ | |
curl \ | |
ca-certificates \ | |
build-essential \ | |
software-properties-common \ | |
file \ |
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
sudo apt install libsqliteodbc | |
sudo apt install -f unixodbc-dev unixodbc libodbc1 | |
sudo apt install python-pyodbc | |
sudo apt install update | |
sudo su | |
curl https://packages.microsoft.com/config/ubuntu/18.10/prod.list > /etc/apt/sources.list.d/mssql-release.list | |
exit | |
sudo ACCEPT_EULA=Y apt-get install msodbcsql17 |
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 System; | |
using UnityEngine; | |
using UnityEditor; | |
namespace instance.id.Editor | |
{ | |
[InitializeOnLoad] | |
class CompilationTimer : EditorWindow | |
{ | |
static bool isTrackingTime; |
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 System; | |
using UnityEngine; | |
using UnityEditor; | |
namespace instance.id.Editor | |
{ | |
[InitializeOnLoad] | |
class CompilationTimer : EditorWindow | |
{ | |
static bool isTrackingTime; |
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
// --- instance.id ------------------------------------------------------------ | |
// Thanks to TheZombieKiller and Peter77 for creating this | |
// https://forum.unity.com/threads/editor-skinning-thread.711059/#post-4785434 | |
// Tested on Unity 2019.3.0b1 - 95% Dark mode Conversion | |
// Example Screenshot - https://i.imgur.com/9q5VPQk.png | |
// (Note - Once I ran this, I had to hit play and then it took effect) | |
// ---------------------------------------------------------------------------- | |
using System; | |
using System.Text.RegularExpressions; |
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
#if UNITY_2019_1_OR_NEWER | |
using UnityEditor; | |
using UnityEngine; | |
[InitializeOnLoad] | |
public class EditorCameraZoomWithScrollWheel | |
{ | |
private const float CAMERA_SPEED = -0.25f; | |
private static bool rmbDown = false; |
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 'dart:io'; | |
import 'package:firedart/firedart.dart'; | |
import 'package:hive/hive.dart'; | |
/// Stores tokens using a Hive store. | |
/// Depends on the Hive plugin: https://pub.dev/packages/hive | |
class HiveStore extends TokenStore { | |
static const keyToken = "auth_token"; |
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 'package:firedart/auth/user_gateway.dart'; | |
class FBUserData{ | |
String _fname; | |
String _lname; | |
String _serialNum; | |
String _contactEmail; | |
String _verified; | |
} |
OlderNewer