Skip to content

Instantly share code, notes, and snippets.

@null-dev
null-dev / index.php
Created June 19, 2017 23:51
1fichier.com direct link generator (PHP)
<?php
if(!isset($_GET['a'])) {
die('<form action="" method="get"><input type="text" name="a"/><input type="submit"/></form>');
}
$url = "https://1fichier.com/?" . urlencode($_GET['a']) . "?auth=1&inline";
stream_context_set_default(array(
'http' => array(
'method' => 'GET',
'header' => 'Authorization: Basic ' . '[BASE64 encoded login credentials. Format: "user:pass" (without quotes)]'
@deargle
deargle / client.conf
Last active April 3, 2025 18:13
OpenVPN server.conf and client.conf
##############################################
# Sample client-side OpenVPN 2.0 config file #
# for connecting to multi-client server. #
# #
# This configuration can be used by multiple #
# clients, however each client should have #
# its own cert and key files. #
# #
# On Windows, you might want to rename this #
# file so it has a .ovpn extension #
@ryanknights
ryanknights / clean-wordpress-install.sh
Created February 26, 2016 19:52
Clean Wordpress Install Bash Script
#!/bin/bash
WORDPRESS_URL="https://wordpress.org/latest.tar.gz"
# GET ALL USER INPUT
echo "Project folder name?"
read PROJECT_FOLDER_NAME
echo "Project Source Url (eg. /home/users/name/desktop/)?"
read PROJECT_SOURCE_URL
@rrosiek
rrosiek / install_mysql.sh
Last active February 28, 2025 18:55
Vagrant provision script for php, Apache, MySQL, phpMyAdmin, Laravel, and javascript helpers. Tested with Ubuntu 16.04.
#! /usr/bin/env bash
###
#
# install_mysql.sh
#
# This script assumes your Vagrantfile has been configured to map the root of
# your application to /vagrant and that your web root is the "public" folder
# (Laravel standard). Standard and error output is sent to
# /vagrant/vm_build.log during provisioning.