Skip to content

Instantly share code, notes, and snippets.

@weisk
weisk / mongo.js
Last active March 1, 2019 04:20
mongo stuff, aggregation framework
db.auth('admin', '9b2EpmkFtasdfas--wrxo-NVwZp');
const SERIAL = '3e84e930-b6af-11e8-a512-9d2b3d7cbb08';
const DESCRIPTION = 'PLC_1';
const NTAGS = 22;
const MAX_ROWS = 100;
const pipelineBefore = [
{ $match: { serial: SERIAL, description: DESCRIPTION } },
{ $group: { _id: "$date", name: { $first: "$name" }, count: { $sum: 1 }} },
@weisk
weisk / git.md
Created March 1, 2019 04:24
GIT GUD

Git

git remote add : git remote add syngular syngular.es:strategems.git

git pull --rebase upstream branch git pull --rebase origin develop vs. git merge upstream/branch

@weisk
weisk / keybase.md
Created September 13, 2019 00:50
keybase

Keybase proof

I hereby claim:

  • I am weisk on github.
  • I am weisk (https://keybase.io/weisk) on keybase.
  • I have a public key ASCAdZ4hPjZv0pTWuOe6ZrtzLEZlwQLUAYT9BRfDYB8LVQo

To claim this, I am signing this object:

@weisk
weisk / Dockerfile
Created October 2, 2019 03:36 — forked from armand1m/Dockerfile
Yarn cache compatible Dockerfile
FROM alpine
RUN apk add --update --no-cache nodejs
RUN npm i -g yarn
ADD package.json yarn.lock /tmp/
ADD .yarn-cache.tgz /
RUN cd /tmp && yarn
RUN mkdir -p /service && cd /service && ln -s /tmp/node_modules
@weisk
weisk / flexbox-madness.markdown
Created March 20, 2020 06:04
Flexbox Madness
@weisk
weisk / index.html
Created March 20, 2020 06:07
JQuery Brackets - Example
<!--
<span id="matchCallback"></span>
<div id="matches">
<div class="demo">
</div>
</div>
-->
<div id="matchesblank">
<div class="demo">
@weisk
weisk / flexbox-madness.markdown
Created March 20, 2020 06:33
Flexbox Madness
@weisk
weisk / .block
Created April 12, 2020 06:53 — forked from mbostock/.block
Circle Packing
license: gpl-3.0
height: 960
border: no
redirect: https://beta.observablehq.com/@mbostock/d3-circle-packing
An attacker can call following functions as an unauthenticated user.
TotalSoftPoll_Clone_Callback
TotalSoftPoll_Del_Callback
TotalSoftPoll_Edit_Callback
TotalSoftPoll_Edit_Q_M_Callback
TotalSoftPoll_Edit_Ans_Callback
TotalSoftPoll_Theme_Clone_Callback
TotalSoftPoll_Theme_Edit_Callback
TotalSoftPoll_Theme_Edit1_Callback
@weisk
weisk / Exploit-DB-Xfilesharing.txt
Created May 13, 2020 01:27 — forked from pak0s/Exploit-DB-Xfilesharing.txt
Xfilesharing <=2.5.1 Arbitrary File Upload and Local File Inclusion
# Exploit Title: Xfilesharing <=2.5.1 Arbitrary File Upload and Local File Inclusion
# Google Dork: inurl:/?op=registration
# Date: 14th Nov, 2019
# Exploit Author: Noman Riffat
# Vendor Homepage: https://sibsoft.net/xfilesharing.html
# Version: <=2.5.1
# CVE : CVE-2019-18951, CVE-2019-18952
#####################
Arbitrary File Upload