Skip to content

Instantly share code, notes, and snippets.

View nahtnam's full-sized avatar

Manthan Mallikarjun nahtnam

View GitHub Profile

Keybase proof

I hereby claim:

  • I am nahtnam on github.
  • I am nahtnam (https://keybase.io/nahtnam) on keybase.
  • I have a public key whose fingerprint is 44F7 D0C4 4B1F 693E 3C5A 7299 BCBB A793 8FF8 8DA0

To claim this, I am signing this object:

@nahtnam
nahtnam / script.js
Last active October 29, 2019 06:53
MagicMirror script to turn on the screen when your phone is connected to the WiFi
const shell = require('shelljs');
const offlineTime = 300; // 5 minutes
const exec = cmd => shell.exec(cmd, { silent: true });
let state = true;
let lastOnlineAt = Date.now();
const ips = ['INSERT IP 1 HERE', 'INSERT MORE IF YOU NEED'];
exec('vcgencmd display_power 1'); // turn on the monitor to make sure the state is correct
title subtitle date
hello world
hello world in all of my favorite languages!
April 22, 2019

Hello world! Welcome to my blog. I'm working on writing up new posts and will try to get them out as soon as possible, but in the meantime, here is hello world in my favorite languages.

Node.js / JavaScript‌

Keybase proof

I hereby claim:

  • I am nahtnam on github.
  • I am nahtnam (https://keybase.io/nahtnam) on keybase.
  • I have a public key whose fingerprint is 0C8B 5B10 166D 534C A0D7 C60B BDB0 6B6A 2588 3980

To claim this, I am signing this object:

@nahtnam
nahtnam / post.md
Last active June 29, 2017 06:50
Using Laravel-Mix with Phoenix

Introduction

Laravel-Mix is "an elegant wrapper around Webpack for the 80% use case". It has nothing to do with Elixir's Mix and does not require Laravel to work!

Set up

Create a new phoenix application with mix phx.new. You may choose to add the --no-brunch flag to stop brunch from being intiailized, but I personally prefer leaving that in and replacing brunch so that the folder structure is set up for me.

$ mix phx.new demo

Install Laravel-Mix

@nahtnam
nahtnam / .gitlab-ci.yml
Created July 4, 2016 07:22
Using Ember CLI on Gitlab CI
image: node:6.2.2
before_script:
- npm config set spin false
- npm install -g bower
- npm install -g ember-cli
- npm install -g phantomjs-prebuilt
- npm install
- bower install --allow-root
@nahtnam
nahtnam / .gitlab-ci.yml
Last active February 25, 2017 20:28
Using Phoenix on Gitlab CI
image: elixir:1.3
services:
- postgres:9.6
variables:
MIX_ENV: "test"
before_script:
# Setup phoenix dependencies