Skip to content

Instantly share code, notes, and snippets.

@taviso
taviso / pmftool.c
Created February 27, 2013 19:55
Quick tool to generate PMF files for process monitor without having to use the GUI.
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
#include <iconv.h>
#include <string.h>
#include <assert.h>
// Quick utility to generate Process Monitor filter sets for testing.
// Tavis Ormandy <taviso@cmpxchg8b.com>
@varyonic
varyonic / Dockerfile
Created June 10, 2016 14:14
Dockerfile with chromedriver
# See https://codeship.com/documentation/docker/browser-testing/
FROM myapp:base
# We need wget to set up the PPA and xvfb to have a virtual screen and unzip to install the Chromedriver
RUN apt-get install -y wget xvfb unzip
# Set up the Chrome PPA
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
RUN echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list
@shakkhar
shakkhar / v4l2_capture.c
Last active April 25, 2024 03:25
Using Libav API to capture from V4L2 device. (This is based on doc/examples/demuxing_decoding.c from FFmpeg codebase. I had to modify it because FFmpeg does not ship with Ubuntu.)
/*
* Copyright (c) 2012 Stefano Sabatini
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
@omz
omz / File Picker.py
Created February 22, 2016 03:14
File Picker.py
# coding: utf-8
import ui
import os
from objc_util import ObjCInstance, ObjCClass
from operator import attrgetter
import time
import threading
import functools
import ftplib
import re
@igorbabko
igorbabko / settings.json
Created April 23, 2024 11:13
VS Code Settings [2024-04-23]
{
"workbench.iconTheme": "material-icon-theme",
"workbench.colorTheme": "Aura Dracula Spirit (Soft)",
"workbench.activityBar.location": "hidden",
"workbench.tree.enableStickyScroll": false,
"workbench.tree.renderIndentGuides": "none",
"workbench.sideBar.location": "right",
"workbench.editor.showTabs": "single",
"workbench.layoutControl.enabled": false,
"workbench.startupEditor": "none",
@wklchris
wklchris / Guide.md
Last active April 25, 2024 03:21
Windows 免密码 SSH 连接指南

Windows 免密码 SSH 连接指南

以从 Windows 设备(本地机)通过 SSH 连接到另一台 Windows 设备(远程机)为例。毕竟 Windows 是最难配置的,如果有一边是 Linux 设备会简单很多。

  • 需要 Windows 10 或者更高的系统版本,以确认 OpenSSH 组件的安装。
  • 不需要安装第三方 SSH 软件。

目录:

@aallan
aallan / mac-vendor.txt
Last active April 25, 2024 03:20
List of MAC addresses with vendors identities
000000 Officially Xerox
000001 SuperLAN-2U
000002 BBN (was internal usage only, no longer used)
000003 XEROX CORPORATION
000004 XEROX CORPORATION
000005 XEROX CORPORATION
000006 XEROX CORPORATION
000007 XEROX CORPORATION
000008 XEROX CORPORATION
000009 powerpipes?
@gravilk
gravilk / main.go
Last active April 25, 2024 03:19
ProtonMail captcha solving function
package main
import (
"bytes"
"crypto/sha256"
"encoding/hex"
"encoding/json"
"fmt"
"image"
_ "image/png"
@Raman1121
Raman1121 / llava_med_inference.py
Last active April 25, 2024 03:18
Running inference on a single image using LLaVA-Med
# From: https://github.com/microsoft/LLaVA-Med/blob/main/llava/eval/model_vqa_med.py
import argparse
from transformers import AutoTokenizer, AutoModelForCausalLM, AutoConfig
import torch
import os
import json
from tqdm import tqdm
import shortuuid