Skip to content

Instantly share code, notes, and snippets.

@yo-mike
yo-mike / rescue-copy.sh
Created July 18, 2023 19:09
Rescue copy your LiquidWeb cloud block storage files to a local disk
#!/bin/bash
# specify source and destination directories
src="/mnt/sbs/somepath/uploads/2023"
dest="uploads"
failed="failed-copy.txt"
# find all files in source directory
find "$src" -type f | while read -r file; do
# get path to destination file
@yo-mike
yo-mike / rescue-copy.sh
Created July 18, 2023 19:07
Rescue copy your cloud block storage files from Liquid Web to a Local disk
#!/bin/bash
# specify source and destination directories
src="/mnt/sbs/somepath/uploads/2023"
dest="uploads"
failed="failed-copy.txt"
# find all files in source directory
find "$src" -type f | while read -r file; do
# get path to destination file

Haskell, Stack and Intellij IDEA IDE setup tutorial how to get started

Upon completion you will have a sane, productive Haskell environment adhering to best practices.

Basics

  • Haskell is a programming language.
  • Stack is tool for Haskell projects. (similar tools for other languages include Maven, Gradle, npm, RubyGems etc)
  • Intellij IDEA IDE is a popular IDE.

Install required libraries

sudo apt-get install libtinfo-dev libghc-zlib-dev libghc-zlib-bindings-dev

@yo-mike
yo-mike / git-branching.md
Created November 8, 2021 20:02 — forked from digitaljhelms/gist:4287848
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch
<?php
require_once(ROOT . '/tbs/tbs_class.php');
require_once(ROOT . '/tbs/tbs_plugin_opentbs.php');
class Documentmerger
{
function mergeDocument($template = '', $data = [], $file = '')
{
$TBS = new clsTinyButStrong;
$TBS->Plugin(TBS_INSTALL, OPENTBS_PLUGIN);
@yo-mike
yo-mike / git-submodules.md
Last active April 23, 2020 17:51
Working with Git Submodules

https://www.vogella.com/tutorials/GitSubmodules/article.html

Cloning a repository that contains submodules

git clone https://github.com/bytelaunch/xxx.git --recursive

If you already have cloned a repository and now want to load it’s submodules you have to use submodule update.

git submodule update --init
@yo-mike
yo-mike / dnsmasq_setup_osx.md
Created March 23, 2020 17:19 — forked from eloypnd/dnsmasq_setup_osx.md
wildcard DNS record on OS X in localhost development with dnsmasq

wildcard DNS in localhost development

$ brew install dnsmasq
   ...
$ cp /usr/local/opt/dnsmasq/dnsmasq.conf.example /usr/local/etc/dnsmasq.conf
  • edit /usr/local/etc/dnsmasq.conf
address=/local/127.0.0.1

Installing v8 and v8js on Ubuntu 18.04.md

I completed the installation on September 19, 2019. I tried a few different tutorials and linux distros, ultimately I was successful on Ubuntu 18.04 from Digital Ocean.

The following guides got me started:

I was able to complete the install by taking a little bit from each tutorial. For the sake of brevity, I'll copy and paste below exactly what worked for me. A big thank you to the original authors!

@yo-mike
yo-mike / gist.md
Last active March 17, 2017 22:51
Cloning remote repository out into an existing directory, overwriting local changes.
rm -rf .git
git init
git remote add origin https://url/account/repo
git fetch
git reset --hard origin/master
@yo-mike
yo-mike / WooCommerce Conditional Goal Tracking
Last active March 3, 2017 05:21
WooCommerce Conditional Goal Tracking
A WordPress code snippet to track conversions via a set cookie.
Trigger on:
http://sitename.com/?source=social