A brief example on how to use npx to run gist based scripts.
Read the article here https://neutrondev.com/npm-vs-npx-whats-the-difference/ or watch it on YouTube https://www.youtube.com/watch?v=fSHWc8RTJug
| package main | |
| import ( | |
| "log" | |
| "os" | |
| "github.com/fsnotify/fsnotify" | |
| "github.com/therecipe/qt/core" | |
| "github.com/therecipe/qt/gui" | |
| "github.com/therecipe/qt/qml" |
A brief example on how to use npx to run gist based scripts.
Read the article here https://neutrondev.com/npm-vs-npx-whats-the-difference/ or watch it on YouTube https://www.youtube.com/watch?v=fSHWc8RTJug
You can now read this on my (pretty) website! Check it out here.
Every reason to get more HackerPoints™ is a good one, so today we're going to
write a neat command line app in .NET Core! The Common library has a really cool
package Microsoft.Extensions.CommandlineUtils to help us parse command line
arguments and structure our app, but sadly it's undocumented.
No more! In this guide, we'll explore the package and write a really neat
| #!/bin/bash | |
| sysctl net.core.rmem_default=268435456 | |
| sysctl net.core.wmem_default=268435456 | |
| sysctl net.core.rmem_max=268435456 | |
| sysctl net.core.wmem_max=268435456 | |
| sysctl net.core.netdev_max_backlog=100000 | |
| sysctl "net.ipv4.tcp_rmem=4096 16384 134217728" | |
| sysctl "net.ipv4.tcp_wmem=4096 16384 134217728" | |
| sysctl "net.ipv4.tcp_mem=786432 1048576 268435456" |
| package main | |
| import ( | |
| "net/http" | |
| "database/sql" | |
| "fmt" | |
| "log" | |
| "os" | |
| ) |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| char srvIP[] = "256.256.256.256"; | |
| char srvHost[] = "myhost.mydomain.tld"; | |
| int srvPort = 80; | |
| char srvPath[] = "/?l=test1"; | |
| void setup() { | |
| delay(5000); | |
| pinMode(D7, OUTPUT); |
| package main | |
| import ( | |
| "encoding/json" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| ) | |
| type Message struct { |
| [ | |
| { | |
| "class": "sidebar_container", | |
| // $base01: #586e75 | |
| "layer0.tint": [88,110,117], | |
| "layer0.opacity": 1.0, | |
| "layer0.draw_center": false, | |
| "layer0.inner_margin": [0, 0, 1, 0], | |
| "content_margin": [0, 0, 1, 0] |
| import webapp2, tweepy | |
| consumer_token = 'CONSUMER KEY' | |
| consumer_secret = 'CONSUMER SECRET' | |
| auth = tweepy.OAuthHandler(consumer_token, consumer_secret) | |
| class Twitter(webapp2.RequestHandler): | |
| def get(self): | |
| oauth_token = self.request.get("oauth_token") | |
| oauth_verifier = self.request.get("oauth_verifier") |