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
// This will put a csv version of an aliexpress cart into your clipboard (to be pasted and saved manually). | |
// Run this from chrome dev tools - you might need to tweak some of the search replaces for your currency | |
copy(['url, name, sku, qty, price, shipping', ...$$('.cart-product').map((cp) => [ | |
$$('a', cp)[0].href, | |
$$('.cart-product-name', cp)[0].innerText.replace(',', '-'), | |
$$('.cart-product-sku', cp)[0]?.innerText || '', | |
$$('input.comet-input-number-input', cp)[0].value, | |
$$('.cart-product-price', cp)[0].innerText.replace('C$', ''), |
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
[Unit] | |
Description=Atlas SAPI Proxy | |
Wants=network-online.target | |
After=network-online.target atlas-sapi.service | |
[Service] | |
WorkingDirectory=/apps/searchapi/sapiproxy | |
User=atlasq | |
Group=atlasq |
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
[Unit] | |
Description=Atlas Admin API | |
Wants=network-online.target | |
After=network-online.target | |
[Service] | |
WorkingDirectory=/apps/searchapi/adminapi | |
User=atlasq | |
Group=atlasq |
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
[Unit] | |
Description=Atlas SAPI | |
Wants=network-online.target | |
After=network-online.target atlas-admin-api.service | |
[Service] | |
WorkingDirectory=/apps/searchapi/sapi | |
User=atlasq | |
Group=atlasq |
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
[Unit] | |
Description=Elasticsearch | |
Documentation=http://www.elastic.co | |
Wants=network-online.target | |
After=network-online.target | |
[Service] | |
RuntimeDirectory=elasticsearch | |
PrivateTmp=true | |
Type=forking |
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
{ | |
"kind": "Template", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "info", | |
"annotations": { | |
"description": "An example Rails application with a PostgreSQL database", | |
"tags": "instant-app,ruby,rails,postgresql", | |
"iconClass": "icon-ruby" | |
} |
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 | |
git push -u origin `git rev-parse --abbrev-ref HEAD` |
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
var toxy = require('toxy') | |
var poisons = toxy.poisons | |
var rules = toxy.rules | |
// Create a new toxy proxy | |
var proxy = toxy() | |
// Default server to forward incoming traffic | |
proxy | |
.forward('https://foo.bar/') |
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
var libxmljs = require("libxmljs"); | |
var fs = require("fs"); | |
var striptags = require('striptags'); | |
var elasticsearch = require('elasticsearch'); | |
var rawXml = fs.readFileSync("data/frag.xml"); | |
var doc = libxmljs.parseXml(rawXml); | |
var es = new elasticsearch.Client({ | |
host: 'localhost:9200', |
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
angular.module('thing', ['ionic']) | |
.config(function($stateProvider, $urlRouterProvider) { | |
$stateProvider | |
.state('login', { | |
url: "/login", | |
templateUrl: "views/login.html", | |
controller: "LoginCtrl" | |
}); | |
}) |
NewerOlder