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 | |
from pathlib import Path | |
gen_peers = 10 | |
SERVER_Header_config = """ | |
[Interface] | |
Address = 172.16.0.1/24 | |
SaveConfig = true | |
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE |
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
#!/sbin/openrc-run | |
# by manesec. | |
# I need to use docker before mount cifs as docker data. | |
# Here is openrc service config example. | |
# Need to modify /etc/init.d/docker file. | |
#!/sbin/openrc-run | |
depend() { |
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
# [bingDailyWallpaper.py] by @manesec. | |
# Windows use only !! | |
# Run this program will change wallpaper on windows. | |
# This program using bing api to fetch bing Daily Wallpaper. | |
# Auto change wallpaper need to setup taskscheduler. | |
# taskscheduler: open "Run" (win + R) and type "taskschd.msc". | |
# pip3 install requests | |
import json, requests |
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
# steam download domain not include store page. | |
# by manesec. | |
lancache.steamcontent.com | |
content.steampowered.com | |
content1.steampowered.com | |
content2.steampowered.com | |
content3.steampowered.com | |
content4.steampowered.com | |
content5.steampowered.com |
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
# python3 using win32evtlog dump all event log | |
# Write by mane. | |
import win32evtlog | |
# Enum all windows eventlog | |
logenum = win32evtlog.EvtOpenChannelEnum() | |
obj = win32evtlog.EvtNextChannelPath(logenum) | |
count= 1 | |
while obj != None: |
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
filetype plugin indent on | |
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
set nu | |
set encoding=utf-8 | |
set guifont=Consolas:h16:cANSI:qDRAFT | |
set spelllang=en_us | |
colorscheme gruvbox " -- installed colorscheme |
NewerOlder