Some resources on kernel builds:
- https://kernelnewbies.org/KernelBuild
- https://www.tecmint.com/install-upgrade-kernel-version-in-centos-7/
- https://help.ubuntu.com/community/RemoveOldKernels
Setup instructions:
resolver 8.8.8.8 8.8.4.4 valid=10s; | |
limit_req_zone $binary_remote_addr zone=mylimit:10m rate=10r/s; | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name _; | |
return 301 https://$server_name$request_uri; | |
} |
//Install Macports. | |
//Install aircrack-ng: | |
sudo port install aircrack-ng | |
//Install the latest Xcode, with the Command Line Tools. | |
//Create the following symlink: | |
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport | |
//Figure out which channel you need to sniff: | |
sudo airport -s | |
sudo airport en1 sniff [CHANNEL] |
#!/usr/bin/env python | |
from concurrent import futures | |
import multiprocessing as mp | |
import os | |
import json | |
import uuid | |
from bs4 import BeautifulSoup | |
from markdown import markdown | |
import requests |
{ | |
"requires": true, | |
"lockfileVersion": 1, | |
"dependencies": { | |
"async-limiter": { | |
"version": "1.0.0", | |
"resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.0.tgz", | |
"integrity": "sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg==" | |
}, | |
"safe-buffer": { |
Some resources on kernel builds:
Setup instructions:
# vi: set ft=ruby ts=2 : | |
Vagrant.configure("2") do |config| | |
config.vm.define "master", primary: true do |master| | |
master.vm.box = "geerlingguy/ubuntu1604" | |
master.vm.network "private_network", type: "static", ip: "172.28.128.3" | |
master.vm.hostname = "pgmaster" | |
config.vm.provider "virtualbox" do |vb| | |
vb.name = "pgmaster" | |
vb.memory = 2048 | |
vb.cpus = 1 |
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
OP: @leonardofed founder @ plainflow.
var express = require('express') | |
var router = express.Router() | |
// middleware that is specific to this router | |
router.use(function timeLog (req, res, next) { | |
console.log('Time: ', Date.now()) | |
next() | |
}) | |
// define the home page route | |
router.get('/', function (req, res) { |
# Run postgres 9.6 | |
docker exec -it db bash | |
gosu postgres psql | |
DB_STUFF=<<EOF | |
CREATE DATABASE critical_app | |
\c critical_app | |
CREATE TABLE guestbook (visitor_email text, vistor_id serial, date timestamp, message text); | |
INSERT INTO guestbook (visitor_email, date, message) VALUES ('[email protected]', current_date, 'This is a test.'); | |
INSERT INTO guestbook (visitor_email, date, message) VALUES ('[email protected]', current_date, 'Another test.'); | |
INSERT INTO guestbook (visitor_email, date, message) VALUES ('[email protected]', current_date, 'Final test.'); |
""" | |
Case 1: B, C are connected to A | |
""" | |
class A(object): pass | |
class B(A): pass | |
class C(A): pass | |
class D(B, C): pass | |
assert D.__mro__ == (D, B, C, A, object) |