Skip to content

Instantly share code, notes, and snippets.

View nlharri's full-sized avatar

László Harri Németh nlharri

View GitHub Profile
@nlharri
nlharri / CreateExcelFile.vbs
Created November 19, 2018 13:50 — forked from simply-coded/CreateExcelFile.vbs
Use VBScript to create, open, and edit excel files. ( Excel needs to be installed on your computer ).
'Microsoft Excel Automation Basics
':: Create and edit an Excel File.
'---------------------------------
'create the excel object
Set objExcel = CreateObject("Excel.Application")
'view the excel program and file, set to false to hide the whole process
objExcel.Visible = True
@nlharri
nlharri / simple_authentication.rb
Created November 23, 2018 08:36 — forked from tomdalling/simple_authentication.rb
A simple Sinatra app that demonstrates basic authentication
#!/user/bin/env ruby
require 'bundler/inline'
gemfile(true) do
source 'https://rubygems.org'
gem 'sinatra', '~> 1.4'
gem 'bcrypt', '~> 3.1'
end
require 'sinatra/base'
@nlharri
nlharri / c9-github-integration.md
Last active December 11, 2018 09:58 — forked from juemura/c9-github-integration.md
Tutorial: How to connect your Cloud9 and GitHub accounts via ssh

Tutorial: How to connect your Cloud9 and GitHub accounts via ssh

To avoid having to enter your username and password EVERY-SINGLE-TIME you push, follow these step-by-step instructions.

1. Copy your C9 ssh key.

Go to https://c9.io/account/ssh and copy the key below "Connect to your private git repository". It's a very long string that starts with ssh-rsa and ends with your email.

2. Paste your C9 ssh key into your GitHub account

Go to https://github.com/settings/keys and click New SSH key.

@nlharri
nlharri / README.md
Created February 6, 2019 09:06 — forked from TyrfingMjolnir/README.convert_iOS_icon.md
Convert 1 image 2048x2048 to all needed sizes for an iOS app

Prerequisite

$ brew install imagemagick

This is one way to run this script:

$ time /opt/local/convertappicons/convertappicons.sh AppName.png
AppName
@nlharri
nlharri / osx-ld.md
Created December 1, 2021 19:29 — forked from loderunner/osx-ld.md
potential blog posts

ld – Wading through Mac OS X linker hell

Intro

Friend: I tried looking at static linking in Mac OS X and it seems nearly impossible. Take a look at this http://stackoverflow.com/a/3801032

Me: I have no idea what that -static flag does, but I'm pretty sure that's not how you link to a library. Let me RTFM a bit.

Minutes later...

@nlharri
nlharri / Email Server (Linux, Unix, Mac).md
Created October 7, 2022 11:37 — forked from raelgc/Email Server (Linux, Unix, Mac).md
Setup a Local Only SMTP Email Server (Linux, Unix, Mac)

Setup a Local Only SMTP Email Server (Linux, Unix, Mac)

1 - Point localhost.com to your machine

Most of programs will not accept an email using just @localhost as domain. So, edit /etc/hosts file to make the domain localhost.com point to your machine, including this content to the file:

127.0.0.1 localhost.com

2 - Install Postfix