An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| { | |
| "annotations": { | |
| "list": [ | |
| { | |
| "builtIn": 1, | |
| "datasource": "-- Grafana --", | |
| "enable": true, | |
| "hide": true, | |
| "iconColor": "rgba(0, 211, 255, 1)", | |
| "name": "Annotations & Alerts", |
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
A network bridge allows us to have a virtual router that we can plug multiple network interfaces into. The IP address is assigned to the bridge rather than the individual network interface.
Create the bridge device, br0 :
| using System; | |
| using System.Collections.Generic; | |
| namespace DesignPatterns.Factory.RealWorld | |
| { | |
| /// <summary> | |
| /// MainApp startup class for Real-World | |
| /// Factory Method Design Pattern. | |
| /// </summary> | |
| class MainApp |
| #include "stm32f10x.h" | |
| #include "stm32f10x_conf.h" | |
| int main(void) | |
| { | |
| GPIO_InitTypeDef GPIO_InitStructure; | |
| USART_InitTypeDef USART_InitStructure; | |
| uint16_t rxbuf[64]; | |
| int rxbuf_pos = 0; |
| add chain=input comment="Router: Allow established connections" connection-state=established | |
| add chain=input comment="Router: Allow related connections" connection-state=related | |
| add chain=input comment="Router: Allow IPv6 ICMP" protocol=icmpv6 | |
| add action=drop chain=input comment="Drop everything else" | |
| add chain=forward comment="LAN: Allow established connections" connection-state=established | |
| add chain=forward comment="LAN: Allow related connections" connection-state=related | |
| add chain=forward comment="LAN: Allow IPv6 ICMP" protocol=icmpv6 | |
| #example rule for opening port | |
| add chain=forward comment="LAN: Allow SSH" dst-port=22 protocol=tcp | |
| add chain=forward comment="Allow any to internet" out-interface=sixbone |
| $(document).ready(function() { | |
| // Support for AJAX loaded modal window. | |
| // Focuses on first input textbox after it loads the window. | |
| $('[data-toggle="modal"]').click(function(e) { | |
| e.preventDefault(); | |
| var url = $(this).attr('href'); | |
| if (url.indexOf('#') == 0) { | |
| $(url).modal('open'); | |
| } else { |