Skip to content

Instantly share code, notes, and snippets.

View qayshp's full-sized avatar
Black Lives Matter.

Qays H. Poonawala qayshp

Black Lives Matter.
View GitHub Profile
@hecht1962
hecht1962 / ipstocrash.pl
Last active May 10, 2024 17:40
Convert an IPS crash report (.ips) to the legacy crash report format (.crash)
#!/usr/bin/perl
##
## This script converts an IPS crash report (.ips) to the legacy crash report format.
##
## The .ips file (JSON) is read from STDIN and the legacy crash report is written to
## STDOUT.
##
use strict;
@PathogenDavid
PathogenDavid / NullRefChallenge.cs
Last active August 4, 2023 08:36
Crimes against the .NET Runtime -- Solution to this challenge on the C# Discord: https://discord.com/channels/143867839282020352/578057213084434433/943250054884515840
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
C local = null;
if (local != null && local.Prop)
{
Console.WriteLine(local.ToString()); // Null ref on this line
}
@andycmaj
andycmaj / resources.md
Last active August 10, 2021 18:48
Resources for learning programming as an adult with a job

First Steps

  • First thing to do: sign up for github. Most programming-related resources/services will allow you to login with your github identity (or your google identity). This will also get you into the door of the largest developer community. You don't need to know how to use git yet, but you can do alot on github.com without it.

  • Get yourself a twitter account and follow lots of influential/interesting tech-related people/companies/bots :) short list below

  • View the raw markdown source of this document. Markdown is a simple language you can learn to make structured documents like this one (some would argue that it's a "markup language" not a "programming language", but this is a totally pedantic and dumb thing to ar

@lisawolderiksen
lisawolderiksen / git-commit-template.md
Last active May 12, 2024 19:40
Use a Git commit message template to write better commit messages

Using Git Commit Message Templates to Write Better Commit Messages

The always enthusiastic and knowledgeable mr. @jasaltvik shared with our team an article on writing (good) Git commit messages: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the

@laggardkernel
laggardkernel / startup-time-of-zsh.md
Last active April 12, 2024 13:24
Comparison of ZSH frameworks and plugin managers

Comparison of ZSH frameworks and plugin managers

Changelog

  • update 1: add a FAQ section
  • update 2: benchmark chart and feature comparison table
  • update 3:
    • improve the table with missing features for antigen
    • new zplg times result

TLDR

@tap52384
tap52384 / readme.md
Last active January 10, 2023 23:38
Bootcamp via Virtualbox 5.2 on macOS Mojave
@ryanj
ryanj / K8s-basics-with-kubectl-at-SCaLE16x.html
Last active July 31, 2018 20:30
K8s basics with kubectl at #SCaLE16X http://bit.ly/scale-k8s
<section data-transition='concave'>
<section id="local-development-with-kubernetes">
<a href="http://kubernetes.io/"><img src="https://cdn.rawgit.com/ryanj/1aed9676c69ab0073be0beb60ca77a9c/raw/74f82bdfb47f1addaca529e8ee63ed678356a62f/kubernetes-blueprint-logo.svg" alt="kubernetes" style='width:30%;'></a>
<h2>Kubernetes Basics</h2>
<p>with</p>
<h1><code>kubectl</code></h1>
<p>
<a href="https://www.socallinuxexpo.org/scale/16x/presentations/hands-intro-kubernetes-kubectl">Thursday, March 8th 13:30-16:30 in Room 211</a><br/>
at <a href="https://www.socallinuxexpo.org/scale/16x/presentations/hands-intro-kubernetes-kubectl">#SCaLE16x</a> in Pasadena, CA</p>
@hildjj
hildjj / enableAdiumDebug.sh
Last active September 24, 2019 19:48
On OSX, turn on Adium debug. You can also hold down Option while launching and select "debug". The select Adium/Debug Window to get the logs. Hat tip: https://twitter.com/hildjj/status/29394893693
defaults write com.adiumX.adiumX AIEnableDebugLogging -bool YES
@avafloww
avafloww / PhpJava.java
Last active October 16, 2022 18:50
This snippet of code is syntactically valid in both PHP and Java, and produces the same output in both.
/*<?php
//*/public class PhpJava { public static void main(String[] args) { System.out.printf("/*%s",
//\u000A\u002F\u002A
class PhpJava {
static function main() {
echo(//\u000A\u002A\u002F
"Hello World!");
}}
//\u000A\u002F\u002A
PhpJava::main();
@DrewML
DrewML / slack-slashes.md
Created May 1, 2016 16:36
"Secret" Slack slash commands

"Secret" Slack Slash Commands

Enable Web Inspector

/macgap.app.enabledevelopertools()

Assign a color (using hex code) to any users name

/color andrew #000000

Change Status (Doesn't seem to work)

/status