View recvRawEth.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
*/ | |
#include <arpa/inet.h> | |
#include <linux/if_packet.h> | |
#include <linux/ip.h> |
View sendRawEth.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
*/ | |
#include <arpa/inet.h> | |
#include <linux/if_packet.h> | |
#include <stdio.h> |
View ubuntu_bluez_midi.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Bash script to recompile bluez on Linux | |
# Tested on Ubuntu 20.04 | |
sudo apt-get update | |
cd /tmp | |
sudo apt-get install -y libudev-dev libical-dev libreadline-dev libdbus-1-dev libasound2-dev build-essential | |
apt-get build-dep bluez | |
apt-get source bluez |
View reset.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
1. Use a more-intuitive box-sizing model. | |
*/ | |
*, *::before, *::after { | |
box-sizing: border-box; | |
} | |
/* | |
2. Remove default margin | |
*/ | |
* { |
View 24c256br.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Utility to dump and restore a 24c256 eeprom. | |
(Changing the defines it will work with other eeproms too.) | |
Remember that 24c256 has 16 bit addressing. | |
Smaller ones have 8 bit addressing. | |
By Zibri. |
View dump_i2c_eeprom.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <sys/ioctl.h> | |
#include <linux/i2c-dev.h> | |
#define READ_SIZE (256) | |
#define NB_PAGES (128) |
View megarefresh.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# install megacmd from mega.nz first. | |
# put your usernames and passwords | |
# run this once a month :D | |
while read a b;do | |
mega-login &>/dev/null $a $b && mega-logout &>/dev/null && echo refreshed $a || echo error $a | |
done <<EOF | |
email1 password1 | |
email2 password2 |
View bars.s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;--------------------------------------- | |
; Vertical Bars | |
; By Zibri/RamJam 2020 | |
;--------------------------------------- | |
.ORG $2f5 | |
boot | |
SEI | |
newline TSX |
View paste_this_in_js_console.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function irc(nickname, server, chan, onmsg, onjoin) { | |
nickname = nickname || "nick_" + new Date().getTime().toString(36) + new Date().getMilliseconds().toString(36) | |
chan = chan || "Z" + new Date().getTime().toString(18) + Math.random().toString(36).substring(2) | |
server = server || "irc.unrealircd.org" | |
var init = 0 | |
var ws = new WebSocket("wss://" + server); | |
var s = (c,l)=>setTimeout(console.log.bind(this, "%c%s", "font-size: 14px; color:" + c, new Date().toLocaleString("it") + ": " + l)) | |
ws.onmessage = m=>{ | |
if (m.data.indexOf("PING") == 0) | |
ws.send(m.data.replace("PI", "PO")); |
View KMS_office.cmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
title Microsoft Office 2019 versions are supported!&cls&echo | |
============================================================================&echo | |
#Project: Activating Microsoft software products for FREE without software&echo | |
============================================================================&echo.&echo | |
#Supported products:&echo - Microsoft Office Standard 2019&echo - Microsoft Office Professional Plus 2019&echo.&echo.&(if exist | |
"%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16")&(if exist | |
"%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16")&(for /f %%x in ('dir /b | |
..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&(for /f %%x in ('dir /b | |
..\root\Licenses16\ProPlus2019VL*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&echo.&echo |
NewerOlder