This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apps/v1 | |
| kind: DaemonSet | |
| metadata: | |
| name: haveged | |
| labels: | |
| component: haveged | |
| spec: | |
| selector: | |
| matchLabels: | |
| name: haveged |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -ik \ | |
| -H "Authorization: Bearer $(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" \ | |
| https://kubernetes.default.svc.cluster.local/api/v1/namespaces/default/pods |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| try { | |
| byte[] secretBytes = "secretsecretsecr".getBytes(); | |
| Cipher c = Cipher.getInstance("AES"); | |
| SecretKeySpec k = | |
| new SecretKeySpec(secretBytes, "AES"); | |
| c.init(Cipher.ENCRYPT_MODE, k); | |
| byte[] encryptedData = c.doFinal("I am carl sagan.".getBytes()); | |
| encryptedData[3] = 7; | |
| c.init(Cipher.DECRYPT_MODE, k); | |
| byte[] data = c.doFinal(encryptedData); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [].concat(...[...document.querySelectorAll('*')].map(e=>[...e.classList])).filter((d,i,a)=>a.indexOf(d)==i).sort() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .directive('class', function() { | |
| return { | |
| restrict: 'A', | |
| link: function(scope, elem) { | |
| var observer = new MutationObserver(function(mutations) { | |
| try { | |
| observer.disconnect(); | |
| let e = mutations[0].target; | |
| e.classList.forEach((c) => { | |
| if (c.startsWith('ng-') || c.startsWith('text') || c.startsWith('pre-ep7-')) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| until nc -w 3 -z xdb 2014 ; do echo Waiting; sleep 5 ; done | |
| wget -T 1 -O/dev/null -q http://localhost:8080/health > /dev/null 2>&1 ; echo $? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| import * as vscode from 'vscode'; | |
| import * as k8s from 'vscode-kubernetes-tools-api'; | |
| class FileNode implements k8s.ClusterExplorerV1.Node { | |
| private name: string; | |
| constructor(name: string) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://docs.oracle.com/javase/10/security/java-secure-socket-extension-jsse-reference-guide.htm#JSSEC-GUID-93DEEE16-0B70-40E5-BBE7-55C3FD432345 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apply plugin: PrintTaskExecGraphPlugin | |
| import org.gradle.api.Plugin | |
| import org.gradle.api.Project | |
| import org.gradle.api.execution.TaskExecutionGraph | |
| import org.gradle.api.logging.Logger | |
| import org.gradle.api.logging.Logging | |
| import org.gradle.execution.plan.ExecutionPlan | |
| import org.gradle.execution.plan.TaskNode |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Ruler</title> | |
| <style> | |
| html,body { | |
| width: 100vw; | |
| height: 100vh; |