Skip to content

Instantly share code, notes, and snippets.

View devbyray's full-sized avatar
:octocat:
Building cool things!

Dev By Ray devbyray

:octocat:
Building cool things!
View GitHub Profile
# The MIT License (MIT)
#
# Copyright (c) 2014 Matthias Eisen (http://www.matthiaseisen.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@swenzel
swenzel / wordGen.js
Created February 11, 2015 16:12
JavaScript random word generator
// DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
// Version 2, December 2004
//
// Copyright (C) 2015 Swen Wenzel <swenzel@uos.de>
//
// Everyone is permitted to copy and distribute verbatim or modified
// copies of this license document, and changing it is allowed as long
// as the name is changed.
//
// DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@wagnerjgoncalves
wagnerjgoncalves / jenkins.md
Last active April 19, 2023 07:27
Shell Script to install Jenkins at Ubuntu
@nrollr
nrollr / MySQL_macOS_Sierra.md
Last active June 7, 2024 20:53
Install MySQL on Sierra using Homebrew

Install MySQL on macOS Sierra

This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.

Install MySQL

At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :

@tduarte
tduarte / publish-ghpages.md
Last active May 18, 2024 13:52
If you need to force push an subtree
git checkout master # you can avoid this line if you are in master...
git subtree split --prefix dist -b gh-pages # create a local gh-pages branch containing the splitted output folder
git push -f origin gh-pages:gh-pages # force the push of the gh-pages branch to the remote gh-pages branch at origin
git branch -D gh-pages # delete the local gh-pages because you will need it: ref
@bernardoadc
bernardoadc / get.vanilla.js
Last active August 19, 2021 02:58
This is a vanilla one-liner similar to lodash's `_.get`.
function get (obj, path, def) {
return (path.split && path.split('.') || path).reduce((o, p) => ((o || obj)[p] ?? def), 0)
}
@monkut
monkut / add_python_to_WINDOWS_WSL_ubuntu.md
Created February 13, 2019 13:19
Add python to Windows Subsystem for Linux (WSL) [ubuntu]
@Koenkk
Koenkk / Install Node.js 10 on Raspberry Pi 1 or zero
Last active February 15, 2023 20:50
Install Node.js 10 on Raspberry Pi 1 or zero
NODE=10.17.0
wget https://nodejs.org/dist/v$NODE/node-v$NODE-linux-armv6l.tar.xz
tar -xvf node-v$NODE-linux-armv6l.tar.xz
sudo cp -R node-v$NODE-linux-armv6l/* /usr/local/
rm -rf node-v$NODE-linux-armv6l node-v$NODE-linux-armv6l.tar.xz