Skip to content

Instantly share code, notes, and snippets.

@z3cka
z3cka / index.html
Created March 31, 2020 21:53
UCLA--OpenUCLA__landing-pg
<div class="ou-container ou-container--white">
<nav class="ou-nav">
<a href="https://www.library.ucla.edu/">
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1302838/ucla-library-logo-blue_resized.svg" alt="UCLA Library Logo" class="ou-nav__logos">
</a>
<a href="https://100.ucla.edu/initiatives" target="_blank">
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/1302838/ucla_100_logo_blue.png" alt="UCLA 100 Centennial Logo" class="ou-nav__logos">
</a>
</nav>
0x6f7f8c0a715c48726b7f5ec613c65671ffe67cb0
@z3cka
z3cka / README_rhel6.md
Last active November 8, 2017 17:59 — forked from anonymous/README_rhel6.md
SHARE Analytics on Red Hat 6

Requirements

  • install git sudo yum install git

  • build deps for python via pyenv sudo yum install zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl-devel

  • more db deps sudo yum install -y postgresql postgresql-server postgresql-contrib postgresql-devel

  • "initialize the postgres cluster sudo service postgresql initdb && \ sudo service postgresql start

  • install NVM curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash

@z3cka
z3cka / index.html
Last active July 22, 2017 16:44
index.html for hoodie
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Say &quot;Hello, world!&quot; with Hoodie</title>
</head>
<body>
<h1>Say &quot;Hello, world!&quot; with Hoodie</h1>
<script src="hoodie/client.js"></script>
</body>
# do:
- name: Create user, ansible, with a key & wheel
user:
name: ansible
shell: /bin/bash
groups: wheel
# don't:
- name: Allow the ansible user to sudo to root by adding it to the wheel group in /etc/group
lineinfile:
path: /etc/group
@z3cka
z3cka / open-now.html
Last active June 15, 2017 17:09 — forked from anonymous/jonathan.html
open-now.html
<!DOCTYPE html>
<html>
<head lang="en">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<script src="https://code.jquery.com/jquery-1.11.3.js"></script>
<style>
span {
color: white;
/*
* Date Format 1.2.3
* (c) 2007-2009 Steven Levithan <stevenlevithan.com>
* MIT license
*
* Includes enhancements by Scott Trenda <scott.trenda.net>
* and Kris Kowal <cixar.com/~kris.kowal/>
*
* Accepts a date, a mask, or a date and a mask.
* Returns a formatted version of the given date.
sudo apt update && sudo apt install -y build-essential byobu git
git clone https://github.com/ProboCI/probo.git
git clone https://github.com/ProboCI/probo-asset-receiver.git
git clone https://github.com/ProboCI/probo-loom.git
git clone https://github.com/ProboCI/probo-proxy.git
wget -qO- https://get.docker.com/ | sudo sh
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
nvm install v4.8.2
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install -y docker-ce
@z3cka
z3cka / passgen.sh
Created September 21, 2016 16:34
Quick command to generate passwords from https://xkpasswd.net _(w/ jq at `/Applications/jq-osx-amd64` on Mac OS )_
curl 'https://xkpasswd.net/s/index.cgi' -H 'Pragma: no-cache' -H 'Origin: https://xkpasswd.net' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'Accept: */*' -H 'Cache-Control: no-cache' -H 'X-Requested-With: XMLHttpRequest' -H 'Cookie: gsScrollPos=' -H 'Connection: keep-alive' -H 'Referer: https://xkpasswd.net/s/' --data 'a=genpw&n=3&c=%7B%22num_words%22%3A3%2C%22word_length_min%22%3A4%2C%22word_length_max%22%3A8%2C%22case_transform%22%3A%22LOWER%22%2C%22separator_character%22%3A%22NONE%22%2C%22padding_digits_before%22%3A0%2C%22padding_digits_after%22%3A2%2C%22padding_type%22%3A%22NONE%22%2C%22random_increment%22%3A%22AUTO%22%7D' --compressed -k | /Applications/jq-osx-amd64