WWDC 2007 2008 2009 2010 2011 2012 2013 2014 2015
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
#!/usr/bin/env python3 | |
# -*- coding: UTF-8 -*- | |
# Author : tintinweb@oststrom.com <github.com/tintinweb> | |
''' | |
A simple TCP three-way handshake example | |
#> python scapy_tcp_handshake.py | |
DEBUG:__main__:init: ('oststrom.com', 80) | |
DEBUG:__main__:start | |
DEBUG:__main__:SND: SYN |
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 <sys/mman.h> | |
void print_prot_bits(int prot) { | |
printf((prot & PROT_READ) == 0 ? "-" : "R"); | |
printf((prot & PROT_WRITE) == 0 ? "-" : "W"); | |
printf((prot & PROT_EXEC) == 0 ? "-" : "X"); | |
} |
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 | |
# | |
# build-xnu-6153.11.26.sh | |
# Scott Knight | |
# | |
# Based on the script by Brandon Azad | |
# https://gist.github.com/bazad/654959120a423b226dc564073b435453 | |
# | |
# A script showing how to build XNU version 6153.11.26 on macOS Catalina | |
# 10.15 with Xcode 11.13.1. |
- macOS 10.15.5
- tmux 3.1b
macOS has ncurses version 5.7 which does not ship the terminfo description for tmux. There're two ways that can help you to solve this problem.
Instead of tmux-256color
, use screen-256color
which comes with system. Place this command into ~/.tmux.conf
or ~/.config/tmux/tmux.conf
(for version 3.1 and later):
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
// These funcitons ought to come with a huge warning. Using them without | |
// understanding the differences between blocking and non-blocking, or | |
// between exclusive and shared access, and when to use them will cause | |
// problems that do not necessarily manifest right away, but rather | |
// fester in your program and rear their ugly head in the middle of the | |
// night when you're sleeping. | |
// | |
// If you use advisory file locking, *always* use Shared locking every | |
// single time you read the file, and *always* use Exclusive locking every | |
// single time you write the file. Period. There are no exceptions. Heed |
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
# Put in your ~/.ssh/config | |
### Problem | |
# | |
# You are on a public WiFi network that blocks SSH ports but you don't want to switch | |
# to pushing your Github changes to GH remotes via HTTPS nor do you want to change the | |
# remote hostname in all your repos. | |
Host github.com | |
Hostname ssh.github.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
// define the bitbucket project + repos we want to build | |
def bitbucket_project = 'awesome' | |
def bitbucket_repos = ['foo','bar','baz'] | |
// create a pipeline job for each of the repos and for each feature branch. | |
for (bitbucket_repo in bitbucket_repos) | |
{ | |
multibranchPipelineJob("${bitbucket_repo}-ci") { | |
// configure the branch / PR sources | |
branchSources { |
- I have a
MacBook1,1
, but its HDD died. - I need an instance of OS X mainly to build OS X binaries of some of my open-source software.
- Obtain installation medium
NewerOlder