Skip to content

Instantly share code, notes, and snippets.

View lattice0's full-sized avatar
🦀

Lattice 0 lattice0

🦀
View GitHub Profile
@lattice0
lattice0 / explode-opvn.sh
Created July 22, 2019 22:24 — forked from dleonard00/explode-opvn.sh
extract the certificate and key from an .ovpn file
#!/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:
#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;
sudo apt install -y tigervnc-scraping-server
x0vncserver -display :0 -passwordfile ~/.vnc/passwd
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
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
@lattice0
lattice0 / lucaszanella.pub
Created March 3, 2020 01:17
lucaszanella public key
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
@lattice0
lattice0 / Dockerfile
Created April 22, 2020 23:40
opam + ocaml compiler dockerized
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
@lattice0
lattice0 / gist:203fce8c7f5e0acf2bf3120dac050822
Last active April 23, 2020 18:55
mitmproxy example docker
sudo docker run --name mitmweb --privileged --rm -p 9090:8080 -p 9091:8081 -v $PWD:/data johnmccabe/mitmweb -R https://httpbin.org
@lattice0
lattice0 / fix_permissions.sh
Last active May 11, 2021 16:45
fix permissions
sudo chmod -R u=rwX,g=rX,o=rX .
sudo chown -R $USER:$USER *
@lattice0
lattice0 / gist:6422a93c8e32cb255e4800c46f3146b9
Last active May 23, 2020 06:50
remound dev shm shared memory linux firefox fix
sudo mount -o remount,size=2g tmpfs /dev/shm