Skip to content

Instantly share code, notes, and snippets.

View kbariotis's full-sized avatar
🌏

Kostas Bariotis kbariotis

🌏
View GitHub Profile
@kbariotis
kbariotis / main.yaml
Last active November 27, 2023 21:02
Ansible playbook for deploying a Node.js app to DigitalOcean
- name: DO
hosts: localhost
vars:
project_name: "PUT A NAME FOR YOUR PROJECT HERE"
do_token: "PUT YOUR DIGITAL OCEAN API KEY HERE ==> https://cloud.digitalocean.com/settings/api/tokens"
repository: "PUT YOUR REPOSITORY URL HERE"
tasks:
- name: LOCAL | Generate SSH key
shell: ssh-keygen -b 2048 -t rsa -f ~/.ssh/{{project_name}} -q -N ""
@kbariotis
kbariotis / nginx.conf
Created February 4, 2016 21:25 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@kbariotis
kbariotis / sync.js
Created July 15, 2017 06:35
Sync a DynamoDB table with ES Service
const AWS = require('aws-sdk');
const logger = require('./../lib/logger');
const docClient = new AWS.DynamoDB.DocumentClient();
const lambda = new AWS.Lambda();
/**
* Sync the whole DynamodDB Requests table
* with ES Service. Iterates the table by 1mb batches.
*
@kbariotis
kbariotis / magedump.php
Created June 29, 2014 19:56
quick and dirt PHP script to dump/restore Magento DB and change Domain
<?php
/* IGNORE_TABLES */
$tablesToBeIgnored = array (
"dataflow_batch_export",
"dataflow_batch_import",
"log_customer",
"log_quote",
"log_summary",
"log_summary_type",

Keybase proof

I hereby claim:

  • I am kbariotis on github.
  • I am kbariotis (https://keybase.io/kbariotis) on keybase.
  • I have a public key ASAvMLWENqnjD5J1VRYcwlMumOY46GjHWQk0-Ci5CN2ZHwo

To claim this, I am signing this object:

@charset "UTF-8";
$bootstrap-sass-asset-helper: true;
@import "~bootstrap-sass/assets/stylesheets/bootstrap/variables";
$font-size-base: 16px;
@import "~bootstrap-sass/assets/stylesheets/bootstrap/mixins";
@import "~bootstrap-sass/assets/stylesheets/bootstrap/normalize";
@import "~bootstrap-sass/assets/stylesheets/bootstrap/print";
// src/index.js
const appStoreImg = require('../assets/images/app-store.png')
// ...
render() {
<div>
// ...
<a href="#"><img src={appStoreImg} height="50" alt=""></a>
// ...
<!-- ... -->
<div>
<a href="#"><img src="assets/img/app-store.png" height="50" alt=""></a>
</div>
<!-- ... -->
module.exports = {
plugins: [
`gatsby-plugin-sass`
]
}
@kbariotis
kbariotis / .gitignore
Last active January 17, 2017 08:13
.gitignore for Magento 1.8
app/code/community/Phoenix/
app/code/community/Cm/
app/code/core/
app/design/adminhtml/default/default/
app/design/frontend/base/
app/design/frontend/default/blank/
app/design/frontend/default/default/
app/design/frontend/default/iphone/
app/design/frontend/default/modern/
app/design/frontend/enterprise/default