Skip to content

Instantly share code, notes, and snippets.

View uranio-235's full-sized avatar
🐚
C# Developer at Work

Lázaro Armando uranio-235

🐚
C# Developer at Work
  • ChipojoSoft
  • Portugal
  • 10:35 (UTC +01:00)
View GitHub Profile
[root@artema desastedemi]# ls -l
ls: cannot access 'Preferences': No such file or directory
total 0
-????????? ? ? ? ? ? Preferences
#!/usr/bin/lftp -f
set net:connection-limit 1
set net:limit-rate 81920:81920
lcd /mnt
open 'http://ftp.sld.cu'
cd 'archlinux'
mirror -cve -x '.*i686.*' core
mirror -cve -x '.*i686.*' extra
mirror -cve -x '.*i686.*' community
mirror -cve -x '.*i686.*' multilib
========= /etc/rc.conf
firewall_enable="YES"
firewall_script="/usr/local/etc/ipfw.rules"
gateway_enable="YES"
natd_enable="YES"
natd_interface="xn2"
natd_flags="-dynamic -m"
iptables -t nat -A POSTROUTING -o $WAN -j MASQUERADE
iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -s 10.1.1.2 -j ACCEPT
10.1.1.2 is now 169.254.0.20
xn0 = LAN 10.1.1.0/24 (for users)
xn1 = LAN = 169.254.0.0/16 (for servers, a kind of DMZ)
root@quantum:~# netstat -ln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:3128 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp6 0 0 :::5298 :::* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 ::1:25 :::* LISTEN
@uranio-235
uranio-235 / ipfw
Created February 17, 2017 00:11
ipfw pipe
ipfw pipe 1 config bw 70KByte/s
ipfw add pipe 1 ip from any to 10.1.1.9 via xn0
ipfw add pipe 1 ip from any to 10.1.1.10 via xn0
ipfw add pipe 1 ip from any to 10.1.1.11 via xn0
<VirtualHost *:80>
ServerAdmin admin@hcg.sld.cu
ServerName latencia.dominio.tld
DocumentRoot /usr/share/smokeping/www/
ScriptAlias /smokeping.cgi /usr/lib/cgi-bin/smokeping.cgi
Alias /smokeping /usr/share/smokeping/www/
<Directory />
Options +ExecCGI
Options +FollowSymLinks
npm ERR! h5ai@0.29.0 build: `node ghu release`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the h5ai@0.29.0 build script.
npm ERR! This is most likely a problem with the h5ai package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ghu release
npm ERR! You can get their info via:
npm ERR! npm owner ls h5ai
@uranio-235
uranio-235 / gist:e44cf156c0c3c2cedcb03c618407a973
Last active November 30, 2016 22:47
~/.local/share/Steam/config/loginusers.vdf
"users"
{
"76561198309924420"
{
"AccountName" "fulanito"
"PersonaName" "Fulano de Tal"
"RememberPassword" "1"
"Timestamp" "1480539910"
"WantsOfflineMode" "0"
"SkipOfflineModeWarning" "0"
location / {
proxy_pass http://192.168.0.10:3000;
proxy_set_header Host $host;
}