Skip to content

Instantly share code, notes, and snippets.

@gabriel
gabriel / setup.md
Last active July 28, 2023 16:46
Setup

Prompt

  • Install oh-my-zsh

Alias git commands

git config --global alias.st status 

System Prefs

// flow-typed signature: 03cf7c175358936fca986447e901a2fe
// flow-typed version: 81ddf4ba12/@@material-ui/core/core_v1.x.x/flow_>=v0.58.x
declare module "@material-ui/core/AppBar/AppBar" {
declare type Color = "inherit" | "primary" | "secondary" | "default";
declare type Position = "fixed" | "absolute" | "sticky" | "static";
declare module.exports: React$ComponentType<{
children?: React$Node,
className?: string,
package main

import (
	"fmt"

	"github.com/aquilax/tripcode"
)

func main() {

Read Me About SMJobBless

1.5

SMJobBless demonstrates how to embed a privileged helper tool in an application, how to securely install that tool, and how to associate the tool with the application that invokes it.

SMJobBless uses the Service Management framework that was introduced in Mac OS X 10.6 Snow Leopard. As of 10.6 this is the preferred method for managing privilege escalation on OS X and should be used instead of earlier approaches such as BetterAuthorizationSample or directly calling AuthorizationExecuteWithPrivileges.

Packing List

➜ ~/Projects/electron-react-boilerplate (master) yarn start
yarn run v1.12.3
$ yarn build
$ concurrently "yarn build-main" "yarn build-renderer"
$ cross-env NODE_ENV=production webpack --config ./configs/webpack.config.main.prod.babel.js --colors
$ cross-env NODE_ENV=production webpack --config ./configs/webpack.config.renderer.prod.babel.js --colors
[0] Hash: 733a110763a28611c3cb
[0] Version: webpack 4.23.1
[0] Time: 2258ms
[0] Built at: 11/20/2018 11:37:01 AM
# Install ZeroMQ
sudo brew install zmq
easy_install pyzmq
[0] http://www.zeromq.org/bindings:python
# Install OpenCV
sudo brew install opencv
require 'net/http'
require 'json'
require 'csv'
# Put access token
AccessToken = ""
RequestDelay = 1 # in seconds
def messages(group_id, group_name)
limit = 100
@gabriel
gabriel / git-prompt.sh
Created July 14, 2016 01:43
git-prompt.sh
# bash/zsh git prompt support
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Distributed under the GNU General Public License, version 2.0.
#
# This script allows you to see repository status in your prompt.
#
# To enable:
#
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh).

Hi all,

If you want to test proving social network ownership with rooter, here's what you can do.

On the command line:

keybase prove rooter yourUserName

It will give you something to post, call it 'LcEI8-LuBRM1EUtXKf1jZAabCKtu0_rjaKVif1O3Bsc'

@gabriel
gabriel / vendor.md
Last active June 23, 2016 19:46
Alternative Vendoring Strategy

Vendoring Somewhere Else?

Instead of vendoring inside client and kbfs (and including client in kbfs), we vendor at github.com/keybase/vendor (as a repo).

When a user wants to build:

  • go get github.com/keybase/client/go
  • go get github.com/keybase/kbfs
  • go get github.com/keybase/vendor (if they want to use vendoring)

An example vendoring repo that works right now is at: https://github.com/keybase/go-vendor-test