Skip to content

Instantly share code, notes, and snippets.

@DevFelixFaber
DevFelixFaber / 00_wayland_opengl_main.c
Created July 10, 2024 19:11
Wayland OpenGL Example Application. Includes Keyboard input (with key-repeat), mouse events, setting the mouse cursor image/icon, retrieving the refreshrate, and measuring render time.
#define _GNU_SOURCE
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <assert.h>
#include <string.h>
#include <time.h>
#include <poll.h>
#include <sys/timerfd.h>
@cdiggins
cdiggins / react-best-practices.md
Created January 25, 2018 16:20
React Best Practices
@paulirish
paulirish / rAF.js
Last active January 4, 2025 00:13
requestAnimationFrame polyfill
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];
@danielb7390
danielb7390 / config.rsc
Last active January 4, 2025 00:13
Mikrotik Vodafone IPTV Configuration
# Configuration for Vodafone Portugal IPTV service.
# Tested with VBOX Pro 4k.
# Also tested with a older Cisco Mediaroom, needs some more stuff, check the end of the file.
# Feel free to leave comments with suggestions and/or improvements!
# Credit to the original users that provided the pfsense config found at https://forum.zwame.pt/threads/iptv-net-vodafone-com-pfsense.1049250
# 2023-08-01 20:57:50 by RouterOS 7.10.1
# model = RB5009UPr+S+
# example interfaces using a sfp module
@pjobson
pjobson / pike_it.md
Last active January 4, 2025 00:12
Asus Pike 2008 IT Mode Cross Flash

Flashing Asus 2008 PIKE to IT Mode

Used on an Asus Z8PE-D18 board with no EFI boot options. These instructions were written using Linux Mint to create the media, most distributions will work with little modification.

The PIKE 2008 is basically a LSI 9220-8i which you can flash with 9211-8i firmware. Flashing to IT mode allows you to have direct access to the disks to use btrfs or zfs or some kind of software RAID instead of the card's RAID.

Get Your SAS Address

There is a sticker on the back of your PIKE card which has 16 digits starting with 5000. Write this address down or take a picture of it. Note I put XXXXXXXXXXXX in this picture as these numbers are unique to the card. If your card does not have this sticker, instructions will be provided below.

@RudaGabriel
RudaGabriel / instagram-dfyb.user.js
Last active January 4, 2025 00:10
Check which instagram users you follow who don't follow you back
// ==UserScript==
// @name Instagram Doesn't follow you back
// @namespace ruda.gabriel
// @version 4.5
// @description insert the script created by @davidarroyo1234 / to check who doesn't follow you back
// @author Ruda Gabriel
// @license MIT
// @homepage https://gist.github.com/RudaGabriel/50499db214cfdf871696c0b410c73e2c
// @updateURL https://gist.github.com/RudaGabriel/50499db214cfdf871696c0b410c73e2c/raw/
// @downloadURL https://gist.github.com/RudaGabriel/50499db214cfdf871696c0b410c73e2c/raw/instagram-dfyb.user.js
@jerodg
jerodg / windows_and_office_kms_setup.adoc
Last active January 4, 2025 00:08
Activate Windows and Office Using KMS Server

Microsoft Windows and Office KMS Setup

@heinthanth
heinthanth / pentest-arsenal.md
Last active January 4, 2025 00:03
Penetration Testing Tools for MacOS X
  • [] radare2 - brew
  • [] cutter (radare2) - brew cask
  • [] ghidra - brew cask
  • [] ida-free - brew cask
  • [] nmap - brew
  • [] proxychains - brew (https://gist.github.com/allenhuang/3792521)
  • [] sqlmap - brew
  • [] powershell - brew cask
  • [] impacket scripts - git
  • [] powersploit - git
@paulmillr
paulmillr / active.md
Last active January 4, 2025 00:01
Most active GitHub users (by contributions). http://twitter.com/paulmillr

Most active GitHub users (git.io/top)

The list would not be updated for now. Don't write comments.

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Wed, 21 Sep 2022 till Thu, 21 Sep 2023.

Because of GitHub search limitations, only 1000 first users according to amount of followers are included. If you are not in the list you don't have enough followers. See raw data and source code. Algorithm in pseudocode:

githubUsers
@3lpsy
3lpsy / x-resize
Last active January 4, 2025 00:00
Manual Implementation of Auto Resizing For Non-Gnome Environments (like XFCE) running under Spice/Libvirt
#!/bin/bash
# SPDX-License-Identifier: MIT License
# Steps:
# 1) Make sure bash is available
# 2) Create udev rule
# - path to new udev rule: /etc/udev/rules.d/50-x-resize.rules
# - udev rule content:
# ACTION=="change",KERNEL=="card0", SUBSYSTEM=="drm", RUN+="/usr/local/bin/x-resize"
# 3) Create /var/log/autores directory
# 4) Create script /usr/local/bin/x-resize (this file) and make executable