Skip to content

Instantly share code, notes, and snippets.

View simurq's full-sized avatar

Victor Quebec simurq

  • Baku, Azerbaijan
  • 07:59 (UTC +04:00)
View GitHub Profile
@simurq
simurq / wifi-status-after
Created December 4, 2023 18:15
Shows the Wi-Fi netwrok status after restart
View wifi-status-after
Dec 04 21:31:26 pop-os kernel: microcode: updated early: 0x8e -> 0xf4, date = 2023-02-23
Dec 04 21:31:26 pop-os kernel: Linux version 6.5.6-76060506-generic (jenkins@warp.pop-os.org) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #202310061235~1697396945~22.04~9283e32 SMP PREEMPT_DYNAMIC Sun O
Dec 04 21:31:26 pop-os kernel: Command line: initrd=\EFI\Pop_OS-eda1ae75-7e72-4256-988a-c6b04f3f5757\initrd.img root=UUID=eda1ae75-7e72-4256-988a-c6b04f3f5757 ro quiet loglevel=0 systemd.show_status=false splash
Dec 04 21:31:26 pop-os kernel: KERNEL supported cpus:
Dec 04 21:31:26 pop-os kernel: Intel GenuineIntel
Dec 04 21:31:26 pop-os kernel: AMD AuthenticAMD
Dec 04 21:31:26 pop-os kernel: Hygon HygonGenuine
Dec 04 21:31:26 pop-os kernel: Centaur CentaurHauls
Dec 04 21:31:26 pop-os kernel: zhaoxin Shanghai
Dec 04 21:31:26 pop-os kernel: BIOS-provided physical RAM map:
@simurq
simurq / wifi-status-asleep
Last active December 4, 2023 18:20
Shows the status of Wi-Fi netwrok when asleep
View wifi-status-asleep
Dec 04 21:31:26 pop-os kernel: microcode: updated early: 0x8e -> 0xf4, date = 2023-02-23
Dec 04 21:31:26 pop-os kernel: Linux version 6.5.6-76060506-generic (jenkins@warp.pop-os.org) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #202310061235~1697396945~22.04~9283e32 SMP PREEMPT_DYNAMIC Sun O
Dec 04 21:31:26 pop-os kernel: Command line: initrd=\EFI\Pop_OS-eda1ae75-7e72-4256-988a-c6b04f3f5757\initrd.img root=UUID=eda1ae75-7e72-4256-988a-c6b04f3f5757 ro quiet loglevel=0 systemd.show_status=false splash
Dec 04 21:31:26 pop-os kernel: KERNEL supported cpus:
Dec 04 21:31:26 pop-os kernel: Intel GenuineIntel
Dec 04 21:31:26 pop-os kernel: AMD AuthenticAMD
Dec 04 21:31:26 pop-os kernel: Hygon HygonGenuine
Dec 04 21:31:26 pop-os kernel: Centaur CentaurHauls
Dec 04 21:31:26 pop-os kernel: zhaoxin Shanghai
Dec 04 21:31:26 pop-os kernel: BIOS-provided physical RAM map:
@simurq
simurq / locked_pairs.c
Last active February 10, 2021 19:56
Function locked_pairs() for CS50
View locked_pairs.c
// Lock pairs into the candidate graph in order, without creating cycles
void lock_pairs(void)
{
int i, j, row, win, los, cycle;
for (i = 0; i < pair_count; i++)
{
win = pairs[i].winner;
los = row = pairs[i].loser;
cycle = 0;