kubectl config set-credentials martin --client-certificate=/root/martin.crt --client-key=/root/martin.key
kubectl config set-context developer --cluster=kubernetes --user=martin
```bash | |
ln /home/bob/file1 /opt/file1 | |
ln -s /home/bob/file1 /opt/softlink | |
chown bob:bob file2 | |
chmod 764 file2 | |
chmod 4764 file2 | |
mkdir -p /opt/newdir | |
mv file3 /opt/newdir/ |
kubectl config set-credentials martin --client-certificate=/root/martin.crt --client-key=/root/martin.key
kubectl config set-context developer --cluster=kubernetes --user=martin
data "local_file" "key_pair" { | |
filename = "${path.module}/.ssh/ec2-connect-key.pub" | |
} | |
resource "aws_key_pair" "citadel-key" { | |
key_name = "citadel" | |
public_key = data.local_file.key_pair.content | |
} | |
resource "aws_instance" "citadel" { |
resource "docker_image" "php-httpd-image" { | |
name = "php-httpd:challenge" | |
build { | |
path = "lamp_stack/php_httpd" | |
tag = ["php-httpd:challenge"] | |
build_arg = { | |
foo : "zoo" | |
} | |
label = { | |
author : "niam" |
resource "kubernetes_deployment" "frontend" { | |
metadata { | |
name = "frontend" | |
labels = { | |
name = "frontend" | |
} | |
} | |
spec { | |
replicas = 4 | |
selector { |
from pynput.mouse import Button, Controller, Listener | |
import time | |
from threading import Thread | |
import multiprocessing | |
DEBUG = False | |
def debug_print(msg): | |
if DEBUG: | |
print(msg) |
package tugas.praktikum.soybeam; | |
import androidx.annotation.NonNull; | |
import androidx.appcompat.app.AlertDialog; | |
import androidx.appcompat.app.AppCompatActivity; | |
import android.content.DialogInterface; | |
import android.media.MediaPlayer; | |
import android.media.RingtoneManager; | |
import android.net.Uri; |
/** | |
* Author : Wahidun Niam F A | |
* Email : iam.wahidn@gmail.com | |
* Project : ATM on Dart | |
* Date : 10/11/2019 | |
*/ | |
import 'dart:convert'; | |
import 'dart:io'; |