I hereby claim:
- I am a4h8 on github.
- I am a4h8 (https://keybase.io/a4h8) on keybase.
- I have a public key ASATAbWTX13Hp3I2dsJLZAEYuErJiaS0yS0Wjk6Bo1dRlQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env bash | |
# OpenSSL 1.0 required for depreciated ruby versions | |
sudo apt install -y libssl1.0-dev | |
rbenv install 2.3.0 | |
sudo apt install -y libssl-dev | |
rbenv install 3.0.0 | |
# Ask for sudo password |
# ~/.api.sh | |
# Weather Report | |
# WEATHER_APIKEY="<YOUR_API>" | |
# WEATHER_CITY_ID='<CITY_ID>' | |
# WEATHER_UNITS="metric" | |
# WEATHER_LANG="FR" | |
# WEATHER_API="https://api.openweathermap.org/data/2.5/weather?id=$WEATHER_CITY_ID&units=$WEATHER_UNITS&lang=$WEATHER_LANG&appid=$WEATHER_APIKEY" |
#!/bin/bash | |
# generate and add new ed25519 ssh key | |
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "rob thijssen <rthijssen@gmail.com>" | |
eval "$(ssh-agent -s)" | |
ssh-add ~/.ssh/id_ed25519 | |
# set local file permissions | |
chmod 700 ~/.ssh | |
chmod 644 ~/.ssh/authorized_keys |
Starting with Windows 10 build 1709, Windows integrates a port of OpenSSH, client and server.
This note describes how to install and configure the OpenSSH server sshd
and run PowerShell scripts on a remote Windows server, from a Unix system,
using SSH and public key authentication (no password).
Prerequisites: We need the Windows Local Security Policy Editor (secpol.msc
).
On Windows 10 Home edition, this tool is not present and you need to install it
Service | SSL | status | Response Type | Allowed methods | Allowed headers |
---|
### PowerShell template profile | |
### Version 1.03 - Tim Sneath <tim@sneath.org> | |
### From https://gist.github.com/timsneath/19867b12eee7fd5af2ba | |
### | |
### This file should be stored in $PROFILE.CurrentUserAllHosts | |
### If $PROFILE.CurrentUserAllHosts doesn't exist, you can make one with the following: | |
### PS> New-Item $PROFILE.CurrentUserAllHosts -ItemType File -Force | |
### This will create the file and the containing subdirectory if it doesn't already | |
### | |
### As a reminder, to enable unsigned script execution of local scripts on client Windows, |