- All kubernetes nodes: set SELINUX to permissive mode
$ vi /etc/selinux/config
SELINUX=permissive
$ setenforce 0
| kubectl delete "$(kubectl api-resources --namespaced=true --verbs=delete -o name | tr "\n" "," | sed -e 's/,$//')" --all |
| # Kernel sysctl configuration file for Red Hat Linux | |
| # | |
| # For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and | |
| # sysctl.conf(5) for more details. | |
| # Turn on execshield | |
| # 0 completely disables ExecShield and Address Space Layout Randomization | |
| # 1 enables them ONLY if the application bits for these protections are set to “enable” | |
| # 2 enables them by default, except if the application bits are set to “disable” | |
| # 3 enables them always, whatever the application bits |
| #!/usr/bin/env python3 | |
| """ | |
| Very simple HTTP server in python for logging requests | |
| Usage:: | |
| ./server.py [<port>] | |
| """ | |
| from http.server import BaseHTTPRequestHandler, HTTPServer | |
| import logging | |
| class S(BaseHTTPRequestHandler): |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <parent> | |
| <groupId>io.plan.bofime</groupId> | |
| <artifactId>swim-common-parent</artifactId> | |
| <version>1.0-SNAPSHOT</version> | |
| </parent> |
| ;Disable and Enable Synaptics touchpad using Keyboard Shortcut on Windows 10 | |
| ;CTRL+F9 to enable the Synaptics Touchpad | |
| ^F9:: | |
| Run C:\Windows\System32\control.exe main.cpl ;Open Mouse Properties | |
| Sleep 1000 ;Wait one second | |
| if WinExist("Mouse Properties") { | |
| WinActivate ;Make Mouse Properties the active Window | |
| Send, ^+{TAB} ;Go to last tab | |
| Send, !E ;Alt+E to enable touchpad |
| select s.sql_text,s.sql_fulltext from v$sql s | |
| where sql_id in (SELECT A.SQL_ID FROM V$SESSION A,V$PROCESS B | |
| WHERE A.PADDR=B.ADDR AND B.SPID='6495') |
| package main | |
| import ( | |
| "bytes" | |
| "crypto/aes" | |
| "crypto/cipher" | |
| "crypto/rand" | |
| "errors" | |
| "io" | |
| "io/ioutil" |
| /* | |
| This function will help you to convert your object from struct to map[string]interface{} based on your JSON tag in your structs. | |
| Example how to use posted in sample_test.go file. | |
| */ | |
| func structToMap(item interface{}) map[string]interface{} { | |
| res := map[string]interface{}{} | |
| if item == nil { | |
| return res | |
| } |
There are some key values that the time.Parse is looking for.
By changing:
test, err := time.Parse("10/15/1983", "10/15/1983")to