Skip to content

Instantly share code, notes, and snippets.

View jaymzh's full-sized avatar

Phil Dibowitz jaymzh

View GitHub Profile
this is a test file
it has test content
127.0.0.1 localhost
10.1.1.2 rider.home.pv rider
2601:645:c300:3875::2 rider rider.home.pv
10.1.1.1 knight knight.home.pv
2601:645:c300:3875::1 knight knight.home.pv
10.1.1.3 alt alt.home.pv dev.ipom.com
2601:645:c300:3875::3 alt alt.home.pv
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
@jaymzh
jaymzh / testfile1.txt
Created September 14, 2019 06:45
test gist 2
test content in testfile1.txt inside of test gist 2
@jaymzh
jaymzh / testfile.txt
Created September 14, 2019 06:11
test gist
this is test content in testfile.txt in test gist
--- a/grub-core/kern/dl.c
+++ b/grub-core/kern/dl.c
@@ -333,8 +333,11 @@ grub_dl_resolve_symbols (grub_dl_t mod, Elf_Ehdr *e)
if (s->sh_type == SHT_SYMTAB)
break;
+ /* Module without symbol table may still be used to pull in dependencies.
+ We verify at build time that such modules do not contain any relocations
+ that may reference symbol table. */
if (i == e->e_shnum)
In [43]: pacific = pytz.timezone('US/Pacific')
In [44]: loc_dt = datetime(2002, 10, 27, 1, 30, 00)
In [46]: pdt_dt = pacific.localize(loc_dt, is_dst=False)
In [48]: print pdt_dt
2002-10-27 01:30:00-08:00
In [55]: loc_dt = datetime(2018,03,11,16,00, 00)
In [56]: pdt_dt = pacific.localize(loc_dt, is_dst=False)
In [58]: print pdt_dt
2018-03-11 16:00:00-07:00
--- a/rpms/shim-signed/specfiles/shim-signed.spec
+++ b/rpms/shim-signed/specfiles/shim-signed.spec
@@ -193,10 +193,13 @@ install -D -d -m 0755 $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/
install -m 0644 shim%{efiarchlc}.efi $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/shim%{efiarchlc}.efi
install -m 0644 shim%{efiarchlc}-%{efidir}.efi $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/shim%{efiarchlc}-%{efidir}.efi
install -m 0644 mm%{efiarchlc}.efi $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/mm%{efiarchlc}.efi
+install -m 0644 mm%{efiarchlc}.efi $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/MokManager.efi
install -m 0644 %{bootsrc} $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/BOOT%{efiarch}.CSV
+install -m 0644 %{bootsrc} $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/BOOT.CSV
--- a/rpms/shim-signed/specfiles/shim-signed.spec
+++ b/rpms/shim-signed/specfiles/shim-signed.spec
@@ -194,9 +194,11 @@ install -m 0644 shim%{efiarchlc}.efi $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/shim
install -m 0644 shim%{efiarchlc}-%{efidir}.efi $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/shim%{efiarchlc}-%{efidir}.efi
install -m 0644 mm%{efiarchlc}.efi $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/mm%{efiarchlc}.efi
install -m 0644 %{bootsrc} $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/BOOT%{efiarch}.CSV
+install -m 0644 %{bootsrc} $RPM_BUILD_ROOT/boot/efi/EFI/%{efidir}/BOOT.CSV
install -D -d -m 0755 $RPM_BUILD_ROOT/boot/efi/EFI/BOOT/
install -m 0644 shim%{efiarchlc}.efi $RPM_BUILD_ROOT/boot/efi/EFI/BOOT/BOOT%{efiarch}.EFI
[vagrant@scale-www1 ~]$ sudo ip6tables -n -L
Chain INPUT (policy DROP)
target prot opt source destination
DROP all ::/0 ::/0 ctstate INVALID
ACCEPT all ::/0 ::/0 ctstate RELATED,ESTABLISHED
ACCEPT tcp ::/0 ::/0 tcp dpt:22 flags:0x17/0x02 ctstate NEW
ACCEPT all ::/0 ::/0
ACCEPT tcp ::/0 ::/0 tcp dpt:2222 flags:0x17/0x02 ctstate NEW
ACCEPT tcp ::/0 ::/0 tcp dpt:443 ctstate NEW
ACCEPT tcp ::/0 ::/0 tcp dpt:80 ctstate NEW