Skip to content

Instantly share code, notes, and snippets.

View LukaszWiktor's full-sized avatar

Łukasz Wiktor LukaszWiktor

View GitHub Profile
@LukaszWiktor
LukaszWiktor / lftp.sh
Created September 24, 2022 18:51
Move multiple files into a folder using LFTP mmv command #lftp
# Move all *.csv files from current directory to _archive subdirectory
mmv *.csv _archive
@LukaszWiktor
LukaszWiktor / AWS_S3_File_Upload.js
Created February 13, 2017 12:17 — forked from homam/AWS_S3_File_Upload.js
How to upload files to AWS S3 with NodeJS SDK
var AWS = require('aws-sdk'),
fs = require('fs');
// For dev purposes only
AWS.config.update({ accessKeyId: '...', secretAccessKey: '...' });
// Read in the file, convert it to base64, store to S3
fs.readFile('del.txt', function (err, data) {
if (err) { throw err; }
@LukaszWiktor
LukaszWiktor / logentries_manual_setup.md
Created May 25, 2016 09:23 — forked from ostinelli/logentries_manual_setup.md
How to use a single Logentries account on Heroku

If you have multiple applications on Heroku and would like to use a single Logentries account for all of them, this is how you do it. Basically, do not use add-ons, and send all drains to your account.

  • In your Logentries account, click on Add Log
  • Select Manual
  • In the form that appears, input the following:
    • Log Name: access.log
    • Select Set: new set named myapp-{environment}, for instance myapp-staging (at least, this is how I like to name my entries)
    • Select the Plain TCP, UDP - logs are sent via syslog option
  • Click on Create Log Token
@LukaszWiktor
LukaszWiktor / index.html
Last active August 29, 2015 14:25 — forked from jtrussell/index.html
jsbin - AngularJS, basic template
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Angular JS</title>
</head>
<body ng-app="jsbin">
<div ng-controller="DemoCtrl as demo">
<h1>Hello {{demo.name}}</h1>
</div>