Skip to content

Instantly share code, notes, and snippets.

@juandavilau
juandavilau / Get-ServiceCredential.ps1
Created December 8, 2019 00:00 — forked from jborean93/Get-ServiceCredential.ps1
Get's the username and password for installed Windows services
# Copyright: (c) 2019, Jordan Borean (@jborean93) <jborean93@gmail.com>
# MIT License (see LICENSE or https://opensource.org/licenses/MIT)
Function Get-ServiceCredential {
<#
.SYNOPSIS
Retrieve the username and plaintext password for all servers installed on the local computer.
.DESCRIPTION
Will retrieve the username and plaintext password for the service(s) specified. This must be run as an
#!/usr/bin/env python
"""Script that I keep in a Git repository along with my dotfiles. In the
repository, the files don't have the dot prefix so I can see them more easily.
Running the script symlinks all the files to ~/.<filename>, checking allowing
you to cancel if the file exists.
"""
import os
import glob
@juandavilau
juandavilau / 20-xdebug.ini
Created February 6, 2018 17:13
vsconde Laravel homestead PHP Debug config
;/etc/php/7.1/cli/conf.d/20-xdebug.ini
zend_extension=xdebug.so
xdebug.remote_enable=1
xdebug.remote_connect_back=1
xdebug.remote_port=9000
xdebug.max_nesting_level=512
xdebug.remote_autostart = 1
@juandavilau
juandavilau / install_wp.sh
Created March 14, 2017 12:55 — forked from sureshdsk/install_wp.sh
Wordpress: Bash Install Script -- Downloads latest WP version, updates wp-config with user supplied DB name, username and password, creates and CHMOD's uploads dir, copies all the files into the root dir you run the script from, then deletes itself!
#!/bin/bash -e
clear
echo "============================================"
echo "WordPress Install Script"
echo "============================================"
echo "Database Name: "
read -e dbname
echo "Table prefix: "
read -e tableprefix
echo "Database User: "