Install convmv if you don't have it
sudo apt-get install convmv
Convert all files in a directory from NFD to NFC:
convmv -r -f utf8 -t utf8 --nfc --notest .
namespace Helpers | |
{ | |
using System; | |
/// <summary> | |
/// A static class of extension methods for <see cref="Array"/>. | |
/// </summary> | |
public static class ArrayHelpers | |
{ | |
/// <summary> |
LOCAL_PATH:= $(call my-dir) | |
include $(CLEAR_VARS) | |
LOCAL_SRC_FILES:= \ | |
gps_test.cpp | |
LOCAL_SHARED_LIBRARIES := \ | |
libcutils libhardware | |
LOCAL_MODULE:= test-gps |
/* XDG/OSX Save and Config Folder Thing | |
* Written by Ethan "flibitijibibo" Lee | |
* http://www.flibitijibibo.com/ | |
* | |
* Released under public domain. | |
* No warranty implied; use at your own risk. | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> |
Install convmv if you don't have it
sudo apt-get install convmv
Convert all files in a directory from NFD to NFC:
convmv -r -f utf8 -t utf8 --nfc --notest .
<!-- You can change the parent around to whatever you normally use --> | |
<style name="DebugColors" parent="Theme.AppCompat"> | |
<!-- System colors --> | |
<item name="android:windowBackground">@color/__debugWindowBackground</item> | |
<item name="android:colorPressedHighlight">#FF4400</item> | |
<item name="android:colorLongPressedHighlight">#FF0044</item> | |
<item name="android:colorFocusedHighlight">#44FF00</item> | |
<item name="android:colorActivatedHighlight">#00FF44</item> |
# Pre requisites | |
- Enable DRI3 as described in https://vulkan.lunarg.com/app/docs/v1.0.3.1/getting_started_linux | |
- Install a library for SHA, e.g. sudo apt-get install libgcrypt11-dev (if not already present) | |
- Otherwise the driver may throw an error with "_mesa_sha1_compute" when loading SPIR-V shaders | |
# Building | |
- Clone Mesa Master : git clone git://anongit.freedesktop.org/mesa/mesa -b Master | |
- cd mesa | |
- autoreconf -vfi | |
- ./configure --with-dri-drivers=i965 --with-gallium-drivers= --with-sha1= --with-vulkan-drivers=intel |
http://stackoverflow.com/a/42690759 | |
Instructions for Visual Studio 2017: | |
- Close Visual Studio 2017 | |
- Open Registry Editor (regedit), select HKEY_USERS | |
- File → Load Hive → %localappdata%\Microsoft\VisualStudio\15.0_<id>\privateregistry.bin where <id> is some hexadecimal gibberish. Set Key Name to the one you like e.g. vs2017 | |
- Go to HKEY_USERS\vs2017\Software\Microsoft\VisualStudio\15.0_<id> | |
- Create new key UseSolutionNavigatorGraphProvider of DWORD (32-bit) type, value 0 | |
- Select HKEY_USERS\vs2017, File → Unload Hive |
using System; | |
using Microsoft.CodeAnalysis; | |
using Microsoft.CodeAnalysis.CSharp; | |
using Microsoft.CodeAnalysis.CSharp.Syntax; | |
namespace Roslyn.CodeGeneration | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) |
Microsoft partnered with Canonical to create Bash on Ubuntu on Windows, running through a technology called the Windows Subsystem for Linux. Below are instructions on how to set up the ssh server to run automatically at boot.
/etc/ssh/sshd_config
file by running the command sudo vi /etc/ssh/sshd_config
and do the following
Port
to 2222 (or any other port above 1000)PasswordAuthentication
to yes. This can be changed back to no if ssh keys are setup.sudo service ssh --full-restart
#!/usr/bin/env bash | |
# checck if pidof exists | |
PIDOF="$(which pidof)" | |
# and if not - install it | |
(test "${PIDOF}" && test -f "${PIDOF}") || brew install pidof | |
# find app in default paths | |
CO_PWD=~/Applications/CrossOver.app/Contents/MacOS | |
test -d "${CO_PWD}" || CO_PWD=/Applications/CrossOver.app/Contents/MacOS |