Skip to content

Instantly share code, notes, and snippets.

View 0x15f's full-sized avatar
:shipit:
Shipping shit

Jake Casto 0x15f

:shipit:
Shipping shit
View GitHub Profile
@0x15f
0x15f / warmly.sh
Created May 28, 2019 17:25 — forked from thomasfr/warmly.sh
A wget based easy poor man`s cache warmer script
#!/bin/bash
# warmly.sh
# A wget based, easy, poor man`s cache warmer script
# https://gist.github.com/thomasfr/7926314
# The MIT License (MIT)
#
# Copyright (c) 2013,2014 Thomas Fritz <fritztho@gmail.com> (http://fritzthomas.com)
#
@0x15f
0x15f / AES-256 encryption and decryption in PHP and C#.md
Created March 21, 2018 02:07
AES-256 encryption and decryption in PHP and C#

AES-256 encryption and decryption in PHP and C#

Update: There is a more secure version available. Details

PHP

<?php

$plaintext = 'My secret message 1234';
#!/bin/bash
# Requirements: curl, sudo, tar, building tools
[ -z "${PREFIX}" ] && PREFIX=/usr/local
[ -w "${PREFIX}" ] || SUDO=sudo
set -e
mkdir -p work