Skip to content

Instantly share code, notes, and snippets.

View kuredev's full-sized avatar
😏

Akira kure kuredev

😏
View GitHub Profile
@tatsuyasusukida
tatsuyasusukida / config.example.mjs
Last active February 20, 2023 06:04
🏎 How to upload files to Google Drive without library
export default {
clientId: '000000000000-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com',
}
# Receive every packet
ETH_P_ALL = 0x0300
# Size in bytes of a C `sockaddr_ll` structure on a 64-bit system
#
# struct sockaddr_ll {
# unsigned short sll_family; /* Always AF_PACKET */
# unsigned short sll_protocol; /* Physical-layer protocol */
# int sll_ifindex; /* Interface number */
# unsigned short sll_hatype; /* ARP hardware type */
@sambatriste
sambatriste / oo-exercise.org
Last active November 9, 2023 13:54
「オブジェクト指向エクササイズ (ちょっとだけ)Groovy編」

オブジェクト指向エクササイズ

describe 'test' do
example do
x = [{id: 1, name: 'hoge'}, {id: 2, name: 'fuga'}]
expect(x).to a_collection_including a_hash_including(id: 2), a_hash_including(id: 1)
end
end
@yantene
yantene / icmp_echo_message.rb
Last active March 21, 2020 15:35
Ruby で ping を行うプログラムです. 嘘つきました.応答の受信機能はありません.
require 'socket'
class ICMPEchoMessage
TYPE = 0x08
CODE = 0x00
def initialize(id = rand(0..0xffff))
@id = id.freeze
@seq = 0x0000
@msurguy
msurguy / List.md
Last active April 30, 2024 15:14
List of open source projects made with Laravel

Other people's projects:

My projects (tutorials are on my blog at http://maxoffsky.com):

@lbuchy
lbuchy / defaultGatewayIoctlSet.c
Created February 22, 2012 23:50
Add default gateway route using ioctl
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <net/route.h>
#include <sys/types.h>
#include <sys/ioctl.h>
int main(char** args) {
int sockfd;