This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias startpg="sudo service postgresql start" | |
alias stoppg="sudo service postgresql stop" | |
alias startrs="sudo service rstudio-server start" | |
alias stoprs="sudo service rstudio-server stop" | |
alias aptupdate="sudo apt update && sudo apt upgrade -y" | |
alias aptclean="sudo apt clean && sudo apt autoclean && sudo apt autoremove -y" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"productId": 0, | |
"sku": "string", | |
"productName": "string", | |
"internalName": "string", | |
"description": "string", | |
"masterCategory": "string", | |
"categoryId": 0, | |
"category": "string", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"transactionId": 0, | |
"customerId": 0, | |
"employeeId": 0, | |
"transactionDate": "2021-08-02T21:01:20.947Z", | |
"voidDate": "2021-08-02T21:01:20.947Z", | |
"isVoid": true, | |
"subtotal": 0, | |
"totalDiscount": 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!bin/bash | |
sudo apt-get install -y \ | |
dirmngr \ | |
gnupg \ | |
apt-transport-https \ | |
ca-certificates \ | |
software-properties-common \ | |
libpq-dev \ | |
libssl-dev \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALTER TABLE greenkong_blaze_members | |
ALTER COLUMN member_group TYPE JSON | |
USING member_group::json; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# History files | |
.Rhistory | |
.Rapp.history | |
# Session Data files | |
.RData | |
# User-specific files | |
.Ruserdata |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clip2Vec <- function(toPosition = TRUE, sep = " "){ | |
cb <- clipr::read_clip() | |
txt <- str_c( | |
"vec <- c('", | |
str_replace_all( | |
string = str_squish(str_flatten(str_subset(cb, ".+"), sep)), | |
pattern = sep, | |
replacement = str_c("\',\n", str_dup(' ', 9), "'") | |
), | |
"')\n\n" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default: | |
pipeline: | |
name: '{%!=name}' | |
ppid: 2 | |
meta: | |
origin: | |
ssnam: '' # source system name | |
ssurl: '' # populate if api url | |
destn: | |
dbms: "postgres" # one of postgres, mssql, mysql, mongod |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
library(lubridate) | |
library(sodium) | |
library(jsonlite) | |
ui <- fluidPage( | |
titlePanel("Explore Session Meta"), | |
sidebarLayout( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
site_index_path <- tempfile("index_", fileext = ".html") | |
stopifnot( file.create(site_index_path) ) | |
tools::Rd2HTML( | |
tools::parse_Rd("man/f_add.Rd"), | |
out = site_index_path | |
) | |
rstudioapi::viewer(site_index_path) |
NewerOlder