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
/** | |
* Sample plugin. | |
*/ | |
Draw.loadPlugin(function(ui) { | |
/** | |
* Overrides SVG export to add metadata for each cell. | |
*/ | |
var graphCreateSvgImageExport = Graph.prototype.createSvgImageExport; | |
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
#!/bin/bash | |
## pchrome.sh is a snippet to create various pentest profiles base on 1 single chrome profile. | |
## The new profiles will have the same Extension, extension setting as the base profile | |
# Bail if there is an error | |
set -e | |
# Uncomment line below if you want to see the command being run | |
# set -x |
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
#!/bin/bash | |
### Requirements: | |
### zbarimg, xclip, zenity, xvkbd | |
### pip: segno | |
set -e | |
## Require: xclip, zbarimg, zenity | |
function pbcopy { | |
xclip -selection clipboard $1 | |
} |
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
## This used to be the way I deploy ... | |
## aws --profile=san-study s3 cp ./public/ s3://jeremyandjames/ --recursive | |
## Now I use this simple script to increamentally update a hugo site on s3 bucket. It is a whole lot faster and take less bandwidth ;) | |
## Note that the change base on size of the file, not hash because it's quicker to just get the size :p | |
## Uncomment aws copy and remove command to start using it ;) | |
#!/bin/bash | |
set -e | |
function finish { |
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
## Put this function inside .bashrc for a good time ;) | |
export NOTE="$HOME/terminalnotes.md" | |
function tnote() { | |
## Append what we have first | |
history -a | |
## Traping CTRL+C to return to terminal | |
trap 'return' SIGINT | |
CHOICE=18 ## Set default choice to the command before calling tnote | |
while true | |
do |
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
import json | |
import argparse | |
import re | |
parser = argparse.ArgumentParser() | |
parser.add_argument("file").required | |
args=parser.parse_args() | |
typemap={ |
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
FROM node:latest | |
RUN apt update | |
RUN apt install -y mongodb net-tools vim | |
RUN git clone --depth 1 https://github.com/Kaetram/Kaetram-Open /app | |
# COPY . /app | |
WORKDIR /app | |
RUN cp /app/packages/server/.env-dist /app/packages/server/.env | |
RUN cp /app/packages/client/.env.defaults /app/packages/client/.env | |
RUN sed -i "/^ *port: 9000/i host: '0.0.0.0'," /app/packages/client/webpack.config.ts | |
RUN yarn install |
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
#!/bin/bash | |
# Requirement: | |
# Linux: xdotool + convert(imagemagik) + flameshot | |
# Mac: xdotool + imagemagick | |
# Print out each commands and bail if there is an error | |
set -ex | |
CODELOC=$HOME/.sanscreenie | |
SCRLOC="$CODELOC/screenshots" |
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
docker.vm:80 172.17.0.1 - - [11/Jul/2019:14:10:53 +0000] "POST /index.php HTTP/1.1" 200 900 "http://justsomefakelog.com/index.php" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36" | |
[httpd:access] localhost:80 172.17.0.1 - - [11/Jul/2019:14:10:53 +0000] "POST /index.php HTTP/1.1" 200 bytesIn:715 bytesOut:900 reqTime:0 | |
[php-fpm:access] 127.0.0.1 - 11/Jul/2019:14:11:19 +0000 "POST /index.php" 200 /app/index.php 12.317 2048 0.00% | |
docker.vm:80 172.17.0.1 - - [11/Jul/2019:14:11:19 +0000] "POST /index.php HTTP/1.1" 200 926 "http://justsomefakelog.com/index.php" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36" | |
[httpd:access] localhost:80 172.17.0.1 - - [11/Jul/2019:14:11:19 +0000] "POST /index.php HTTP/1.1" 200 bytesIn:715 bytesOut:926 reqTime:0 | |
[php-fpm:access] 127.0.0.1 - 11/Jul/2019:14:11:27 +0000 "POST /index.php" 200 /app/index.php 14.809 2048 0.00% | |
docker.vm:80 1 |
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
FROM ubuntu:20.04 | |
RUN apt update | |
ENV DEBIAN_FRONTEND="noninteractive" | |
RUN apt-get install -y libgl1-mesa-dev xorg-dev | |
RUN apt install -y libxi-dev | |
RUN apt install -y libxinerama-dev | |
RUN apt install -y libxcursor-dev | |
RUN apt install -y libx11-dev | |
RUN apt install -y libglfw3-dev | |
RUN apt-get install -y gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 |