Skip to content

Instantly share code, notes, and snippets.

@Chick3nman
Chick3nman / RTX_3090_v6.1.1.Benchmark
Last active April 26, 2024 02:28
Hashcat v6.1.1 benchmark on the Nvidia RTX 3090
NVIDIA Driver Version: 456.38 CUDA Version: 11.1
Credit: blazer
For benchmarking the card and allowing me to release the benchmarks here
There are some warnings about the CUDA Toolkit/Driver version but they dont appear to affect functionality or speed.
It appears to be some sort of version missmatch issue during detection and is seemingly just cosmetic. Noted for further investigation.
hashcat (v6.1.1-83-g90fb4aad) starting in benchmark mode...
@roobre
roobre / WinvirtExpress.xml
Last active January 6, 2024 18:35
VFIO libvirt configuration
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
virsh edit WinvirtExpress
or other application using the libvirt API.
-->
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<name>WinvirtExpress</name>
<uuid>1b490ddc-a61b-4dda-997d-917e8e586902</uuid>
@plembo
plembo / you-need-spice-vdagent.md
Last active April 15, 2024 19:02
You need spice-vdagent

You need spice-vdagent

Debian or Kali Linux installed to as KVM (libvirtd) guests do not automatically have qemu-guest-agent or spice-vdagent installed. This will prevent seamless movement of the mouse cursor between the guest and host desktop in Virtual Machine Manager (requiring the use of a Ctrl-Alt to release the cursor from the guest window).

To cure this, install both qemu-guest-agent and spice-vdagent on each guest and reboot (the guests).

$ sudo apt install qemu-guest-agent
$ sudo apt install spice-vdagent
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active April 26, 2024 10:02
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized

Docker Hub 镜像加速器

国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。

Dockerized 实践 https://github.com/y0ngb1n/dockerized

配置加速地址

Ubuntu 16.04+、Debian 8+、CentOS 7+

@TomyLobo
TomyLobo / README.md
Last active November 4, 2023 14:59
How to disable Cortana
  1. Save disable-cortana.reg as UTF-16 little endian with BOM or UCS-2 little endian with BOM
    • Windows' Notepad calls that "Unicode"
  2. Double-click it and confirm any prompts
  3. Reboot Windows

To verify that it worked, open the start menu and type anything. Search should be limited to local results only and not blast all your keystrokes into the net.

Source: https://pureinfotech.com/disable-web-search-windows-10-version-1803/

@bludnic
bludnic / regexp_replace.sql
Created July 23, 2018 14:25
REGEXP_REPLACE for mysql
/* SELECT test */
SELECT ID, reg_replace(post_content, '<aside class="mashsb-container(.*)">((.|\n)*)<\/aside>', '', TRUE, 2, 0) as content
FROM wp_posts
WHERE post_content REGEXP('<aside class="mashsb-container(.*)">((.|\n)*)<\/aside>')
LIMIT 1
/* Update */
UPDATE wp_posts
SET post_content = REGEXP_REPLACE('post_content', '<aside class="mashsb-container(.*)">((.|\n)*)<\/aside>', '')
WHERE ID = 469

##分布式系统(Distributed System)资料


#####希望转载的朋友,你可以不用联系我.但是一定要保留原文链接,因为这个项目还在继续也在不定期更新.希望看到文章的朋友能够学到更多.

介绍:这是一篇介绍在动态网络里面实现分布式系统重构的paper.论文的作者(导师)是MIT读博的时候是做分布式系统的研究的,现在在NUS带学生,不仅仅是分布式系统,还有无线网络.如果感兴趣可以去他的主页了解.

@dianjuar
dianjuar / Restore the GRUB Bootloader.md
Last active April 9, 2024 12:56
Restore the GRUB Bootloader on Manjaro Linux. Usefull when your fresh windows install eats your grub and can not boot into your linux installation, or for some how your grub is missing

Restore the GRUB Bootloader on Manjaro

  1. Chroot into your linux instalation
    1. The easiest way is with mhwd-chroot
      1. Install it yaourt -S mhwd-chroot
      2. Run it sudo mhwd-chroot
      3. DONE, you have chrooted into your linux installation (open a root console of your installed linux OS, is like just open a console with root access)
  2. Restore your GRUB
    1. Install a new GRUB bootloader with grub-install /dev/sda
  3. Recheck to ensure the that installation has completed without any errors grub-install --recheck /dev/sda