Skip to content

Instantly share code, notes, and snippets.

View rogeruiz's full-sized avatar

Roger Steve Ruiz rogeruiz

View GitHub Profile
package main
import (
"fmt"
"github.com/go-redis/redis"
)
func main() {
fmt.Print("Hello, Roger")
client := redis.NewClient(&redis.Options{
// Address received by minikube service -n default redis-sentinel-proxy
@rogeruiz
rogeruiz / vim-everywhere-or-how-i-abstracted-away-my-workflow-and-cant-use-regular-computers-anymore.markdown
Last active September 10, 2021 19:36
18F Tech Talk Lite! 2017: How to Vim Everywhere. Or, how I abstracted away my workflow and can't use regular computers anymore

Preface

Hey there folks, I'm Roger and I use the terminal for just about everything text related. I really like using a keyboard over a mouse.

Let's begin our journey into my workflow with two things in mind. First off, there is very little research here in terms of actual productivity gains. I did this mostly for fun.

This is just how one person decided to hit the dopamine part of their brain

<check_type:"Unix">
<custom_item>
type : CMD_EXEC
description : "Make sure that /tmp partion is properly configured"
cmd : "mount -l"
expect : ".*\/tmp .+noexec,nosuid,nodev"
</custom_item>
<custom_item>
type : CMD_EXEC
description : "Make sure that /home partion is properly configured"
@rogeruiz
rogeruiz / gist:efe3971077b31b29350de71c81edd0c7
Created March 2, 2017 14:30 — forked from snaga/gist:7495184
postgresql.conf @ RDS for PostgreSQL
testdb=> SELECT name,setting,unit FROM pg_settings;
name | setting | unit
---------------------------------+---------------------------------------------+------
allow_system_table_mods | off |
application_name | psql |
archive_command | /etc/rds/dbbin/pgscripts/rds_wal_archive %p |
archive_mode | on |
archive_timeout | 300 | s
array_nulls | on |
authentication_timeout | 60 | s
@rogeruiz
rogeruiz / playground.rs
Created November 23, 2016 14:20 — forked from anonymous/playground.rs
Shared via Rust Playground
extern crate curl;
use curl::http;
fn main() {
let url = "https://www.hautelook.com/api";
let resp = http::handle()
.get(url)
.exec()
.unwrap_or_else(|e| {
@rogeruiz
rogeruiz / gource.md
Created November 3, 2016 01:04 — forked from ChuckJHardy/gource.md
Gource Recording for Git

Install Gource

brew install gource

Convert Quicktime Movie to Animated Gif

ffmpeg -i in.mov -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > out.gif

Record Gource

@rogeruiz
rogeruiz / rebuild-docs
Created June 15, 2016 14:17
A helpful rebuild script for working with Compliance Masonry and `cg-compliance`
#!/bin/sh
set -u
set -e
# When working with `cg-compliance` you'll need to run the two commands
# to update the compliance-masonry 'export' directory for in order for gitbooks
# to be aware of changes in order for gitbooks to update the server.
cm_path=`which compliance-masonry`
@rogeruiz
rogeruiz / CONTRIBUTING.md
Last active May 20, 2016 16:16
18F init git.patch files

Welcome!

We're so glad you're thinking about contributing to an 18F open source project! If you're unsure about anything, just ask -- or submit the issue or pull request anyway. The worst that can happen is you'll be politely asked to change something. We love all friendly contributions.

We want to ensure a welcoming environment for all of our projects. Our staff follow the [18F Code of Conduct][18f-coc] and all contributors should do the same.

node_modules/uswds
├── [ 204] src
│   ├── [ 238] stylesheets
│   │   ├── [ 442] lib
│   │   │   ├── [ 272] settings
│   │   │   │   ├── [ 758] _visual-grid.scss
│   │   │   │   ├── [ 25] _px-to-em.scss
│   │   │   │   ├── [ 268] _prefixer.scss
│   │   │   │   ├── [1.8K] _grid.scss
│   │   │   │   ├── [ 257] _disable-warnings.scss

Show me the code! Do you prefer seeing how something works instead of instructions? If so, check out this pull request to the Amortize module. Each instruction below lives as its own commit. cfpb/amortize#11

1. Add an .npmrc file.

The contents of the file should be:

save-exact=true