Skip to content

Instantly share code, notes, and snippets.

change .. <widget id="com.ionicframework.cfbuilder125314" version="0.0.2" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
to an updated number for value (incremented), very very imporant or
-- your shit will be broke if u didnt do above --
cordova build --release android
important, that -x- behind aliast_name needs to be unique, so if you made an alias_name1 ... make it alias_name2
keytool -genkey -v -keystore my-release-key.keystore -alias alias_name-x- -keyalg RSA -keysize 2048 -validity 10000
important .. nothing needs to be changed here at all if everything is ok
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore C:\cfbuilder\platforms\android\ant-build\MainActivity-release-unsigned.apk alias_name
the one after new is your revision
zipalign -v 4 C:\cfbuilder\platforms\android\ant-build\MainActivity-release-unsigned.apk New1.apk
@adowning
adowning / gist:65ae86e93a613a67119e
Last active February 12, 2016 20:41
webstorm live templates
clog
console.log('$PARAM$ ' + $END$);
fbget
var ref = new Firebase(FURL + 'jobs');
ref.once("value", function (snapshot) {
snapshot.forEach(function (childSnapshot) {
var key = childSnapshot.key();
var childData = childSnapshot.val();
if (json.items[0].orderNumber == childData.orderNumber) {
<template>
<div class="columns">
<ul>
<li v-for="lane in lanes">
<div class="column is-narrow" style="background-color: lightgrey; border: 1px; border-style: solid; border-color: black; margin-right: 10px;">
<section class="hero is-primary" style="margin-bottom: 12px;">
<h1 class="title" style="text-align: left; color: black; padding: 3px; background-color: lightgrey;">
<b>{{lane.name}}</b>
</h1>
</section>
@adowning
adowning / install.sh
Created December 14, 2017 22:56 — forked from meSingh/install.sh
Lemp stack for Ubuntu 16.04 (PHP7, Nginx, MongoDB, Git, Composer(with asset plugin))
#!/bin/bash
echo "Please, enter your username, it will be added to 'sudo' and 'docker' groups during the process."
read USERNAME
if [ -z "$USERNAME" ] ; then
echo "Exiting... Done."
exit
else
echo "Adding user to 'sudo' group..."
@adowning
adowning / install.sh
Last active July 9, 2021 19:44 — forked from insane-dev/install.sh
Lemp stack for Ubuntu 16.04 (PHP7, Nginx, MySql, MongoDB, PhpMyAdmin, Git, Node.js, Bower, Gulp, Docker, Composer(with asset plugin), Dnsmasq)
#
#
#
#
#!/bin/bash
#mkdir -p /root/.ssh
#chmod 600 /root/.ssh
#chmod 700 /root/.ssh/authorized_keys
@adowning
adowning / install-mongo.sh
Created December 15, 2017 11:47 — forked from rodrigo-galba/install-mongo.sh
Ubuntu 16: MongoDB install
#!/bin/bash -x
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
sudo apt update
sudo apt install -y mongodb-org
sudo systemctl enable mongod
sudo vim /etc/mongod.conf
-- change access config if necessary
sudo systemctl start mongod
@adowning
adowning / install-mongo.sh
Created December 15, 2017 11:47 — forked from rodrigo-galba/install-mongo.sh
Ubuntu 16: MongoDB install
#!/bin/bash -x
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
sudo apt update
sudo apt install -y mongodb-org
sudo systemctl enable mongod
sudo vim /etc/mongod.conf
-- change access config if necessary
sudo systemctl start mongod
[
{
"id": "1a3a14de.d6226b",
"type": "tab",
"label": "API Services",
"disabled": false,
"info": ""
},
{
"id": "d81c3475.a97e98",
docker run -t -i --net="bridge" -p 1883:1883/tcp -p 9001:9001 -v /mnt/cache/app_config/mqtt/:/config spants/mqtt
docker run -d -p 9000:9000 --restart always --name=portainer -v /var/run/docker.sock:/var/run/docker.sock -v /opt/portainer:/data portainer/portainer --no-auth