rm -rf .git
git init
git remote add origin https://url/account/repo
git fetch
git reset --hard origin/master
A WordPress code snippet to track conversions via a set cookie. | |
Trigger on: | |
http://sitename.com/?source=social |
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:
- https://gist.github.com/aozisik/a522e3b602daff6ae51f134aa949eec9#file-ubuntu-18-04-v8js-sh
- https://github.com/phpv8/v8js/wiki/Installing-on-CentOS-7-x64---PHP-7.3
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!
- install dnsmasq
$ 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
https://www.vogella.com/tutorials/GitSubmodules/article.html
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
<?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); |
Upon completion you will have a sane, productive Haskell environment adhering to best practices.
- 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.
sudo apt-get install libtinfo-dev libghc-zlib-dev libghc-zlib-bindings-dev
#!/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 |
#!/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 |