Skip to content

Instantly share code, notes, and snippets.

View villeristi's full-sized avatar

Ville R. villeristi

View GitHub Profile
<!-- HTML for static distribution bundle build -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Swagger UI</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.6.1/swagger-ui.css" >
<style>
html

Keybase proof

I hereby claim:

  • I am villeristi on github.
  • I am villeristi (https://keybase.io/villeristi) on keybase.
  • I have a public key whose fingerprint is 6FB7 79E3 6CFF 88B9 DF89 C742 9E65 4599 F36C 77A9

To claim this, I am signing this object:

@villeristi
villeristi / oneliners.sh
Last active May 21, 2018 10:01
One-liners
#
# Copy remote compressed dir to local machine
#
ssh user@host "tar -cvf - /path/to/dir" | gzip > dir.tar.gz
#
# Export all WP-multisite sites
#
wp site list --field=domain --url=[YOURURLHERE] | xargs -i wp export --filename_format='{}.xml' --url={}
@villeristi
villeristi / backup_dbs.sh
Last active August 29, 2015 14:17
Backup DB's
#!/bin/bash
# Shell script to backup MySql database
# To backup Nysql databases file to /backup dir and later pick up by your
# script. You can skip few databases from backup too.
# For more info please see (Installation info):
# http://www.cyberciti.biz/nixcraft/vivek/blogger/2005/01/mysql-backup-script.html
# Last updated: Aug - 2005
# --------------------------------------------------------------------
# This is a free shell script under GNU GPL version 2.0 or above
# Copyright (C) 2004, 2005 nixCraft project