Skip to content

Instantly share code, notes, and snippets.

View neonichu's full-sized avatar
🤬
GitHub, cancel your contract with ICE!

Boris Bügling neonichu

🤬
GitHub, cancel your contract with ICE!
View GitHub Profile
As a core member of the team: I believe that node is lacking in what it does to support its community, its governance model
is currently a mess and I don't feel that it is easy for the majority of people to contribute. This did not start and does
not end with whatever has been occurring in node over these past two weeks. These have been my feelings for over two years
now. I have experienced this first hand as a former part of node, as I sat within the now defunct Inclusivity Working Group.
It's time to try something new.
<3
#!/usr/bin/perl -lw
use strict;
use List::Util qw(min max);
use JSON;
my %data = %{decode_json join '', <>};
print join ',', qw(connection time rtt-min rtt-max win-min win-max inflight-max payload type);
@danielmartin
danielmartin / xcode-unofficial-theme-support.md
Last active February 6, 2022 14:00
Xcode unofficial theme support

Xcode unofficial (and undocumented) theme support

Most people is familiar with Xcode theme support for the text editor. You simply open Preferences, Fonts & Colors and duplicate an existing theme (or create a new one from scratch). Xcode editor themes have the .dvtcolortheme extension.

However, there's some support for themeing Xcode itself (fonts, gradients, colors). Xcode loads the default theme from /Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework/Versions/A/Resources/Default.dvttheme.

.dvttheme files are simply XML files that conform to an undocumented schema. If you want to modify any of the settings in Default.dvttheme, instead of modifying the bundle resource file you can instruct Xcode to load your custom .dvttheme from wherever you want:

@terhechte
terhechte / sh
Created August 11, 2017 17:21
Kill sourcekit if it consumes more than N amount of memory
#!/bin/bash
while true; do
fields=`ps aux -m | head | grep -i sourcekitd | tr -s ' '`
mem=`echo $fields | cut -d ' ' -s -f 6| awk '{$1=$1/1024; print $1;}' | cut -d '.' -f 1`
pid=`echo $fields | cut -d ' ' -s -f 2`
# how much mem before we're killing it. default 5000
if [ "$mem" -gt 5000 ]; then
echo "Killing sourcekitservice pid $pid with mem $mem"
kill -9 $pid
sleep 5
@epipping
epipping / apple-clang-upstream.md
Last active May 6, 2021 00:47
Versions of Apple clang and corresponding upstream branches
We're a group of tech employees (@Catfish_Man, @jnadeau, @numist, @jauricchio, and @daagaak) interested in making sure
as many people as possible survive the current state of US politics. For each dollar we donate, our employer
will donate two. We're pooling our resources to do the same for you, so for each dollar you donate to the
orgs below, we'll also donate one dollar to those orgs, and our employer will donate two: quadruple your donation!
We have $45k set aside for this, so we'll keep matching donations until we've matched that much or 72 hours have passed.
You can send me a tweet/DM (@Catfish_Man) with a screenshot of evidence that you donated (receipt page, whatever works, we're not picky).
Southern Poverty Law Center
Council on American-Islamic Relations
@skreutzberger
skreutzberger / sen_swiftbe_dev.md
Last active December 2, 2019 15:07
Senior Swift Backend Developer (Freelance, 100% Remote)

Senior Swift Backend Developer (Freelance, 100% Remote)

I am searching experienced backend developers (freelance, remote) with a ❤️ for Swift for Moonshot Energy, the world’s first AI-driven renewable energy company located in Germany. Moonshot Energy is financially backed by Innogy SE, one of Europe's largest energy providers.

At Moonshot you will play a major role in making the world greener, the future brighter and energy distribution smarter by using latest technologies like server-side Swift, microservices, artificial intelligence 🤖 and machine learning and new interfaces like chatbots and dialog-based systems (NLP).

Since our team is working on European timezones it would be good if you would live in the EU or if you are an early bird living in US-East 🇪🇺🇺🇸.

Your job:

  • build our internal microservices
@cocoaNib
cocoaNib / EssentialXcodeShortcuts
Last active November 28, 2016 10:52
Essential Xcode Shortcuts
Essential Xcode Shortcuts
🇺🇸 Keyboard
⌘ B Build
⌘ R Run
⌘ U Run Test
⇧ ⌘ K Clean
⌥ ⇧ ⌘ K Clean Build Folder
⇧ ⌘ O Open quickly
@alloy
alloy / gist:10481169a3acfeeeba3f7c23c5b1b400
Created September 26, 2016 12:09
Run on iOS 10 device from Xcode 7.
cp -R /Applications/Xcode8.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A345\) \
/Applications/Xcode7.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
@neonichu
neonichu / handover.md
Last active September 27, 2016 15:05

Project Handover

Here are a few of my OSS projects that are still looking for new maintainers. DM me via Twitter if you want to take any of them over (@NeoNacho). If you take over a project, please follow these rules:

  • Do not claim to be the original author, so the license should retain my name, but feel free to add yourself to it once you have made any substantial contributions. If the current README mentions my name or Twitter handle, keep that information intact if you make edits, but you can move it around as you see fit.
  • If at any point in the future, you want to stop maintaining the project and you cannot find anyone to take it over, please add an unmainted badge (see here) to the README and transfer the project back to my GitHub account (@neonichu). That will allow me to find a new maintainer myself or to at least keep the project available for historical purposes.
  • My GitHub account ([@neonichu](https://