Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
set -xe
sudo apt update -y
sudo apt install gcc openssl zlib1g libz-dev libssl-dev build-essential mlocate autoconf -y
wget https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.8p1.tar.gz
tar zxvf openssh-8.8p1.tar.gz
cd openssh-8.8p1 && ./configure && make && sudo make install
@wojcikm
wojcikm / OpenSSH Update Script - Amazon Linux 2
Last active September 30, 2021 18:19 — forked from roommen/OpenSSH Update Script - Amazon Linux 2
OpenSSH Update Script - Amazon Linux 2
#!/bin/bash
set -xe
sudo yum update -y
sudo yum install gcc openssl-devel zlib-devel mlocate autoconf -y
wget https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.8p1.tar.gz
tar zxvf openssh-8.8p1.tar.gz
cd openssh-8.8p1 && ./configure && make && sudo make install
server {
listen 80 default;
server_name _;
root /application/public;
index index.php index.html index.htm;
#index index.php;
client_max_body_size 108M;
access_log /dev/stdout;
location ^~ /biz {
@wojcikm
wojcikm / pesele.cs
Created September 9, 2020 06:56 — forked from tomekziel/pesele.cs
Program w języku C# do seryjnego generowania numerów PESEL
using System;
using System.Diagnostics;
using System.IO;
// https://informatykzakladowy.pl
//
// material dodatkowy do tekstu o szyfrowaniu dokumentow z mBanku
// 2020.09.07
//
// public domain
@wojcikm
wojcikm / helpful-docker-commands.sh
Created May 2, 2020 12:35 — forked from garystafford/helpful-docker-commands.sh
My list of helpful docker commands
###############################################################################
# Helpful Docker commands and code snippets
###############################################################################
### CONTAINERS ###
docker stop $(docker ps -a -q) #stop ALL containers
docker rm -f $(docker ps -a -q) # remove ALL containers
docker rm -f $(sudo docker ps --before="container_id_here" -q) # can also filter
# exec into container
@wojcikm
wojcikm / 0_reuse_code.js
Created March 25, 2017 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console