start new:
tmux
start new with session name:
tmux new -s myname
class MyPrimitiveSynchronisationContext : SynchronizationContext | |
{ | |
private readonly Queue<Action> messagesToProcess = new Queue<Action>(); | |
private readonly object syncHandle = new object(); | |
private bool isRunning = true; | |
public override void Send(SendOrPostCallback codeToRun, object state) | |
{ | |
throw new NotImplementedException(); | |
} |
#region using | |
using System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using RestSharp; | |
#endregion | |
namespace TeamCitySharper |
# Change Java Runtime: | |
sudo update-alternatives --config java | |
# Delete Open-JDK | |
sudo apt-get purge openjdk-\* icedtea-\* icedtea6-\* | |
# Change fonts - remove hinting: | |
http://askubuntu.com/questions/32624/ugly-fonts-in-netbeans-how-can-i-make-it-use-the-system-font | |
# Change RubyMine AntiAliasing first: |
#Intro
Kotlin is a new programming language for the JVM. It produces Java bytecode, supports Android and generates JavaScript. The latest version of the language is Kotlin M5.3
Kotlin project website is at kotlin.jetbrains.org.
All the codes here can be copied and run on Kotlin online editor.
Let's get started.
#!/usr/bin/env bash | |
set -x | |
# Domain you wish to update | |
DOMAIN="example.com" | |
# Get the v4/v6 addresses from icanhazip.com [pretty reliable!] | |
IPV4_ADDR=`wget -4 -q -O - icanhazip.com` | |
IPV6_ADDR=`wget -6 -q -O - icanhazip.com` |
# Script for sending user defined updates using DO API | |
# 2015 Artem Yakimenko <code at temik dot me> | |
# | |
# activated inside /etc/config/ddns by setting | |
# | |
# option update_script '/usr/lib/ddns/update_do.sh' | |
# | |
# the script is parsed (not executed) inside send_update() function | |
# of /usr/lib/ddns/dynamic_dns_functions.sh | |
# so you can use all available functions and global variables inside this script |
# Mutable variable | |
var a = "hello" | |
# Immutable variable | |
let a = "hello" | |
# Specify a type | |
var age: int | |
var name: string |