Skip to content

Instantly share code, notes, and snippets.

@ntddk
Last active August 29, 2015 14:09
Show Gist options
  • Save ntddk/fd5b5d8bbf2599b0778f to your computer and use it in GitHub Desktop.
Save ntddk/fd5b5d8bbf2599b0778f to your computer and use it in GitHub Desktop.
paiza.io
# ls / -al
-rwx------ 1 root root 17530430 Nov 13 07:52 .dockerinit
drwxr-xr-x 7 root root 60 Nov 13 05:06 .gem
drwxr-xr-x 36 root root 720 Nov 13 04:31 .npm
drwxr-xr-x 2 root root 540 Nov 13 04:37 bin
drwxr-xr-x 2 root root 40 Apr 10 2014 boot
drwxr-xr-x 4 root root 340 Nov 18 05:56 dev
drwxr-xr-x 213 root root 120 Nov 18 05:56 etc
-rw-r--r-- 1 root root 24828 Nov 13 04:36 fuse.deb
drwxr-xr-x 3 root root 60 Nov 13 04:36 home
drwxr-xr-x 24 root root 60 Nov 13 04:40 lib
drwxr-xr-x 2 root root 60 Oct 20 03:33 lib64
drwxr-xr-x 2 root root 40 Oct 20 03:33 media
drwxr-xr-x 2 root root 40 Apr 10 2014 mnt
drwxr-xr-x 10 root root 200 Nov 13 05:04 nltk_data
drwxr-xr-x 2 root root 40 Oct 20 03:33 opt
dr-xr-xr-x 188 root root 0 Nov 18 05:56 proc
drwx------ 2 root root 80 Oct 20 03:34 root
drwxr-xr-x 8 root root 60 Nov 13 04:40 run
drwxr-xr-x 2 root root 580 Nov 13 04:37 sbin
-rw-r--r-- 1 root root 26488789 Jul 23 06:55 scala-2.11.2.tgz
drwxr-xr-x 2 root root 40 Oct 20 03:33 srv
dr-xr-xr-x 13 root root 0 Nov 18 05:56 sys
drwxrwxrwt 9 root root 40 Nov 13 05:06 tmp
drwxr-xr-x 142 root root 120 Nov 13 05:05 usr
drwxr-xr-x 118 root root 60 Nov 13 05:06 var
drwxrwxr-x 2 ubuntu ubuntu 4096 Nov 18 05:56 workspace
# ps -aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 4444 656 ? Ss 05:29 0:00 sh -c /sbin/ifconfig eth0 > ifconfig.txt; rm ifconfig.txt; /usr/bin/time -v -o exec_time.txt ./run_user runner3 bash Main.sh <exec_stdin.txt >exec_stdout.txt 2>exec_stderr.txt;echo $? > exec_exit_code.txt
root 9 0.0 0.0 4332 352 ? S 05:29 0:00 /usr/bin/time -v -o exec_time.txt ./run_user runner3 bash Main.sh
runner3 10 0.0 0.0 17960 1216 ? S 05:29 0:00 bash Main.sh
runner3 11 0.0 0.0 15568 1132 ? R 05:29 0:00 ps aux
# ls /workspace
Main.sh
exec_stderr.txt
exec_stdin.txt
exec_stdout.txt
main.tar.gz
run_user
runner_mysql
# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 62
model name : Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz
stepping : 4
microcode : 0x415
cpu MHz : 2793.340
cache size : 25600 KB
physical id : 0
siblings : 8
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm xsaveopt fsgsbase smep erms
bogomips : 5586.68
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 62
model name : Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz
stepping : 4
microcode : 0x415
cpu MHz : 2793.340
cache size : 25600 KB
physical id : 0
siblings : 8
core id : 1
cpu cores : 4
apicid : 2
initial apicid : 2
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm xsaveopt fsgsbase smep erms
bogomips : 5586.68
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 62
model name : Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz
stepping : 4
microcode : 0x415
cpu MHz : 2793.340
cache size : 25600 KB
physical id : 0
siblings : 8
core id : 2
cpu cores : 4
apicid : 4
initial apicid : 4
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm xsaveopt fsgsbase smep erms
bogomips : 5586.68
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 62
model name : Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz
stepping : 4
microcode : 0x415
cpu MHz : 2793.340
cache size : 25600 KB
physical id : 0
siblings : 8
core id : 3
cpu cores : 4
apicid : 6
initial apicid : 6
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm xsaveopt fsgsbase smep erms
bogomips : 5586.68
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
processor : 4
vendor_id : GenuineIntel
cpu family : 6
model : 62
model name : Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz
stepping : 4
microcode : 0x415
cpu MHz : 2793.340
cache size : 25600 KB
physical id : 0
siblings : 8
core id : 0
cpu cores : 4
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm xsaveopt fsgsbase smep erms
bogomips : 5586.68
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
processor : 5
vendor_id : GenuineIntel
cpu family : 6
model : 62
model name : Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz
stepping : 4
microcode : 0x415
cpu MHz : 2793.340
cache size : 25600 KB
physical id : 0
siblings : 8
core id : 1
cpu cores : 4
apicid : 3
initial apicid : 3
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm xsaveopt fsgsbase smep erms
bogomips : 5586.68
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
processor : 6
vendor_id : GenuineIntel
cpu family : 6
model : 62
model name : Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz
stepping : 4
microcode : 0x415
cpu MHz : 2793.340
cache size : 25600 KB
physical id : 0
siblings : 8
core id : 2
cpu cores : 4
apicid : 5
initial apicid : 5
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm xsaveopt fsgsbase smep erms
bogomips : 5586.68
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
processor : 7
vendor_id : GenuineIntel
cpu family : 6
model : 62
model name : Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz
stepping : 4
microcode : 0x415
cpu MHz : 2793.340
cache size : 25600 KB
physical id : 0
siblings : 8
core id : 3
cpu cores : 4
apicid : 7
initial apicid : 7
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm xsaveopt fsgsbase smep erms
bogomips : 5586.68
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
# nc -zv 172.17.42.1 22
Connection to 172.17.42.1 22 port [tcp/ssh] succeeded!
# ifconfig
eth0 Link encap:Ethernet HWaddr 66:6e:e3:5b:c0:f0
inet addr:172.17.152.129 Bcast:0.0.0.0 Mask:255.255.0.0
inet6 addr: fe80::646e:e3ff:fe5b:c0f0/64 Scope:Link
UP BROADCAST MTU:9001 Metric:1
RX packets:0 errors:0 dropped:2 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:90 (90.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:9001 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
# ls /etc/init
binfmt-support.conf
bootmisc.sh.conf
checkfs.sh.conf
checkroot-bootclean.sh.conf
checkroot.sh.conf
console-font.conf
console-setup.conf
console.conf
container-detect.conf
control-alt-delete.conf
cron.conf
dbus.conf
dmesg.conf
failsafe.conf
flush-early-job-log.conf
hostname.conf
hwclock-save.conf
hwclock.conf
kmod.conf
mountall-bootclean.sh.conf
mountall-net.conf
mountall-reboot.conf
mountall-shell.conf
mountall.conf
mountall.sh.conf
mountdevsubfs.sh.conf
mounted-debugfs.conf
mounted-dev.conf
mounted-proc.conf
mounted-run.conf
mounted-tmp.conf
mounted-var.conf
mountkernfs.sh.conf
mountnfs-bootclean.sh.conf
mountnfs.sh.conf
mtab.sh.conf
mysql.conf
network-interface-container.conf
network-interface-security.conf
network-interface.conf
networking.conf
passwd.conf
plymouth-log.conf
plymouth-ready.conf
plymouth-shutdown.conf
plymouth-splash.conf
plymouth-stop.conf
plymouth-upstart-bridge.conf
plymouth.conf
procps.conf
rc-sysinit.conf
rc.conf
rcS.conf
resolvconf.conf
rsyslog.conf
setvtrgb.conf
shutdown.conf
startpar-bridge.conf
systemd-logind.conf
tty1.conf
tty2.conf
tty3.conf
tty4.conf
tty5.conf
tty6.conf
udev-fallback-graphics.conf
udev-finish.conf
udev.conf
udevmonitor.conf
udevtrigger.conf
upstart-file-bridge.conf
upstart-socket-bridge.conf
upstart-udev-bridge.conf
ureadahead-other.conf
ureadahead.conf
wait-for-state.conf
# printenv
HOSTNAME=8e466d2beec3
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD=/workspace
RUNNER_USER=runner3
SHLVL=1
HOME=/
_=/usr/bin/printenv
# cat /proc/1/cgroup
11:name=systemd:/
10:hugetlb:/
9:perf_event:/docker/78bd6d426f9edcb335cfca363a4ed1ac9a016e797165acfaba7018457662322d
8:blkio:/docker/78bd6d426f9edcb335cfca363a4ed1ac9a016e797165acfaba7018457662322d
7:freezer:/docker/78bd6d426f9edcb335cfca363a4ed1ac9a016e797165acfaba7018457662322d
6:devices:/docker/78bd6d426f9edcb335cfca363a4ed1ac9a016e797165acfaba7018457662322d
5:memory:/docker/78bd6d426f9edcb335cfca363a4ed1ac9a016e797165acfaba7018457662322d
4:cpuacct:/docker/78bd6d426f9edcb335cfca363a4ed1ac9a016e797165acfaba7018457662322d
3:cpu:/docker/78bd6d426f9edcb335cfca363a4ed1ac9a016e797165acfaba7018457662322d
2:cpuset:/docker/78bd6d426f9edcb335cfca363a4ed1ac9a016e797165acfaba7018457662322d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment