Skip to content

Instantly share code, notes, and snippets.

View zruibin's full-sized avatar

Ruibin.Chow zruibin

View GitHub Profile
@zruibin
zruibin / bits-stdc++.h
Created February 21, 2021 15:06 — forked from Einstrasse/bits-stdc++.h
bits/stdc++.h header file
// C++ includes used for precompiling -*- C++ -*-
// Copyright (C) 2003-2015 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library 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, or (at your option)
// any later version.
@zruibin
zruibin / GetIPAddressCellularNetwork.m
Created June 13, 2018 11:22 — forked from lbj96347/GetIPAddressCellularNetwork.m
iOS/tvOS get IP Address from current network ( via Cellular network )
#import <ifaddrs.h>
#import <arpa/inet.h>
#import <net/if.h>
#define IOS_CELLULAR @"pdp_ip0"
#define IOS_WIFI @"en0"
#define IOS_VPN @"utun0"
#define IP_ADDR_IPv4 @"ipv4"
#define IP_ADDR_IPv6 @"ipv6"
#!/bin/bash
###########################################################################
# Choose your ffmpeg version and your currently-installed iOS SDK version:
#
VERSION="2.0.2"
SDKVERSION="7.0"
ARCHS="armv7 armv7s i386"
#
#