Listing posts

Displaying posts 1 - 5 of 231 in total
Destiny Child game resources
mouse 304 · person cloud · link
Last update
2020-05-28
2020
05-28
« — »

User ID

1
[Cloud] [by7gk8yhh4ji]

Teams

N. Scope Notes Members
1 Ragna:Break DoT Neptune, Chang'e, Maat, Eve, N.Mona
2 Story exp, C2/2-4 Maat, Nicole/X, Charlotte, Y, Z
" NW/Dungeon LvlUp/Enh exp "
3 NW/Dungeon Gold exp Maat, Charlotte, Dana, Chang'e, Mafdet
" NW/Dungeon Evol exp "
4 NW/Re:Birth Lab exp, L5+2 N.Mona, Chang'e, Dana, Eve+Eve, Leda
5 NW/Dungeon Narr exp PowerUp, Chang'e, Dana, Maat, Eve/Thanatos/X
6
7-9 NW/Devil Rumble-PVP exp Bathory, Chang'e, Dana, Charlotte, Syrinx
- NW/Underground exp Dana, Merlin, Lan Fei, Charlotte, Mafdet

Ragna Teams

  • dark / SecretBride
    • Charlotte, Mafdet, Chang'e, Maat, Dana/N.Mona
  • fire / Demeter
    • Neptune, Chang'e, Maat, Eve, N.Mona
    • Pantheon, Neptune, Chang'e, N.Mona, Thanatos

World Boss

  • 3rd light / Aurora king
    • Front: Mars, Maat, Bathory, Chang'e, Eve | Dana, Leda, 3Jupiter, 1N.Mona, Pantheon
    • Rear: Saturn, SD.Mars, 2L.Werewolf, Midas, Werewolf | Khepri, Lisa, SB.Mona, Iphis, Durandal
  • 4th wood / Daphnis, Pan(v/e/p)
    • Front: Maat, Leda, Chang'e, Eve, Daoine | Dana, Mars, N.Mona, Bathory, Pantheon
    • Rear: Ailil, Tyrving, C.Bathory, Morgan, 2Jupiter, 1PS.Medb, Hermes, 3Ganesha, C.Leda, Midas

PvP Teams

  • Bathory, Pan, Isolde, Dana, Chang'e
  • Leda, Dana, Newbie Mona, Rita, Nicole

Resources

Soul Carta

  • eve: angelic smile
  • bathory: SOW
  • chang'e e neptune: showtime
  • dana: anniversary

Stacking of De/Buffs (post)

  • De/Buffs with different icons will always stack.
  • DE/Buffs with the same icon will override each other.
    The conditions are as follows:
    1. Buffs/debuffs from Drive Skills are considered to be in the highest tier, follow by Slide Skills, and lastly Tap Skills in the lowest tier.
    2. Higher tier buffs/debuffs will always override those from lower tiers. Lower tier buffs/debuffs will never override those from higher tiers and will simply be discarded.
    3. If the newly applied buffs/debuffs are in the same tier as the existing ones, the new one will always replace the old one regardless of whether the new one is stronger than the old one or not.
    4. Some exceptions are Regen buff and DoT debuffs (except Poison) which will stack.
  • Leader Buff lasts the entire fight even if the leader is KO'ed, and will never be overridden. If a new buff/debuff with the same effect as the leader buff is applied, the effects will stack.

Tools/Extra

Best leveling areas (exp/stamina ratio)

level nrm% st exp hard%
ch1
4-6 8.4 9 76 9.2
5-1 8.0 10 80 9.5
5-8 9.0 11 99 10.6
6-1 9.3 12 112 11.0
6-8 10.3 13 134 12
ch2
1-4 14.04 25 351
2-4 15.88 25 397

~~~ * ~~~

UFW firewall setup
mouse 828 · person cloud · link
Last update
2020-05-25
2020
05-25
« — »

If you are using it on a VPS then you have to enable iptables NAT beforehand.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
apt-get install ufw

# write rules in /lib/ufw/user.rules
ufw reset # reset to defaults
# set our defaults
ufw default allow outgoing
ufw default deny  incoming
ufw allow 22/tcp        comment ssh
ufw allow 80/tcp        comment http
ufw allow 443/tcp       comment https
ufw allow 1194/udp      comment openvpn
ufw allow 1100:1200/tcp # port range (proto required23)
ufw allow 53            # allow both tcp and udp (eg: DNS)
ufw allow from 1.2.3.4  # single host
ufw allow from 192.168.1.0/24 # subnet
ufw allow from 1.2.3.4 to any port 22 proto tcp

# block an IP if it has attempted to initiate 6 or more
# connections in the last 30 seconds
ufw limit 22/tcp

# show rules added before enabling firewall
ufw show added

# remove rule
ufw status numbered
ufw delete row_number

# show rules
ufw show added
ufw show raw

# other reports
ufw show builtins
ufw show before-rules
ufw show user-rules
ufw show after-rules
ufw show logging-rules

# start/stop/status service
ufw enable
ufw disable
ufw status
ufw status verbose
ufw reload # reload cfg

# see logs
ufw logging low # off/low/medium/high/full
tail -f /var/log/ufw.log

# show blocked incoming ports messages from log/dmesg/journalctl
dmesg | grep UFW | sed -r 's/.*(IN=[^ ]+).*(PROTO=[^ ]+).*(DPT=[^ ]+) .*/\1 \2 \3/' | sort -u

Notes:

  1. The order of rules is critical in ufw/iptables as a packet will match the first rule, subsequent rules are ignored.
  2. If something is wrong with filtering/logs you can try to purge and reinstall uwf (especially after a distribution upgrade).

Source: CyberCiti, ArchLinux

See also: Lullabot


~~~ * ~~~

Extract files from HAR
mouse 72 · person cloud · link
Last update
2020-05-23
2020
05-23
«HAR = HTTP Archive»
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env ruby
$VERBOSE = nil
%w{json base64}.each{|l| require l}

def die(msg, code=1); puts msg; exit code; end

die "File [#{ARGV[0] || '--'}] not found!" unless File.exist?(ARGV[0].to_s)

har = JSON.parse File.read ARGV[0] rescue nil
die "Not a JSON file!" unless har.is_a?(Hash)

har['log']['entries'].each do |e|
  begin
    url   = e['request']['url']
    fname = URI.parse(url).path[1..-1].tr('/', '_')

    content = e['response']['content']
    data = content['text']
    data = Base64.decode64 data if content['encoding'] == 'base64'

    File.open(fname, 'wb'){|f| f.write data }
  rescue
    puts "ERR: #{url}\n#{$!}\n\n"
  end
end

See also: har-extractor


~~~ * ~~~

Systemd spindown disks before shutdown
mouse 59 · person cloud · link
Last update
2020-05-23
2020
05-23
« — »
  • /lib/systemd/system/spindown-disks.service
1
2
3
4
5
6
7
8
9
10
11
12
13
[Unit]
Description=HDD spindown service
DefaultDependencies=no
After=umount.target
Before=shutdown.target reboot.target halt.target

[Service]
ExecStart=/opt/bin/spindown-disks.sh
Type=oneshot
RemainAfterExit=yes

[Install]
WantedBy=shutdown.target
1
2
3
systemctl daemon-reload
systemctl enable  spindown-disks.service
systemctl restart spindown-disks.service
  • /opt/bin/spindown-disks.sh
1
2
3
#!/bin/sh
for i in /dev/sd?; do /sbin/hdparm -Y $i; done
/bin/sleep 5

See also: my systemd-units repo

Source: raspberrypi.org forum USB HDD poweroff (HDD abruptly stop spinning when running the shutdown command)


~~~ * ~~~

patchelf | modifying ELF executables and libraries
mouse 30 · person cloud · link
Last update
2020-05-02
2020
05-02
«modify linux executable interpreter, library path, requirements»
1
2
3
4
5
6
apt install patchelf

patchelf \
  --set-interpreter /lib/ld-linux-x86-64.so.2 \
  --set-rpath       /opt/app/mylibs \
  ./elf-name

Source: github