This file contains 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
#!/bin/bash | |
# | |
# rar2zip conversion script | |
# Based on: https://shkspr.mobi/blog/2016/12/converting-rar-to-zip-in-linux/ | |
# | |
# Usage: rar2zip.sh file [file ...] | |
echo "Converting RARs to ZIPs" | |
# Use /tmp for temporary files. |
This file contains 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
syuu@X1CARBON:~$ sudo parted /dev/sda | |
GNU Parted 3.2 | |
Using /dev/sda | |
Welcome to GNU Parted! Type 'help' to view a list of commands. | |
(parted) p | |
Model: Msft Virtual Disk (scsi) | |
Disk /dev/sda: 275GB | |
Sector size (logical/physical): 512B/4096B | |
Partition Table: loop | |
Disk Flags: |
This file contains 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
syuu@X1CARBON:~$ genie -c /bin/bash | |
syuu@X1CARBON-wsl:~$ ps axf | |
PID TTY STAT TIME COMMAND | |
769 pts/0 S 0:00 /sbin/runuser -u syuu -- /lib/genie/runinwsl.sh /bin/bash | |
770 pts/0 S 0:00 \_ /bin/bash | |
782 pts/0 R+ 0:00 \_ ps axf | |
1 ? Ss 0:00 /lib/systemd/systemd | |
49 ? S<s 0:00 /lib/systemd/systemd-journald | |
53 ? Ss 0:00 /sbin/lvmetad -f | |
57 ? Ss 0:00 /lib/systemd/systemd-udevd |
This file contains 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
syuu@X1CARBON:/mnt/c/Users/syuu$ dmesg | |
[ 0.000000] Linux version 4.19.84-microsoft-standard (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Wed Nov 13 11:44:37 UTC 2019 [ 0.000000] Command line: initrd=\initrd.img panic=-1 pty.legacy_count=0 nr_cpus=8 | |
[ 0.000000] KERNEL supported cpus: | |
[ 0.000000] Intel GenuineIntel | |
[ 0.000000] AMD AuthenticAMD | |
[ 0.000000] Centaur CentaurHauls | |
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers' | |
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers' | |
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers' | |
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256 [ 0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'compacted' format. |
This file contains 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
[ 0.905463] usb usb4: SerialNumber: 0000:03:00.4 | |
[ 0.905547] hub 4-0:1.0: USB hub found | |
[ 0.905567] hub 4-0:1.0: 1 port detected | |
[ 0.905673] xhci_hcd 0000:03:00.4: xHCI Host Controller | |
[ 0.905712] xhci_hcd 0000:03:00.4: new USB bus registered, assigned bus number 5 | |
[ 0.905736] xhci_hcd 0000:03:00.4: Host supports USB 3.1 Enhanced SuperSpeed | |
[ 0.905781] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM. | |
[ 0.905820] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.05 | |
[ 0.905845] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1 | |
[ 0.905868] usb usb5: Product: xHCI Host Controller |
This file contains 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
[ 0.905463] usb usb4: SerialNumber: 0000:03:00.4 | |
[ 0.905547] hub 4-0:1.0: USB hub found | |
[ 0.905567] hub 4-0:1.0: 1 port detected | |
[ 0.905673] xhci_hcd 0000:03:00.4: xHCI Host Controller | |
[ 0.905712] xhci_hcd 0000:03:00.4: new USB bus registered, assigned bus number 5 | |
[ 0.905736] xhci_hcd 0000:03:00.4: Host supports USB 3.1 Enhanced SuperSpeed | |
[ 0.905781] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM. | |
[ 0.905820] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.05 | |
[ 0.905845] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1 | |
[ 0.905868] usb usb5: Product: xHCI Host Controller |
This file contains 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
29034 ? Ss 0:00 \_ sshd: syuu [priv] | |
29037 ? S 0:12 | \_ sshd: syuu@notty | |
29038 ? Ss 0:00 | \_ sh -c if nc -q 2>&1 | grep "requires an argument" >/dev/null 2>&1; then ARG=-q0;else ARG=;fi;nc $ARG -U /var/run/libvirt/libvirt-sock | |
29054 ? S 0:09 | \_ nc -U /var/run/libvirt/libvirt-sock | |
30169 ? Ss 0:00 \_ sshd: syuu [priv] | |
30172 ? S 0:00 | \_ sshd: syuu@notty | |
30173 ? Ss 0:00 | \_ sh -c nc -q 2>&1 | grep "requires an argument" >/dev/null;if [ $? -eq 0 ] ; then CMD="nc -q 0 127.0.0.1 5900";else CMD="nc 127.0.0.1 5900";fi;eval "$CMD"; | |
30189 ? S 0:00 | \_ nc 127.0.0.1 5900 | |
30190 ? Ss 0:00 \_ sshd: syuu [priv] | |
30193 ? S 0:00 | \_ sshd: syuu@notty |
This file contains 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
[root@4b447ac99262 scylla.50]# yum install build/redhat/RPMS/x86_64/scylla-* /home/syuu/scylla-tools-java/build/redhat/RPMS/noarch/scylla-tools-* /home/syuu/scylla-jmx/build//redhat/RPMS/noarch/scylla-jmx-666.development-20190618.dfe7db4.noarch.rpm | |
Loaded plugins: fastestmirror, ovl | |
Examining build/redhat/RPMS/x86_64/scylla-666.development-0.20190626.0803176cb.el7.x86_64.rpm: scylla-666.development-0.20190626.0803176cb.el7.x86_64 | |
Marking build/redhat/RPMS/x86_64/scylla-666.development-0.20190626.0803176cb.el7.x86_64.rpm as an update to scylla-3.0.7-0.20190528.4c16c1fe1.el7.x86_64 | |
Examining build/redhat/RPMS/x86_64/scylla-conf-666.development-0.20190626.0803176cb.el7.x86_64.rpm: scylla-conf-666.development-0.20190626.0803176cb.el7.x86_64 | |
Marking build/redhat/RPMS/x86_64/scylla-conf-666.development-0.20190626.0803176cb.el7.x86_64.rpm as an update to scylla-conf-3.0.7-0.20190528.4c16c1fe1.el7.x86_64 | |
Examining build/redhat/RPMS/x86_64/scylla-debuginfo-666.development-0.20190626.0803176cb.el7.x86_64.rpm: scylla-d |
This file contains 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
// secblock.h - written and placed in the public domain by Wei Dai | |
#ifndef CRYPTOPP_SECBLOCK_H | |
#define CRYPTOPP_SECBLOCK_H | |
#include "config.h" | |
#include "misc.h" | |
#include <assert.h> | |
NAMESPACE_BEGIN(CryptoPP) |
This file contains 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
syuu@monster:~$ sh | |
$ mkdir -p a/{aa,bb}/{cc,dd}/ee | |
$ ls -l a | |
total 0 | |
drwxrwxr-x 3 syuu syuu 21 Dec 22 19:21 {aa,bb} | |
$ exit | |
syuu@monster:~$ bash | |
syuu@monster:~$ mkdir -p b/{aa,bb}/{cc,dd}/ee | |
syuu@monster:~$ ls b | |
aa bb |