Skip to content

Instantly share code, notes, and snippets.

View Adriem's full-sized avatar
:shipit:
Making javascripts

Adrián Moreno Adriem

:shipit:
Making javascripts
View GitHub Profile
@Adriem
Adriem / gh-pages-deploy.md
Created February 14, 2016 14:32 — forked from cobyism/gh-pages-deploy.md
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

@Adriem
Adriem / gist:48abb5d38ee569978c14
Created February 24, 2016 12:14 — forked from djs070/gist:4570480
Install NVM & Node 0.8.17 on Fedora/CentOS
# install git
yum install git -y
# get nvm
git clone git://github.com/creationix/nvm.git ~/nvm
# activate nvm
@Adriem
Adriem / install_gradle.sh
Created February 24, 2016 21:35 — forked from six519/install_gradle.sh
Install / Update Gradle Script (Tested In Fedora 20/CentOS 7)
#!/usr/bin/env bash
: '
Tested
======
Fedora 20
CentOS 7
What?
=====
--
-- for command line osascript ./vpn_run.scpt and add permission to "security & privacy"
--
activate application "Cisco AnyConnect Secure Mobility Client"
tell application "System Events"
repeat until window 1 of process "Cisco AnyConnect Secure Mobility Client" exists
end repeat
tell process "Cisco AnyConnect Secure Mobility Client"
@Adriem
Adriem / keyboard-management.lua
Last active May 23, 2022 01:57
Script for managing windows in hammerspoon
local US = 'U.S.'
local US_INTER = 'U.S. International - PC'
local config = {
['iTerm2'] = US,
['IntelliJ IDEA'] = US
}
local default = US_INTER
@Adriem
Adriem / snippets.md
Last active October 20, 2017 12:10
Debugging snippets

Some useful debugging snippets

Angular JS

Debugging ui-router

// Print each state transition
$rootScope.$on('$stateChangeSuccess', (_, toState) => console.log(`STATE CHANGED TO '${toState}'`));
@Adriem
Adriem / css-for-link-hints.css
Created October 25, 2017 10:26
Vimium settings
@Adriem
Adriem / .gitconfig
Last active December 20, 2018 10:54
Git aliases
[core]
eol = lf
autocrlf = input
safecrlf = false
pager = less
editor = /usr/bin/vim
[user]
email = _EMAIL_
name = _NAME_
@Adriem
Adriem / motd
Last active January 2, 2018 22:57
rpi-motd
# Copy this to /etc/motd
@Adriem
Adriem / .tmux.conf
Last active January 5, 2018 02:05
Tmux config
# ==============================================================================
# File: .tmux.conf
# Author: Adrian Moreno
# Repo: https://github.com/adriem/shell-utilities
# ==============================================================================
# Global settings
set -g default-terminal "screen-256color" # Enable 256 color terminal emulator
set -g status-interval 2 # Status bar refresh interval
set -g set-titles on # Set window title