Skip to content

Instantly share code, notes, and snippets.

View hww's full-sized avatar
🏠
Working from home

Valery (h2w) hww

🏠
Working from home
View GitHub Profile
// =============================================================================
// Valeriya P.
// Enabling modern C# in Unity 3D projects
// Read documentation here: https://stackoverflow.com/questions/45578298/how-to-enable-c-sharp-7-features-on-unity3d-projects
// =============================================================================
#if ENABLE_VSTU
using SyntaxTree.VisualStudio.Unity.Bridge;
using System;
// =============================================================================
// forked from samcragg/StringToDouble.cs
// =============================================================================
using System;
namespace Code.Utils.String
{
/// <summary>
/// Provides methods to convert a string to a double precision floating
@hww
hww / StringToDouble.cs
Created January 10, 2019 09:49 — forked from samcragg/StringToDouble.cs
strtod in C# unit tests.
using System;
namespace SvgParser
{
/// <summary>
/// Provides methods to convert a string to a double precision floating
/// point number.
/// </summary>
public static class StringToDouble
{
@hww
hww / openGL_on_WLSS.md
Created November 29, 2018 13:38 — forked from campenr/openGL_on_WLSS.md
Developing openGL on Ubuntu on the Windows Linux Subsystem
  1. Install Ubuntu through the Windows store

  2. Enable rendering of GUI applications from Ubuntu/WLSS in Windows using a Windows X-server

  • Install VxSrv on Windows
  • On Ubuntu/WLSS open .bashrc and add the following lines to the end, then save file and restart:
# tell GUI display to use the Windows X-server listening on localhost:0.0
export DISPLAY=localhost:0.0
# make rendering happen on the Windows side of things rather than Ubuntu
@hww
hww / LayerMenu.cs
Created August 23, 2018 20:58 — forked from Minimally/LayerMenu.cs
Unity Editor script for filtering layers via keyboard
using UnityEditor;
using UnityEngine;
public static class LayerMenu
{
/* PLACE IN EDITOR FOLDER.
* Feel free to change hotkeys depending on your preference.
* Modifier Keys % (ctrl on Windows, cmd on OS X), # (shift), & (alt), _ (no key modifiers) */
#region Layer Visibility
@hww
hww / ActiveMenu
Created August 23, 2018 20:58 — forked from Minimally/ActiveMenu
Unity3d class to quickly set GameObjects active/inactive with s and h
using System.Collections;
using UnityEditor;
using UnityEngine;
public static class ActiveMenu
{
/* PLACE IN EDITOR FOLDER.
* Feel free to change hotkeys depending on your preference.
* Modifier Keys % (ctrl on Windows, cmd on OS X), # (shift), & (alt), _ (no key modifiers) */
# =========================================================================
# first some of helpfull functions
# =========================================================================
# -------------------------------------------------------------------------
# to start stop service
# -------------------------------------------------------------------------
systemctl stop mpd
systemctl start mpd
# -------------------------------------------------------------------------
pacman -S --noconfirm --needed accountsservice
pacman -S --noconfirm --needed acpi
pacman -S --noconfirm --needed acpid
pacman -S --noconfirm --needed alsa-firmware
pacman -S --noconfirm --needed alsa-plugins
pacman -S --noconfirm --needed alsa-utils
pacman -S --noconfirm --needed arandr
pacman -S --noconfirm --needed artwork-i3
pacman -S --noconfirm --needed autoconf
pacman -S --noconfirm --needed automake
# -------------------------------------------------
# pacman -Qe | awk '{print $1}'
# -------------------------------------------------
accountsservice
acpi
acpid
alsa-firmware
alsa-plugins
alsa-utils
arandr
Step 1: Prepare The Install Environment
1.1 Boot the Ubuntu Live CD, select Try Linux, and open a terminal (press Ctrl-Alt-T).
1.2 Setup and update the repositories:
$ sudo apt-add-repository universe
$ sudo apt update
1.3 Optional: Start the OpenSSH server in the Live CD environment: