https://traefik.io/blog/secure-web-applications-with-traefik-proxy-cert-manager-and-lets-encrypt/
This file contains 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
// gcc -lcurl curl_without_error_handling.c && ./a.out | |
#include <curl/curl.h> | |
int main() { | |
CURL *curl = curl_easy_init(); | |
curl_easy_setopt(curl, CURLOPT_URL, "https://ziglang.org"); | |
curl_easy_perform(curl); | |
curl_easy_cleanup(curl); | |
return 0; |
This file contains 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
#include <Arduino.h> | |
#include <ESP8266WiFi.h> | |
#include <ESP8266WiFiMulti.h> | |
#include <ESP8266HTTPClient.h> | |
#include <WiFiClient.h> | |
#define SSID "your-ssid" | |
#define PASSWORD "your-passwd" | |
#define INFLUXDB_URL "http://localhost:8086/api/v2/write?org=your-org&bucket=your-bucket" |
This file contains 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
# In ~/.vimrc | |
set ts=4 " tab 크기를 4칸으로 | |
set sw=4 | |
set autoindent " 자동 들여쓰기 | |
syntax on " syntax highlighting on | |
set nu " 줄 번호 표시 |
This file contains 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
# https://www.digitalocean.com/community/tutorials/how-to-set-up-a-samba-share-for-a-small-organization-on-ubuntu-16-04 | |
docker run --rm -it \ | |
-p 445:445 \ | |
-v ~/tmp/nas/data:/samba/data \ | |
-e SMB_USERNAME=jane \ | |
-e SMB_USERPASSWD=jane \ | |
ubuntu /bin/bash | |
apt update && apt upgrade -y | |
apt install -y samba |
This file contains 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
// Based on https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WebServer/examples/HelloServer/HelloServer.ino | |
// Description | |
// Control built-in led in NodeMCU. | |
// Edit your SSID and PASSWD (line 19, 20) | |
// Usage | |
// / -> blink shortly | |
// /on -> turn led on | |
// /off -> turn led off |
This file contains 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
#include <stdio.h> | |
#include "pico/stdlib.h" | |
#include "hardware/i2c.h" | |
struct calibration_data { | |
int16_t AC1; | |
int16_t AC2; | |
int16_t AC3; | |
uint16_t AC4; | |
uint16_t AC5; |
This file contains 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
void setup() { | |
pinMode(13, OUTPUT); | |
OCR0A = 0xF9; // 249 | |
TCCR0B = (1 << WGM01) | (1 << CS01); // CTC, prescale | |
TIMSK0 = (1 << OCIE1A); // interrupt | |
} | |
void loop() { | |
} |
NewerOlder