Skip to content

Instantly share code, notes, and snippets.

View sar's full-sized avatar

Sar Malik sar

View GitHub Profile
@sar
sar / facialml.md
Created March 18, 2023 04:37 — forked from southrop/facialml.md
List of datasets for training facial recognition
Dataset Identities Images Availability
Labeled Faces in the Wild (LFW) 5,749 13,233 Link
YouTube Faces Database (YFD) 1,595 3,425 videos Link
CelebFaces Attributes (CelebA) 10,177 202,599 Link
Public Figures Face Database (PubFig) 200 58,797 Link
CASIA WebFace Database (CASIA-WebFace) 10,575 494,414 Link
FaceScrub 530 106,863 Link
Cross-Age Celebrity Dataset (CACD) 2,000 163,446 Link
MegaFace Training Set 672,057 4,753,520 Link
symbols = {
File = {icon = "", hl = "TSURI"},
Module = {icon = "", hl = "TSNamespace"},
Namespace = {icon = "", hl = "TSNamespace"},
Package = {icon = "", hl = "TSNamespace"},
Class = {icon = "𝓒", hl = "TSType"},
Method = {icon = "ƒ", hl = "TSMethod"},
Property = {icon = "", hl = "TSMethod"},
Field = {icon = "", hl = "TSField"},
Constructor = {icon = "", hl = "TSConstructor"},
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "alt+w",
"command": "workbench.action.closeActiveEditor"
},
{
"key": "ctrl+w",
"command": "-workbench.action.closeActiveEditor"
},
@sar
sar / ILGpuGrayscale.csproj
Created January 12, 2022 18:38 — forked from brianmed/ILGpuGrayscale.csproj
Convert RGBA32 image to Grayscale via ILGPU in C#
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ILGPU" Version="0.10.1" />
</ItemGroup>
<?xml version="1.0" encoding="UTF-8"?>
<channel name="xfce4-keyboard-shortcuts" version="1.0">
<property name="commands" type="empty">
<property name="default" type="empty">
<property name="&lt;Alt&gt;F1" type="empty"/>
<property name="&lt;Alt&gt;F2" type="empty">
<property name="startup-notify" type="empty"/>
</property>
<property name="&lt;Alt&gt;F3" type="empty">

Fix Thermals on Dell XPS 9550/96xx Precision 55xx

PCH chipset temperatures are abnormally high when using eGPU devices or attached DC power brick. Even on idle CPU core temps < 50C, the fans spin up to keep PCH within intel thresholds (lim 80C).

$ sensors

pch_skylake-virtual-0
Adapter: Virtual Device
temp1: +79.0C
@sar
sar / userChrome.css
Last active August 29, 2021 23:54
Place in `~/.mozilla/firefox/{profile}/chrome/userChrome.css` and set config ` toolkit.legacyUserProfileCustomizations.stylesheets = true`
/* global font */
* {
font-family: DejaVu, sans-serif !important;
font-size: 10pt !important;
}

x11docker over x2go single application mode

Set the x2go single application command to execute sudoless in xterm using the pattern:

xterm -e <command> <args>
xterm -e x11docker -p --home=<volume_name> <container_name>:<tag>

For info on setting sudoless x11 authority, see x11docker_sudoless.

@sar
sar / x11docker_sudoless_xorg_auth.md
Created July 22, 2021 15:28
x11docker sudo-less xorg authentication
Your configuration seems not to allow to start
  a second core Xorg server from within X. Option --xorg will probably fail.
  (Per default, only root or console users are allowed to run an Xorg server).

  Possible solutions:
  1.) Install one of nested X servers 'Xephyr', 'Xnest' or 'nxagent'.
      For --gpu support: install 'weston' and 'Xwayland'.
  2.) Switch to console tty1...tty6 with <CTRL><ALT><F1>...<F6>
 and start x11docker there.

Virt Manager

Conenct remotely to libvirtd KVM hosts using virt-manager GUI and ssh keypair.

virt-manager -c 'qemu+ssh://<<USER>>@<<IP_ADDR>>:<<SSH_PORT>>/system?keyfile=<<SSH_KEY>>'