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 / 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
--
-- 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 / 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?
=====
@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 / 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).