Skip to content

Instantly share code, notes, and snippets.

@Nesousx
Nesousx / docker-compose.yml
Created March 27, 2018 09:09
Nesatmo docker-compose.yml
version: '2'
services:
nesatmo:
container_name: nesatmo
image: nesousx/nesatmo
restart: unless-stopped
environment:
- NETATMO_CLIENT_ID=yourclientid
- NETATMO_CLIENT_SECRET=yourclientsecret
- NETATMO_CLIENT_USERNAME=your-netatmo-user
@Nesousx
Nesousx / nesatmo.json
Created March 27, 2018 09:12
Nesatmo Grafana Dashboard
{
"__inputs": [
{
"name": "DS_NETATMO",
"label": "netatmo",
"description": "",
"type": "datasource",
"pluginId": "influxdb",
"pluginName": "InfluxDB"
},
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-RemoteDesktop
cinst windirstat
cinst notepad++
cinst sublimetext2
cinst Microsoft-Hyper-V-All -source windowsFeatures
cinst IIS-WebServerRole -source windowsfeatures
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-RemoteDesktop
cinst notepadplusplus
cinst windirstat
cinst Firefox
cinst vlc
cinst Microsoft-Hyper-V-All -source windowsFeatures
cinst IIS-WebServerRole -source windowsfeatures
@Nesousx
Nesousx / gist:f6ce54fbe062a6bbd2603f2098c4ddda
Last active January 25, 2019 10:22
curl and ansible way to reboot a scaleway bare metal server
### CURL command to reboot a bare metal Scaleway Server
curl -H 'X-Auth-Token: {{ scw_token }}' -H 'Content-Type: application/json' https://cp-{{ scw_region }}.scaleway.com/servers/{{ scw_server }}/action --request POST --data '{"action":"reboot"}'
### Ansible version
- name: Reboot server via scaleway API
uri:
url: "https://cp-{{ scw_region }}.scaleway.com/servers/{{ scw_server }}/action"
validate_certs: yes
method: POST
body:
#### Prepare my Gaming Box
#### Best served with Windows 10
#### Run locally with the following flag: -ExecutionPolicy Bypass
#### More info: https://www.masoopy.com/automagically-deploy-apps-with-gpo-and-boxstarter/
### Determine which version of PowerShell is running
if ($PSVersionTable.PSversion.Major -eq "2")
## PowerShell V2
{
@Nesousx
Nesousx / emails.json
Last active September 18, 2020 16:16
Quick tomnomnom test
{
"flags": "-hrioaE",
"pattern": "[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+.[A-Za-z]{2,6}"
}
@Nesousx
Nesousx / Debian_Bullseye_on_LUKS-BTRFS_with_systemd-boot.md
Last active December 26, 2022 14:13 — forked from meeas/DebianSid_on_LUKS-BTRFS_with_systemd-boot.md
For installing Debian Bullseye with LUKS2 encrypted BTRFS filesystem with Systemd-boot and timeshift for snapshots

This is a work in progress - Currently not working!!

For directly installing Debian Bullseye not supported by the Debian installer, namely:

  • Single LUKS2 encrypted partition which contains the full installation
  • Single BTRFS filesystem (integrated home partition)
  • Encrypted swapfile in BTRFS subvolume (supports laptop suspend but not hibernate)
  • Uses systemd-boot bootloader (instead of Grub2, also optional rEFInd instructions)
  • Minimal i3 install
  • Proper user groups