This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Paste in console | |
var getThings = function(){ | |
var divs = [...document.querySelectorAll("#manufacture__container > div")] | |
var things = divs.map(function(e){ | |
var result = {e}; | |
var spans = [...e.getElementsByTagName("span")] | |
spans.map(function(s){ | |
var str = s.innerText.replace(/[^/.0-9]/g, ''); | |
var a = str.split("/"); | |
var num = +a[0]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function (ExtendedUserModel) { | |
ExtendedUserModel.afterRemote('create', function(context, user, next) { | |
createDriver(user) | |
.then(createCustomer(user) | |
.then(sendVerificationEmail(user) | |
.then( () => next()))); | |
function createDriver(user) { | |
if (user.realm==="driver") { | |
return user.driver.create({Licensed: true}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function (ExtendedUserModel) { | |
ExtendedUserModel.afterRemote('create', function(context, user, next) { | |
sendVerificationEmail(user).then( () => next()); | |
function sendVerificationEmail(user) { | |
var options = { | |
type: 'mailgunEmail', | |
to: user.email, | |
from: 'noreply@mailGun.com', | |
subject: 'Thanks for registering.', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DIST_DEPS=0 | |
CENTOS_DEPS=0 | |
GCONF_COMPILE=0 | |
GCONF_INSTALL=0 | |
PIXBUF_INSTALL=0 | |
PIXBUF_COMPILE=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo 'Starting automated Ombi Migration' | |
echo 'Downloading...', | |
cd /tmp/ | |
apt-get -y install libunwind8 | |
mkdir /opt/ombi | |
wget https://ci.appveyor.com/api/buildjobs/e9gylkx5j5ty8jty/artifacts/linux.tar.gz | |
echo '\t [Done]' | |
echo 'Extracting...', | |
tar xvzf linux.tar.gz -C /opt/ombi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* PHP IMDb.com Grabber | |
* | |
* This PHP library enables you to scrap data from IMDB.com. | |
* | |
* | |
* If you want to thank me for this library, please buy me something at Amazon: | |
* https://www.amazon.de/gp/registry/wishlist/8840JITISN9L/ - thank you in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
apt-get update -y | |
apt-get install default-jdk -y | |
apt-get install git -y | |
wget http://mirror.cc.columbia.edu/pub/software/apache/spark/spark-2.2.1/spark-2.2.1-bin-hadoop2.7.tgz | |
mkdir /usr/local/share/spark | |
tar xvfz spark-2.2.1-bin-hadoop2.7.tgz -C /usr/local/share/spark | |
cd /usr/local/share/spark |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo 'Starting automated Ombi Migration' | |
echo 'Downloading...', | |
cd /tmp/ | |
apt-get -y install libunwind8 | |
mkdir /opt/ombi | |
wget https://ci.appveyor.com/api/buildjobs/ucvh6jksnjkgs54h/artifacts/linux.tar.gz | |
echo '\t [Done]' | |
echo 'Extracting...', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deploy-app: | |
type: deploy | |
environment: ionic-deployment | |
only: | |
- development | |
- master | |
- production | |
when: manual | |
script: | |
## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
while [[ $count -ne 0 ]] ; do | |
ping -c 1 8.8.8.8 | |
rc=$? | |
if [[ $rc -eq 0 ]] ; then | |
connection = 'true' | |
((count = 1)) | |
fi | |
((count = count - 1)) | |
done |
OlderNewer