Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en-US" dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<head><script src="https://c.s-microsoft.com/mscc/statics/mscc-0.4.2.min.js"></script><script src="/_static/tfs/M166_20200407.8/_scripts/TFS/min/Gallery/Client/Common/ManageCookieDrop.js"></script><link rel="Stylesheet" href="https://c.s-microsoft.com/mscc/statics/mscc-0.4.2.min.css" /><title>
HCL AppScan CodeSweep - Visual Studio Marketplace
@nohillside
nohillside / COVID19.gnuplot
Created March 24, 2020 09:41
Little gnuplot script to plot COVID19 graph for Canton Zurich
#!/usr/local/bin/gnuplot
set datafile separator ','
set key autotitle columnhead
set key off
set xdata time
set timefmt "%Y-%m-%d"
set format x "%d.%m"
@nohillside
nohillside / setregproptool-transcript.sh
Created November 24, 2019 13:21
Calling setregproptool on macOS
pse@Mithos:~$ sudo diskutil mount Recovery
Volume Recovery on Recovery mounted
pse@Mithos:~$ hdiutil attach -quiet -nobrowse /Volumes/Recovery/B0225C73-D191-3AF0-B97C-AA2AAE56B3CF/BaseSystem.dmg
pse@Mithos:~$ sudo /Volumes/macOS\ Base\ System/Applications/Utilities/Startup\ Security\ Utility.app/Contents/Resources/setregproptool
Error, invalid arguments.
setregproptool v 2.0 (9) May 23 2019
Copyright (C) 2001-2010 Apple Inc.
All Rights Reserved.
@nohillside
nohillside / brainfuck.code
Last active May 2, 2023 13:51
GRM brainfucked
# Brainfuck-Code in GRM
## Seite 161
>++++++++++
[>++++++++++>++++++++++++>+++++++++++>
+++++++++++> ++++++++++++><<<<<<-]
>++>--->>>+>
<<<<<<
>.>.>.>.>.
@nohillside
nohillside / bashpath.sh
Created December 12, 2018 16:45
Tilde expansion for PATH in bash
pse@Mithos:~$ echo $PATH
/Users/pse/.bin/script:/Users/pse/.bin/i386:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/go/bin:/usr/local/MacGPG2/bin:/usr/local/mysql/bin:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands
pse@Mithos:~$ PATH="~/.tmp:$PATH"
pse@Mithos:~$ echo $PATH
~/.tmp:/Users/pse/.bin/script:/Users/pse/.bin/i386:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/go/bin:/usr/local/MacGPG2/bin:/usr/local/mysql/bin:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands
pse@Mithos:~$ cat >.tmp/foo
#!/bin/bash
echo hello world
pse@Mithos:~$ chmod +x .tmp/foo
@nohillside
nohillside / path_helper.c
Last active December 24, 2017 15:01
path_helper.c which respects alphabetic sort order
/*
* Copyright (c) 2008 Apple Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in
* compliance with the License. Please obtain a copy of the License at
* http://www.opensource.apple.com/apsl/ and read it before using this
@nohillside
nohillside / gist:eeba083c3c7e3342b4e7a8cc1f2a8236
Created December 16, 2017 14:31
SEDE: Answers with "just a link" comment
Select c.id as [Comment Link], c.postid as [Post Link], len(body), p.body
from comments c, posts p
where (text like '%just a link%'
or text like '%hile this link%')
and c.postid = p.id
order by len(p.body)