Skip to content

Instantly share code, notes, and snippets.

View tryallthethings's full-sized avatar

Stefan tryallthethings

View GitHub Profile
@tryallthethings
tryallthethings / install.php
Last active June 14, 2022 18:49 — forked from tschoffelen/install.php
A simple PHP script that automatically downloads and unzips the latest version of Wordpress in the current directory (./), so that I don't have to download it and upload it to my server through FTP manually.
<?php
echo '<pre>';
echo '<span style="color:blue">DOWNLOADING...</span>'.PHP_EOL;
// Download file
file_put_contents('wp.zip', file_get_contents('https://wordpress.org/latest.zip'));
$zip = new ZipArchive();
$res = $zip->open('wp.zip');
if ($res === TRUE) {
@tryallthethings
tryallthethings / setup-spencers-bash.sh
Last active January 3, 2020 17:02 — forked from spuder/setup-spencers-bash.sh
A script that pulls my bash profile from gists stored on github
#!/bin/bash
#Usage: Execute the following command:
<<COMMENT1
curl -L https://gist.github.com/tryallthethings/e78ec9084d11bcb489d54ada6827e86e/raw/ | bash -x
COMMENT1
@tryallthethings
tryallthethings / .bashrc
Last active June 20, 2021 00:53
.bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace