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 golang:1.19-alpine | |
WORKDIR /src | |
COPY go.mod ./ | |
COPY go.sum ./ | |
COPY main.go ./ | |
RUN go build -o /gen-span | |
ENV OTEL_SERVICE_NAME=gen-span |
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
$ export AZURE_STORAGE_CONNECTION_STRING="COPY/PASTE FROM PORTAL" | |
$ cat file-with-an-array.json | jq -c '.[]' | xargs -n1 az storage message put -q "$QUEUE" --content |
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
function c2Bot(){ | |
var self = this, | |
spells = {}, | |
potions = [], | |
mouseUpEvent = new MouseEvent("mouseup", { | |
bubbles: true, | |
cancelable: true, | |
view: window | |
}) | |
; |
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
#!/bin/sh | |
sudo aptitude install pkg-config libssh2-1-dev libhttp-parser-dev libssl-dev libz-dev | |
wget https://github.com/libgit2/libgit2/archive/v0.22.0.tar.gz | |
tar xzf v0.22.0.tar.gz | |
cd libgit2-0.22.0/ | |
cmake . | |
make | |
sudo make install | |
sudo pip install pygit2 |
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
<!DOCTYPE html> | |
<html lang="en"><head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<meta name="robots" content="NONE,NOARCHIVE"> | |
<title>NoReverseMatch at /status</title> | |
<style type="text/css"> | |
html * { padding:0; margin:0; } | |
body * { padding:10px 20px; } | |
body * * { padding:0; } | |
body { font:small sans-serif; } |
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
angular.module('my-app') | |
/** | |
* adds a glyphicon to the beginning or end of the element. | |
* | |
* usage: `<whatever my-glyphicon="heart">...</whatever>` | |
* | |
* add attribute `icon-position="after"` to put the icon at the end of | |
* the body. | |
*/ | |
.directive('myGlyphicon', function() { |
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
<div> | |
<pre>{{vm.ngModel|json}}</pre> | |
<button ng-click="vm.save()" ng-disabled="vm.saving">Save</button> | |
</div> |
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
DECLARE @x money, @t money | |
SET @x = 15062.53 | |
SET @t = 51679.61 | |
SELECT | |
15062.53/51679.61, | |
-- 0.2914598233 | |
@x / @t, |
NewerOlder