This file contains 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
choco upgrade all -y |
This file contains 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
# Assuming $output contains the result of 'choco list -i' | |
$output = choco list -i | |
# Split the output into lines | |
$lines = $output -split "`n" | |
# Find the index of the phrase "packages installed." | |
$startIndex = [Array]::IndexOf($lines, ($lines | Where-Object { $_ -match "packages installed\.$" })) | |
# Find the index of the phrase "applications not managed with Chocolatey." |
This file contains 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
/* | |
* Globals | |
*/ | |
/* Links */ | |
a, | |
a:focus, | |
a:hover { | |
color: #fff; | |
} |
This file contains 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
echo https://lotussoulstudios.com | faas-cli invoke openfaas-imagecrawler | jq .. > urls.txt | |
input="./urls.txt" | |
while IFS= read -r line | |
do | |
line="${line%\"}" | |
line="${line#\"}" | |
echo $line | faas-cli invoke openfaas-exif | jq | |
done < $input |
This file contains 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
#from https://repl.it/@meesh/BASIC-interpreter-in-Python | |
program = ''' | |
10 REM POWER TABLE | |
11 DATA 8, 4 | |
15 READ N0, P0 | |
20 PRINT "N", | |
25 FOR P = 2 to P0 | |
30 PRINT "N ^" P, | |
35 NEXT P |
This file contains 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: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
annotations: | |
deployment.kubernetes.io/revision: "1" | |
creationTimestamp: "2019-09-22T22:59:28Z" | |
generation: 1 | |
labels: | |
app: fn | |
name: fn |
This file contains 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: v1 | |
kind: ServiceAccount | |
metadata: | |
name: eks-admin | |
namespace: kube-system | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
kind: ClusterRoleBinding | |
metadata: | |
name: eks-admin |
This file contains 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
package main | |
import ( | |
"bufio" | |
"bytes" | |
"fmt" | |
"gopkg.in/auyer/steganography.v2" | |
"image" | |
"os" | |
) |
This file contains 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
package main | |
import ( | |
"bufio" | |
"bytes" | |
"fmt" | |
"gopkg.in/auyer/steganography.v2" | |
"image" | |
"os" | |
) |
This file contains 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
var lineArray = []; | |
rankData.forEach(function (infoArray, index) { | |
infoArray = infoArray.map( (info) => { | |
if( typeof info === "string" ) | |
return info.replace(/,/g, "").replace(/\$/g, ""); | |
else | |
return info; | |
}); | |
var line = infoArray.join(","); | |
lineArray.push(line); |
NewerOlder