Skip to content

Instantly share code, notes, and snippets.

View erolg's full-sized avatar

Erol Guzoğlu erolg

  • Trendyol
  • Istanbul, Turkey
View GitHub Profile
-- Logs begin at Thu 2019-08-01 08:40:37 UTC, end at Thu 2019-08-01 08:43:27 UTC. --
Aug 01 08:40:37 debian kernel: Linux version 4.9.0-9-amd64 (debian-kernel@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) ) #1 SMP Debian 4.9.168-1+deb9u4 (2019-07-19)
Aug 01 08:40:37 debian kernel: Command line: selinux=0 troubleshoot=0 text systemd.journald.forward_to_console=yes BOOTIF=00:9c:02:9b:90:b4 ipa-api-url=http://192.168.199.73:6385 initrd=deploy_ramdisk coreos.configdrive=0
Aug 01 08:40:37 debian kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
Aug 01 08:40:37 debian kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
Aug 01 08:40:37 debian kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
Aug 01 08:40:37 debian kernel: x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
Aug 01 08:40:37 debian kernel: x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
Aug 01 08:40:37 debian kernel: e820: BIO
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 65866860 1107888 64758972 2% /
sysfs 0 0 0 - /sys
proc 0 0 0 - /proc
devtmpfs 65866872 0 65866872 0% /dev
securityfs 0 0 0 - /sys/kernel/security
tmpfs 65999104 0 65999104 0% /dev/shm
devpts 0 0 0 - /dev/pts
tmpfs 65999104 9452 65989652 1% /run
tmpfs 5120 0 5120 0% /run/lock
String file contents
@erolg
erolg / mos-websso.rst
Created October 16, 2017 23:39 — forked from bretonium/mos-websso.rst
How to configure Mirantis OpenStack for WebSSO via Okta
  • To use openstack cli you need to switch it to using v3 API. Do this:
    1. cp openrc openrc.v3
    2. edit openrc.v3 and
      • add there this line: export OS_IDENTITY_API_VERSION=3
      • change OS_AUTH_URL to point to v3.
  • Create an identity provider

    openstack identity provider create idp_1 # idp_1 is an id. Use any you like. I like idp_1

root@node-11:~# ip netns exec qdhcp-68caed36-ab8d-45ab-8ea3-26248509bbbe tcpdump -i any port 67 or port 68 or port 69
17:27:17.936382 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:17:a4:77:00:1e (oui Unknown), length 300
17:27:24.312534 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:17:a4:77:00:1e (oui Unknown), length 300
17:27:32.554690 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:17:a4:77:00:1e (oui Unknown), length 300
17:27:36.991999 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from fa:16:3e:cd:37:eb (oui Unknown), length 300
17:27:36.992340 IP 192.168.105.53.bootps > 192.168.105.54.bootpc: BOOTP/DHCP, Reply, length 332
17:27:36.993524 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from fa:16:3e:cd:37:eb (oui Unknown), length 300
17:27:46.008282 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:17:a4:77:00:1e (oui Unknown), length 300
17:27:55.944932 IP 0.0.0.0.bootpc >
@erolg
erolg / Au Wifi Net Configuration
Created October 7, 2015 18:25
Au Wifi Net Problem
[ipv6]
method=auto
[connection]
id=AU WiFi Net
uuid=c3fb6697-bc91-4379-bb4c-25bd6106b672
type=802-11-wireless
[802-11-wireless-security]
key-mgmt=wpa-eap
<div class="ui secondary segment">
<div class="field">
<%= f.label :title %>
<%= f.text_field :title %>
</div>
<div class="field">
<%= f.label :content %>
<%= f.text_area :content, as: :text%>
</div>
<div class="three wide field">
root@weblinux:~# zdaemon -C /opt/indico/etc/zdctl.conf start
. . Traceback (most recent call last):
File "/usr/local/bin/zdaemon", line 9, in <module>
load_entry_point('zdaemon==3.0.5', 'console_scripts', 'zdaemon')()
File "/usr/local/lib/python2.7/dist-packages/zdaemon-3.0.5-py2.7.egg/zdaemon/zdctl.py", line 610, in main
return zdaemon.zdrun.main(args)
File "/usr/local/lib/python2.7/dist-packages/zdaemon-3.0.5-py2.7.egg/zdaemon/zdrun.py", line 699, in main
d.main(args)
File "/usr/local/lib/python2.7/dist-packages/zdaemon-3.0.5-py2.7.egg/zdaemon/zdrun.py", line 227, in main
self.run()
@erolg
erolg / recursion.rb
Last active August 29, 2015 14:12
Ruby Recursion
def rec i
if i==10000
return i
else
i=i+1
rec(i)
end
end
x = rec(2)
@erolg
erolg / todo.md
Last active August 29, 2015 14:05 — forked from carlsednaoui/todo.md

To do

  • Share HN post on Twitter

Next

  • Raise $1MM
  • Retire

New: Nested TODOs