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
export default { | |
clientId: '000000000000-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com', | |
} |
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
# 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 */ |
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
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 |
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
require 'socket' | |
class ICMPEchoMessage | |
TYPE = 0x08 | |
CODE = 0x00 | |
def initialize(id = rand(0..0xffff)) | |
@id = id.freeze | |
@seq = 0x0000 |
Other people's projects:
- https://github.com/laracasts/URL-Shortener URL Shortener by Jeffrey Way
- https://github.com/basco-johnkevin/laravelsnippets Source code of http://laravelsnippets.com website
- https://github.com/jesseterry/FusionInvoice FusionInvoice is built for freelancers and small businesses who need a simple, yet powerful self-hosted web based invoicing system.
- https://github.com/ezynda3/burnmsg is a self-destructing encrypted message app. A demo is also running on https://burnmsg.com
- https://github.com/martindilling/auto-generating-gallery the demo is at http://gallerydemo.martindilling.com/
My projects (tutorials are on my blog at http://maxoffsky.com):
- https://github.com/CodepadME/laravel-tricks - Source of Laravel-tricks.com
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 <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; |