Skip to content

Instantly share code, notes, and snippets.

@kkirby
kkirby / hung.m
Last active October 11, 2023 06:19
Updated NonResponding
/**
* compile using this:
* gcc -framework Carbon -framework Foundation ./hung.m -o hung
*
* Referenced from https://apple.stackexchange.com/a/424763/260619
* Original source code https://github.com/jksoegaard/NonResponding
* Original Author: jksoegaard
**/
#import <Foundation/Foundation.h>
@ChechoCZ
ChechoCZ / gist:531f0f0876d2a6e5fab546b39412faa3
Created April 6, 2021 12:56 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@Micket
Micket / easybuild_test_report_easyconfigs_pr8618_20193124-UTC-19-31-49.md
Created July 24, 2019 19:31
EasyBuild test report for easyconfigs PR #8618

Test report for easybuilders/easybuild-easyconfigs#8618

Test result

Build succeeded for 5 out of 5 (1 easyconfigs in this PR)

Overview of tested easyconfigs (in order)

  • SUCCESS Autoconf-2.69-GCCcore-8.3.0.eb
  • SUCCESS Automake-1.16.1-GCCcore-8.3.0.eb
  • SUCCESS libtool-2.4.6-GCCcore-8.3.0.eb
  • SUCCESS Autotools-20180311-GCCcore-8.3.0.eb
#!/bin/bash
iatest=$(expr index "$-" i)
#######################################################
# SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me
#######################################################
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
@virtualadrian
virtualadrian / Jenkinsfile
Created July 13, 2019 07:19 — forked from qzm/Jenkinsfile
Vue.js / Jenkinsfile /Pipelines
pipeline {
agent {
docker {
image 'node'
}
}
stages {
stage('Clone Sources') {
steps {
@vadirajks
vadirajks / linux-cheatsheet.rtf
Created July 13, 2019 07:07 — forked from 101t/linux-cheatsheet.rtf
Comprehensive Linux Cheatsheet
```
____ _ _
/ ___|___ _ __ ___ _ __ _ __ ___| |__ ___ _ __ ___(_)_ _____
| | / _ \| '_ ` _ \| '_ \| '__/ _ \ '_ \ / _ \ '_ \/ __| \ \ / / _ \
| |__| (_) | | | | | | |_) | | | __/ | | | __/ | | \__ \ |\ V / __/
\____\___/|_| |_| |_| .__/|_| \___|_| |_|\___|_| |_|___/_| \_/ \___|
|_|
_ _ ____ _ _ _ _
| | (_)_ __ _ ___ __ / ___| |__ ___ __ _| |_ ___| |__ ___ ___| |_
| | | | '_ \| | | \ \/ / | | | '_ \ / _ \/ _` | __/ __| '_ \ / _ \/ _ \ __|
@dv
dv / better_travel_to.rb
Created October 20, 2018 15:02
This circumvents the no-nesting rule of the new `travel_to` in Rails TimeHelpers
# The new `travel_to` does not allow nested calls, and instead throws the following error
# in your face whenever you try to use it:
#
# Calling `travel_to` with a block, when we have previously already made a call to `travel_to`, can lead to confusing time stubbing.
#
# Using this module to override `travel_to` will solve that issue.
#
# Note: not guaranteed to work perfectly
#
module BetterTravelTo
@subhanahmed047
subhanahmed047 / cloud-build-config.js
Created October 4, 2018 05:00
Cloud Build Config
import * as Constants from './build-constants';
const environments = {
production: Constants.PRODUCTION,
staging: Constants.STAGING,
dev: Constants.DEV,
dev2: Constants.DEV2,
};
const currentEnvironment = environments.staging;
alias ll='ls -FGlAhp' # Preferred 'ls' implementation
alias edit='idea' # edit: Opens any file in sublime editor
alias f='open -a Finder ./' # f: Opens current directory in MacOS Finder
alias o=f
alias lista="list_aliases"
alias showa="list_aliases"
alias qfind="find . -name " # qfind: Quickly search for file
alias memHogsTop='top -l 1 -o rsize | head -20'
alias memHogsPs='ps wwaxm -o pid,stat,vsize,rss,time,command | head -10'
alias cpu_hogs='ps wwaxr -o pid,stat,%cpu,time,command | head -10'
@dvnoble
dvnoble / dot2pdf.sh
Last active February 11, 2021 10:15
Simple bash script to batch convert graphs descriptions (dot format) into a pdf. It requires graphviz.
#!/bin/bash
for GFILE in *.dot;
do
GNAME="${GFILE%.*}";
GTYPE=$(head -n 1 $GFILE);
case "$GTYPE" in
*digraph*) dot -Teps $GFILE -o "$GNAME.eps";;
*graph*) neato -Teps $GFILE -o "$GNAME.eps";;
esac
ps2pdf -dCompatibilityLevel=1.4 -dEmbedAllFonts=true -dSubsetFonts=true \