$ docker ps --format "table {{.ID}}\t{{.Image}}\t{{.Status}}\t{{.Names}}\t{{.Ports}}"
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from bs4 import BeautifulSoup | |
import urllib2 | |
import re | |
import unicodedata | |
class bcolors: | |
HEADER = '\033[95m' |
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 aes() { | |
mbedtls_cipher_context_t ctx; | |
mbedtls_cipher_context_t ctx2; | |
unsigned char error[1024]; | |
unsigned char key[32] = { | |
0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, | |
0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, | |
0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, |
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 ( | |
"io" | |
"log" | |
"net" | |
"net/http" | |
"time" | |
"github.com/prometheus/client_golang/prometheus" |
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" | |
"go/ast" | |
"go/parser" | |
"go/token" | |
"strings" | |
) |
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
func formatRequest(r *http.Request) string { | |
// Create return string | |
var request []string | |
// Add the request string | |
url := fmt.Sprintf("%v %v %v", r.Method, r.URL, r.Proto) | |
request = append(request, url) | |
// Add the host | |
request = append(request, fmt.Sprintf("Host: %v", r.Host)) | |
// Loop through headers | |
for name, headers := range r.Header { |
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
import random | |
class Node: | |
def __init__(self, id): | |
self.id = id | |
self.next = {} | |
def __str__(self): | |
return "{}".format(self.id) |
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
extern crate termion; | |
use std::fmt; | |
use std::io::{stdin, stdout, Write}; | |
use termion::clear; | |
use termion::color; | |
use termion::cursor; | |
use termion::event::Key; | |
use termion::input::TermRead; | |
use termion::raw::IntoRawMode; |
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 ( | |
"database/sql" | |
"database/sql/driver" | |
"flag" | |
"fmt" | |
"net" | |
"os" | |
"time" |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Hello Bulma!</title> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.8.2/css/bulma.min.css"> | |
<script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script> | |
</head> |
OlderNewer