create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
from __future__ import print_function | |
import argparse | |
parser = argparse.ArgumentParser() | |
parser.add_argument('--color', help='The name of the color') | |
parser.add_argument('--verbose', help='Print more data', | |
action='store_true') | |
parser.add_argument('--cuda', '-c', default=True, action='store_false') | |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
SELECT name FROM employees | |
WHERE id NOT IN (SELECT managerId FROM employees WHERE managerId IS NOT NULL); |
-server | |
-Xms2048m | |
-Xmx2048m | |
-XX:NewSize=512m | |
-XX:MaxNewSize=512m | |
-XX:PermSize=512m | |
-XX:MaxPermSize=512m | |
-XX:+UseParNewGC | |
-XX:ParallelGCThreads=4 | |
-XX:MaxTenuringThreshold=1 |
## Forked from https://gist.github.com/dersam/0ec781e8fe552521945671870344147b | |
## Also received help from https://twitter.com/gitkraken/status/691675309725368321 | |
## Open GitKraken using the current repo directory. | |
## This code is for fish shell. The same thing can be done in bash | |
## by creating an alias with the command below. | |
## `1>/dev/null` directs logs from the terminal | |
## `&` allows use of the same terminal instance to do other things |
$remoteport = bash.exe -c "ifconfig eth0 | grep 'inet '" | |
$found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}'; | |
if( $found ){ | |
$remoteport = $matches[0]; | |
} else{ | |
echo "The Script Exited, the ip address of WSL 2 cannot be found"; | |
exit; | |
} |
object ChatApp extends App { | |
implicit val system = ActorSystem("chat") | |
implicit val executor: ExecutionContextExecutor = system.dispatcher | |
implicit val materializer = ActorMaterializer() | |
val route = get { | |
pathEndOrSingleSlash { | |
handleWebSocketMessages(websocketFlow) | |
} |
// Define a very simple JSON AST | |
sealed trait Json | |
final case class JsObject(get: Map[String, Json]) extends Json | |
final case class JsString(get: String) extends Json | |
final case class JsNumber(get: Double) extends Json | |
case object JsNull extends Json | |
////////////////// Step 1 | |
// The "serialize to JSON" behaviour is encoded in this trait | |
trait JsonWriter[A] { |
GNOME's tracker is a CPU and privacy hog. There's a pretty good case as to why it's neither useful nor necessary here: http://lduros.net/posts/tracker-sucks-thanks-tracker/
After discovering it chowing 2 cores, I decided to go about disabling it.
Directories
#!/bin/bash | |
# Enter /opt folder (common folder for user installed programs) | |
# This script assumes you have proper permissions on /opt | |
cd /home/mengxin/Applications | |
# Download GitKraken | |
wget https://release.gitkraken.com/linux/gitkraken-amd64.tar.gz | |
# Extract the Kraken into /opt directory |