less {filename}
Navigation | |
---|---|
SPACE |
forward one window |
b |
backward one window |
d |
forward half window |
consumer_key = 'your-consumer-key' | |
consumer_secret = 'your-consumer-secret' | |
access_token = 'your-access-token' | |
access_secret = 'your-access-secret' |
#!/bin/bash | |
# This script will create a visual comparison of the | |
# output of the two DNS servers defined as NS0 and | |
# NS1 for the fqdn defined in DOMAINS | |
# | |
# Created: 2018-05-27 | |
# Author: Sebastian <[email protected]> | |
# | |
# Source: https://stackoverflow.com/a/29079962/683977 |
In production, it is recommended to minify any JavaScript code that is included with your application. Minification can help your website load several times faster, especially as the size of your JavaScript source code grows.
Here's one way to set it up:
npm init -y
in your project folder (don't skip this step!)npm install terser
Now, to minify a file called like_button.js
, run in the terminal:
import random | |
import re | |
# python3 | |
# STAGE 1 | |
""" | |
stage1 = 'Ӈ#7ùª9¨M¤À.áÔ¥6¦¨¹.ÿÓÂ.Ö£JºÓ¹WþÊmãÖÚG¤ ¢dÈ9&òªћ#³1᧨' | |
out = "" | |
key = "\x82\x1e\x0a\x9a" |
Git sees every file in your working copy as one of three things:
Ignored files are usually build artifacts and machine generated files that can be derived from your repository source or should otherwise not be committed. Some common examples are:
#!/usr/bin/env bash | |
# Author: Josh Stroschein | |
# Source: https://askubuntu.com/questions/244641/how-to-set-up-and-use-a-virtual-python-environment-in-ubuntu | |
# NOTES: Run this script as: sudo -u <USERNAME> cuckoo-setup-virtualenv.sh | |
# Additionally, your environment may not allow the script to source bashrc and you may need to do this manually after the script completes | |
# install virtualenv | |
sudo apt-get update && sudo apt-get -y install virtualenv |
#!/usr/bin/env bash | |
# Author: Josh Stroschein | |
# Date: 22 Nov 2020 | |
# Reference: https://suricata-update.readthedocs.io/en/latest/quickstart.html#directories-and-permissions | |
if (($EUID != 0)); then | |
echo -e "[!] Please run this script as root or with \"sudo\"\n" | |
exit 1 | |
fi |
#!/usr/bin/env bash | |
PCAPFILE=$1 | |
LOG_LOCATION='/tmp/suricata/' | |
if [ -z $PCAPFILE ] || [ ! -f $PCAPFILE ]; then | |
echo "File ${PCAPFILE} doesnt seem to be there - please supply a pcap file." | |
exit 1; | |
fi |