Skip to content

Instantly share code, notes, and snippets.

View ApolloZhu's full-sized avatar
🐣
Improving Swift Platform Experience

Zhiyu Zhu/朱智语 ApolloZhu

🐣
Improving Swift Platform Experience
View GitHub Profile

UPDATE: The Swift Standard Library team has filled its available intern slots for 2022. Thank you to all who applied!

Swift Standard Library Internship at Apple

Apple's Swift Standard Library team is now looking for interns for 2022!

This is a paid internship. While most internships last 3 months, starting in May or June, the starting dates and the internship length are flexible. Internships are restricted to students. Students must be enrolled in school in the quarter/semester immediately following the internship. We are looking for candidates of all education levels, from Bachelor’s to Ph.D. Applicants from outside the U.S.A. are welcome to apply as well.

If you are interested in applying, please email us your resume/CV in PDF or raw text form and answer the following two questions:

Languages, Compilers, Debuggers, and Development Infrastructure Engineering Internships at Apple

Apple's Languages, Compilers, Debuggers and Development Infrastructure teams are now looking for interns for 2022!

We are looking for students who are motivated to get hands on experience working on these exciting technologies. We have interesting problems to solve at every level, from low-level assembly to high-level Swift code. No prior language, compiler or debugger experience is required and candidates without such experience are encouraged to apply. Candidates should be comfortable writing code in C++.

These are paid internships. While most internships last 3 months, starting in May or June, the starting dates and the internship length are flexible. Internships are restricted to students. Students must be enrolled in school in the quarter/semester immediately following the internship. We are looking for candidates of all education levels, from Bachelor’s to Ph.D. Applicants from outside the U.S.A. are w

@FradSer
FradSer / iterm2_switch_automatic.md
Last active June 20, 2024 14:14
Switch iTerm2 color preset automatic base on macOS dark mode.

The latest beta (3.5) includes separate color settings for light & dark mode. Toggling dark mode automatically switches colors.

Vist iTerm2 homepage or use brew install iterm2-beta to download the beta. Thanks @stefanwascoding.


  1. Add switch_automatic.py to ~/Library/ApplicationSupport/iTerm2/Scripts/AutoLaunch with:
@X140Yu
X140Yu / cal.sh
Last active September 16, 2017 16:36
A shell script which helps you calculate a specific person's contribution
#!/bin/sh
if [ "$#" -ne 1 ]; then
echo "Usage: $0 Author-Name"
exit 1
fi
echo Total Commit: $(git log --author=$1 --pretty=tformat: --oneline | wc -l)
git log --author=$1 --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "Added lines: %s, Removed lines: %s, Total lines: %s\n", add, subs, loc }'

WannaCry|WannaDecrypt0r NSA-Cyberweapon-Powered Ransomware Worm

  • Virus Name: WannaCrypt, WannaCry, WanaCrypt0r, WCrypt, WCRY
  • Vector: All Windows versions before Windows 10 are vulnerable if not patched for MS-17-010. It uses EternalBlue MS17-010 to propagate.
  • Ransom: between $300 to $600. There is code to 'rm' (delete) files in the virus. Seems to reset if the virus crashes.
  • Backdooring: The worm loops through every RDP session on a system to run the ransomware as that user. It also installs the DOUBLEPULSAR backdoor. It corrupts shadow volumes to make recovery harder. (source: malwarebytes)
  • Kill switch: If the website www.iuqerfsodp9ifjaposdfjhgosurijfaewrwergwea.com is up the virus exits instead of infecting the host. (source: malwarebytes). This domain has been sinkholed, stopping the spread of the worm. Will not work if proxied (source).

update: A minor variant of the viru

@Explorare
Explorare / com.google.Chrome.mobileconfig
Last active November 28, 2022 05:54
Add local chrome extensions to whitelist in MacOS. https://hencolle.com/2016/10/16/baidu_exporter/
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>PayloadContent</key>
<dict>
<key>com.google.Chrome</key>
// @discardableResult to be added
// @noescape needs to move to type annotation
// needs to add _ for item
public func with<T>(item: T, @noescape update: (inout T) throws -> Void) rethrows -> T {
var this = item; try update(&this); return this
}
@citrusui
citrusui / fancybutton.md
Last active June 13, 2023 17:58
How to add a fancy Direct Message button to your Tweets https://twitter.com/citrusui/status/719279185123012609

How to add a fancy Direct Message button to your Tweets

Step 1: Go to tweeterid.com and enter your username.

Step 2: Copy your user ID from the previous website.

Step 3: Copy the following URL:

@ryanolsonk
ryanolsonk / top100.csv
Created January 11, 2016 04:01
Top 100 Apps
Rank Name Bundle ID Version Min iOS Version SDK Version Uses Swift Universal App VC Based Status Bar Management Xcode Version
1 Candy Crush com.midasplayer.apps.candycrushjellysaga1 1.6.5 6 iphoneos8.0 No Universal Global 610
2 Piano Tiles 2 com.cmplay.tiles2 1.1.7 7 iphoneos9.2 No Universal Global 720
3 Messenger com.facebook.Messenger 52 7 iphoneos9.1 No Universal VC Based 710
4 Instagram com.burbn.instagram 7.13.1 7 iphoneos9.1 No iPhone Only VC Based 710
5 YouTube com.google.ios.youtube 10.49.13 7 iphoneos8.4 No Universal Global 640
6 Snapchat com.toyopagroup.picaboo 9.21.1 7 iphoneos9.0 No iPhone Only Global 701
7 Meltdown com.robtop.geometrydashmeltdown 1 6 iphoneos9.1 No Universal Global 710
8 Facebook com.facebook.Facebook 46 7 iphoneos9.1 No Universal Global 710
9 Netflix com.netflix.Netflix 7.2.4 7 iphoneos9.0 No Universal VC Based 700
@kpapiez
kpapiez / toggle-grayscale
Created January 7, 2016 18:21 — forked from wbolster/toggle-grayscale
AppleScript to toggle grayscale display (for Mac OSX 10.11 El Capitan)
tell application "System Preferences"
set current pane to pane "Accessibility"
end tell
tell application "System Events"
tell process "System Preferences"
click checkbox "Use grayscale" of window 1
end tell
end tell
tell application "System Events"
quit