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 | |
| # This script will extract the certificate and key from an .ovpn file | |
| # into their own files, which makes it possible to use them to configure | |
| # the VPN using Ubuntu's network manager | |
| # Usage example: | |
| # >> ovpnconvert username.dev.ovpn | |
| # You can keep following these instructions here: |
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
| #include "openvpn/transport/tcplink.hpp" | |
| #include "openvpn/transport/client/tcpcli.hpp" | |
| //Initiate this config struct: | |
| struct Config | |
| { | |
| std::string gui_version; | |
| std::string sso_methods; | |
| std::string server_override; | |
| std::string port_override; |
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
| sudo apt install -y tigervnc-scraping-server | |
| x0vncserver -display :0 -passwordfile ~/.vnc/passwd |
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
| ssh -L 5901:localhost:5900 [email protected] | |
| socat TCP-LISTEN:2222,fork TCP:192.168.122.90:2222 | |
| git remote set-url origin ssh://[email protected]:2222/git-server/repos/orwell/.git | |
| sudo route add 192.168.0.118 gw 192.168.255.5 tun0 | |
| x0vncserver -display :0 -passwordfile ~/.vnc/passwd | |
| // | |
| sudo /usr/sbin/NetworkManager | |
| gnome-control-center |
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
| sudo apt update && sudo apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common && curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add - && sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" && sudo apt update && sudo apt install docker-ce | |
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
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC6G0JNLfC+XvFrT/M6Br2tj7Zk9RxcIvM4vjpvzTqlqzHzE+TDZX+yQrwFUE/ghApIQ8cnxhPnY55qqzix5iKsrO7Gjhk+eDCimC7VWrl9Wh/RZCEr4TKe5mZkM4+ovLaEiuT7ly+rDMmXOny6OTQg30qT1OS4aDXGzSZyMS2AKstyN08h++vg3bKFmppFtT+l2reZ28cHTht7Flt4gKLLVl7CNmhU9KdHID/1Vs8kzgYkkJWd7aGtWtCzLQerTAPA9CSKIl1w9Mi1OcoAv0zShRw7tMhDumjeKah1k3VDgQj0DITczsgszrRqlsco1mzkxvVqmh7bROmz4mkv9anBjZcXoXrMQYBGD1ghsZ1gVnN2CKHzYuP0NPuuinTySWbeK0dONjd0SJH8YrDTy6KvD6YQ8wEX+9ZK3yv7+Q5pFehlhqGKjbtJaLiOBeBGaZTw+HVcC+pRxJn3ieK6wiPThABcSHXDiTuVUFGBJr9MjWdqvS28PbrasXMCVE61iA2ukTEf5Vc5aJm6XlJWpK6bULRvbO+CWvKxFZJMntVD4nBwOkj1p7z3BGMIEqynxxGAZZ+vwpeg/oZwhjSc9TDNxsPLE6Qfy2d0sjgVen3yZ1yUde25WRZVX+mKKpzoTD/eHfsM9jRe0mcEw5288rmc2eY+9DHh9mbCu5QaCY2H7Q== cardno:000607272642 |
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:bionic | |
| WORKDIR /home/project | |
| RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -y curl unzip patch bubblewrap build-essential | |
| #RUN curl -sL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh -o get-ocaml.sh\ | |
| # && sh get-ocaml.sh | |
| COPY ./get-ocaml.sh /home/project/get-ocaml.sh |
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
| sudo docker run --name mitmweb --privileged --rm -p 9090:8080 -p 9091:8081 -v $PWD:/data johnmccabe/mitmweb -R https://httpbin.org |
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
| sudo chmod -R u=rwX,g=rX,o=rX . | |
| sudo chown -R $USER:$USER * |
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
| sudo mount -o remount,size=2g tmpfs /dev/shm |