Top HN posts
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
from lxml import etree, objectify | |
import sys | |
import argparse | |
import re | |
import os.path | |
import datetime | |
def f_colorise(string, color): | |
colors = { | |
'red': '\033[91m', |
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
package main | |
import "fmt" | |
// Single Responsibility Principle: | |
// Each struct has only a single responsibility. | |
// User struct represents a user in the system. | |
type User struct { | |
ID int | |
FirstName string |
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
These are all the useful commands I can think of right now that you don't need | |
to have root privileges to run. Some will be useful for Werewolves, others | |
might be useful for CtF contests, for the rest, who knows. | |
The five most important commands in Linux are: | |
apropos - search the manual page names and descriptions | |
help - bash built-in commands, see bash | |
info - readable online documentation | |
man - an interface to the on-line reference manuals | |
whatis - display manual page descriptions |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Debug AWS Lambda", | |
"program": "${workspaceRoot}/node_modules/.bin/sls", | |
"runtimeVersion": "12.20.2", | |
"args": [ |
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
const { EventEmitter } = require('events'); | |
var input = { | |
"orders": [ | |
[ | |
"Pepperoni", | |
"Mushrooms", | |
"Sausage" | |
] | |
] |
Here is the list of rendezvous point for xmr-btc-swap Atomic swap
/dnsaddr/rendezvous.coblox.tech/p2p/12D3KooWQUt9DkNZxEn2R5ymJzWj15MpG6mTW84kyd8vDaRZi46o
/dns4/rendezvous.xmr.radio/tcp/8888/p2p/12D3KooWN3n2MioS515ek6LoUBNwFKxtG2ribRpFkVwJufSr7ro7
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
<body class="align"> | |
<div class="grid"> | |
<form action="https://httpbin.org/post" method="POST" class="form login"> | |
<div class="form__field"> | |
<label for="login__username"><svg class="icon"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#user"></use></svg><span class="hidden">Username</span></label> | |
<input id="login__username" type="text" name="username" class="form__input" placeholder="Username" required> | |
</div> |
A Pen by Sachin Chavan on CodePen.
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
package main | |
import( | |
"fmt" | |
m "math" | |
"os" | |
"io/ioutil" | |
"net/http" | |
"strconv" | |
) |
NewerOlder