Skip to content

Instantly share code, notes, and snippets.

@freekode
freekode / gist:2ece26cff5f26c091cde9cb6fe89108d
Created October 5, 2019 11:02
TSM Groups & Operations Classic
^1^T^Soperations^T^SMailing^T^S#Default^T^Srestock^b^SmaxQty^N10^SkeepQty^N0^Starget^S^SrestockSources^T^Sguild^b^Sbank^b^t^SmaxQtyEnabled^b^t^t^SAuctioning^T^SSimple^T^SaboveMax^SnormalPrice^SnormalPrice^Scheck(first(crafting,dbmarket,dbregionmarketavg),max(2*avg(crafting,dbmarket,dbregionmarketavg),12*vendorsell))^Sduration^N3^SmatchStackSize^b^SkeepQuantity^N0^SpostCap^N5^SbidPercent^N0.96^SstackSizeIsCap^B^SmaxPrice^Scheck(first(crafting,dbmarket,dbregionmarketavg),max(5*avg(crafting,dbmarket,dbregionmarketavg),30*vendorsell))^SignoreLowDuration^N0^SstackSize^N20^SkeepPosted^N0^Sundercut^S1c^SmaxExpires^N0^SpriceReset^Snone^ScancelRepostThreshold^S1g^ScancelRepost^B^ScancelUndercut^B^SminPrice^Scheck(first(crafting,dbmarket,dbregionmarketavg),max(0.25*avg(crafting,dbmarket,dbregionmarketavg),1.5*vendorsell))^SkeepQtySources^T^t^Sblacklist^S^t^SMaterials^T^SaboveMax^SnormalPrice^SnormalPrice^Scheck(first(crafting,dbmarket,dbregionmarketavg),max(2*avg(crafting,dbmarket,dbregionmarketavg),12*vendorsell))^Sdu
$ sudo iptables -F
$ sudo iptables -F -t nat
Разрешаем принимать ответ на УЖЕ установленный соединени:
sudo iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
Разрешаем весь трафик с нашей внутренней сети (возьмем подсеть 222):
sudo iptables -A INPUT -s 192.168.222.0/24 -i eth1 -j ACCEPT
И, залог прозрачности! Перенапрявляем весь исходящий http-трафик (на порт 80) на порт сквида 3128:
>$ modprobe bttv card=70 tuner=40 radio=1 gbuffers=8 automute=0 gpiomask=0x3F audiomux=33,32,35,35,40 bttv_verbose=0
#!/bin/bash
drivename='sdc1'
drivecrypt='sdc1_crypt'
mountfolder='/mnt/backup/'
backupfolder='/home/freekode/'
folder1c='/home/freekode/smb/1c/'
#include <fcntl.h>
#include <unistd.h>
#include <linux/kd.h>
#include <sys/ioctl.h>
#include <stdio.h>
#include <time.h>
int main() {
int fd,j,k;
float i;
#ifndef DHT22_h
#define DHT22_h
#define DHTLIB_OK 0
#define DHTLIB_ERROR_CHECKSUM -1
#define DHTLIB_ERROR_TIMEOUT -2
#define DHTLIB_INVALID_VALUE -999
#define TIMEOUT 10000