1.) If I have a data.frame df <- data.frame(a = c(1, 2, 3), b = c(4, 5, 6), c(7, 8, 9))
...
1a.) How do I select the c(4, 5, 6)
?
1b.) How do I select the 1
?
1c.) How do I select the 5
?
1d.) What is df[, 3]
?
// ==UserScript== | |
// @name iHned Paywall Remover | |
// @namespace http://ihned.cz | |
// @description Removes iHned paywall cookie | |
// @include http:/ihned.cz/* | |
// @include http://*.ihned.cz/* | |
// @version 2 | |
// @grant none | |
// ==/UserScript== | |
document.cookie = "pw=; path=/; domain=.ihned.cz; expires=Thu, 01-Jan-1970 00:00:01 GMT;"; |
#requires -version 3 | |
function Remove-Profile { | |
param( | |
[string[]]$ComputerName = $env:ComputerName, | |
[pscredential]$Credential = $null, | |
[string[]]$Name, | |
[ValidateRange(0,365)][int]$DaysOld = 0, | |
[string[]]$Exclude, | |
[switch]$IgnoreLastUseTime, | |
[switch]$Remove |
# Add references to SharePoint client assemblies and authenticate to Office 365 site - required for CSOM | |
Add-Type -Path “C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll” | |
Add-Type -Path “C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll” | |
Add-Type -Path “C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.WorkflowServices.dll” | |
# Specify tenant admin and site URL | |
$SiteUrl = "mysiteurl" | |
$ListName = "mylistname" | |
$UserName = "myusername" | |
$SecurePassword = ConvertTo-SecureString "mypassword" -AsPlainText -Force |
library(shiny) | |
library(ggplot2) | |
function(input, output) { | |
dataset <- reactive({ | |
diamonds[sample(nrow(diamonds), input$sampleSize),] | |
}) | |
output$plot <- renderPlot({ |
1.) If I have a data.frame df <- data.frame(a = c(1, 2, 3), b = c(4, 5, 6), c(7, 8, 9))
...
1a.) How do I select the c(4, 5, 6)
?
1b.) How do I select the 1
?
1c.) How do I select the 5
?
1d.) What is df[, 3]
?
user www-data; | |
worker_processes auto; | |
pid /run/nginx.pid; | |
## based on https://gist.github.com/cboettig/8643341bd3c93b62b5c2 | |
events { | |
worker_connections 1024; | |
} |
#!/bin/bash | |
target_branch="production" | |
working_tree="PATH_TO_DEPLOY" | |
while read oldrev newrev refname | |
do | |
branch=$(git rev-parse --symbolic --abbrev-ref $refname) | |
if [ -n "$branch" ] && [ "$target_branch" == "$branch" ]; then | |
This is not official documentation/tooling, use with caution
This generate the Kubernetes definitions of the cattle-cluster-agent
Deployment and cattle-node-agent
DaemonSet, in case it's accidentally removed/server-url was changed/certficates were changed. It is supposed to run on every cluster Rancher manages. If you have custom clusters created in Rancher, see Kubeconfig for Custom clusters created in Rancher
how to obtain the kubeconfig to directly talk to the Kubernetes API (as usually it doesn't work via Rancher anymore). For other clusters, use the tools provided by the provider to get the kubeconfig.
IMPORTANT: You get the cluster/node agents definitions from Rancher, and you apply them to the cluster that is created/managed so you need to switch kubeconfig to point to that cluster before applying them.
class MultiFormMixin(ContextMixin): | |
form_classes = {} | |
prefixes = {} | |
success_urls = {} | |
grouped_forms = {} | |
initial = {} | |
prefix = None | |
success_url = None |