Docker playground: https://labs.play-with-docker.com/
Kubernetes playground: https://labs.play-with-k8s.com/
Kubernetes Cheat Sheet: https://kubernetes.io/docs/reference/kubectl/cheatsheet/
hostname
unshare -u bash
hostname testhost
hostname
unshare -u bash
hostname testhost
#r "System.Net.Http" | |
using System.Net.Http; | |
using System.Text; | |
using Newtonsoft.Json.Linq; | |
// You need to signin to https://platform.openai.com/ and create an API key for your profile then paste that key | |
// into the apiKey constant below | |
const string apiKey = "<YOUR API KEY HERE>"; | |
const string uri = "https://api.openai.com/v1/completions"; | |
const string question = "Explain the following calculation in a few sentences in simple business terms without using DAX function names:\n\n"; |
mv -v ~/Library/Application\ Support/.ffuserdata ~/.Trash |
#!/bin/bash | |
if [[ $# -ne 2 ]]; then | |
cat >&2 <<EOF | |
Transplant a branch from one root to another. | |
Handy if you've done a squash-merge and need to rebase <from> the old branch <onto> the new master. | |
Usage: | |
git transplant <from> <to> | |
where: |
public class ParkingCarAgent : Agent | |
{ | |
[SerializeField] | |
private Transform TargetParkingSpot; | |
[SerializeField] | |
// = Reward every 'interval' units getting closer | |
private float DistanceRewardInterval = 3f; | |
// Thresholds defining when the task is complete |
// ==UserScript== | |
// @name Remove Legitimacy From Medium | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Medium.com frames everyone's opinions in a way that gives them legitimacy in the subconscious. In reality, they are no more than blog posts. This script serves to strip any form of nice styling or legitimacy from Medium posts, and encourage critical thinking. | |
// @author Jake Funke | |
// @match medium.com/* | |
// @include https://*.medium.com/* | |
// @grant GM_addStyle | |
// @run-at document-idle |
for 4.2.4 or higher, 4.2.5,4.2.6,4.3.7, it's works, this is the way which makes Always in evaluation mode.
Terminal
, go to the dir : cd /Applications/Beyond Compare.app/Contents/MacOS
BCompare
to BCompare.bak
: mv BCompare BCompare.bak
BCompare
, and chmod a+ux BCompare
: touch BCompare && chmod a+ux BCompare
BCompare
with text editor, insert the script :#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@
#!/usr/bin/env bash | |
# inspired by | |
# https://gist.github.com/JannikArndt/feb720c1f5d210b4820b880af23f2a07 | |
# which was inspired by | |
# https://github.com/fwartner/mac-cleanup/blob/master/cleanup.sh | |
# https://gist.github.com/jamesrampton/4503412 | |
# https://github.com/mengfeng/clean-my-mac/blob/master/clean_my_mac.sh | |
# https://github.com/szymonkaliski/Dotfiles/blob/master/Scripts/clean-my-mac | |
# http://brettterpstra.com/2015/10/27/vacuuming-mail-dot-app-on-el-capitan/ / https://github.com/pbihq/tools/blob/master/MailDBOptimiser.sh |
import UIKit | |
import SafariServices | |
class ViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
} | |
BEGIN TRANSACTION; | |
CREATE TABLE thirukkural ( | |
`Number` INT, | |
`Line1` VARCHAR(50) , | |
`Line2` VARCHAR(34) , | |
`Translation` VARCHAR(364) , | |
`mv` VARCHAR(158), | |
`sp` VARCHAR(436) , | |
`mk` VARCHAR(362) , | |
`explanation` VARCHAR(210), |