Skip to content

Instantly share code, notes, and snippets.

Vyos Example

install

install images

set static ip

set interfaces ethernet eth0 address 10.10.31.200/24

set dhcp client

@hunzo
hunzo / vyos-optimisations
Created February 26, 2023 04:20 — forked from RafPe/vyos-optimisations
vyos throughput optimizations
Server 2 sockets,6 cores each, 2.4ghz
# Set ixgbe options
# Limit RSS queues to the number of physical cores per cpu
# Disable offload
# When you change this, you need to run the command and reboot for it to take.
echo "options ixgbe LRO=0,0 MQ=1,1 RSS=6,6 VMDQ=0,0 vxlan_rx=0,0" > /etc/modprobe.d/ixgbe.conf
# Shut down HT cores
for i in $(seq 1 2 23); do
@jahtzee
jahtzee / prompts.txt
Last active June 11, 2024 06:33
ChatGPT Jailbreaking prompts, exploits and other fun stuff
These are some exploits, jailbreaks, tricks, whatever you want to call them I've collected and discovered over time.
==== Games and fun stuff ====
== Set up a virtual machine inside GPTs imagination ==
"I want you to act as a Linux terminal. I will type commands and you will reply with what the terminal should show. I want you to only reply with the terminal output inside one unique code block, and nothing else. Do not write explanations. Do not type commands unless I instruct you to do so. When I need to tell you something in English I will do so by putting text inside curly brackets {like this}. My first command is pwd."
== Play a tabletop RPG with GPT as the dungeon master ==
"I want you to act as the dungeon master (DM) of a role playing game. Answer and act only in a way that a dungeon master would.
You are setting up a role playing game with only one other player. Everything you say as the dungeon master begins with (DM): followed by whatever you want to say. You will regularly ask me, the player, to
@bmaupin
bmaupin / install-oracle-client-ubuntu.md
Last active February 2, 2024 04:38
Install Oracle client on Ubuntu

Reference: https://help.ubuntu.com/community/Oracle%20Instant%20Client

Tested on: Ubuntu 18.04, 20.04

  1. Decide which version of the Oracle client to install

  2. Download the Oracle client packages

@cecilemuller
cecilemuller / 2019-https-localhost.md
Last active July 2, 2024 20:44
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@cbj4074
cbj4074 / oracle-instant-client.sh
Created May 17, 2018 16:19
Shell script to install Oracle OCI8 extension for PHP on Ubuntu
#!/bin/sh
echo 'Installing Oracle Instant Client...'
export DEBIAN_FRONTEND=noninteractive
apt-get -yq install libaio1 unzip php-dev
# See: http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html#ic_x64_inst
client_version='12_2'
@inwdragon
inwdragon / install-thsn-for-ubuntu-terminal
Created May 11, 2018 10:56
Install "TH Sarabun New" Font for Ubuntu terminal
#! /bin/bash
# Last updated 2018-05-11
# auther: inwdragon
APP_VERSION="0.8"
echo "# Install TH Sarabun New Font for Ubuntu terminal."
echo "# Version $APP_VERSION"
echo ""
@DusanMadar
DusanMadar / TorPrivoxyPython.md
Last active July 7, 2024 04:59
A step-by-step guide how to use Python with Tor and Privoxy

A step-by-step guide how to use Python with Tor and Privoxy

Latest revision: 2021-12-05.

Tested on Ubuntu 18.04 Docker container. The Dockerfile is a single line FROM ubuntu:18.04. Alternatively, you can simply run docker run -it ubuntu:18.04 bash.

NOTE: stopping services didn't work for me for some reason. That's why there is kill $(pidof <service name>) after each failed service <service name> stop to kill it.

References

คำสั่ง หน้าที่ รายละเอียด
File/Directory Basics
ls List files แสดงรายชื่อไฟล์และไดเร็คทอรี่
cp Copy files สำเนาไฟล์
mv Rename files เปลี่ยนชื่อไฟล์
rm Delete files ลบไฟล์
ln Link files สร้างไฟล์เชื่อมโยง
cd Change directory ย้ายไปยังไดเร็คทอรี่ที่ต้องการ
pwd Print current directory name แสดงชื่อไดเร็คทอรี่ปัจจุบัน
mkdir Create directory สร้างไดเร็คทอรี่ใหม่