- Set these attributes in /etc/ssh/sshd_config
# cat /etc/ssh/sshd_config | grep X11
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
let date_utc_str_s: Series = Series::new( | |
"date_utc_str", | |
df | |
.column("date") | |
.unwrap() | |
.cast(&DataType::Datetime( | |
polars::datatypes::TimeUnit::Milliseconds, | |
None)) | |
.unwrap() | |
.strftime("%Y-%m-%dT%H:%M:%SZ") |
sudo: required | |
language: ruby | |
services: | |
- docker | |
before_install: | |
- echo "Testing Docker Hub credentials" | |
- docker login -e=$DOCKER_EMAIL -u=$DOCKER_USERNAME -p=$DOCKER_PASSWORD |
#!/bin/bash | |
# Allow toggling components to install and update based off flags | |
updateconsul=1 | |
updatedocker=1 | |
updatedockermachine=1 | |
updatedockercompose=1 | |
updatedockerswarm=1 | |
consulversion="0.5.2" |
#!/bin/bash | |
function install_ycm() { | |
mkdir -p ~/.vim | |
curdir=$(pwd) | |
if [[ "$(which xcode-select)" != "" ]]; then | |
# you may need to install packages with: xcode-select --install | |
echo "" | |
echo "installing XQuartz" | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null ; brew install caskroom/cask/brew-cask 2> /dev/null |
#!/bin/bash | |
# example from | |
# for donkey car | |
# https://serverfault.com/questions/870594/resize-partition-to-maximum-using-parted-in-non-interactive-mode | |
set -e | |
if [[ $# -eq 0 ]] ; then | |
echo 'please tell me the device to resize as the first parameter, like /dev/sda' |
DEVICE=eno1 | |
TYPE=Ethernet | |
PROXY_METHOD=none | |
BROWSER_ONLY=no | |
BOOTPROTO=dhcp | |
DEFROUTE=yes | |
IPV4_FAILURE_FATAL=no | |
IPV6INIT=yes | |
IPV6_AUTOCONF=yes | |
IPV6_DEFROUTE=yes |
export LIBVIRT_DEFAULT_URI="qemu:///system" |
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |