Skip to content

Instantly share code, notes, and snippets.

View reneegyllensvaan's full-sized avatar

Renée Gyllensvaan reneegyllensvaan

  • BISON
  • Gothenburg, Sweden
View GitHub Profile
@reneegyllensvaan
reneegyllensvaan / eduroam
Created November 1, 2017 12:31
chalmers eduroam wicd template
name = Eduroam-chalmers
author = renee gyllensvaan
version = 1
require username *Username password *Password
protected password *Password
-----
ctrl_interface=/var/run/wpa_supplicant
network={
ssid="$_ESSID"
identity="$_USERNAME"
@reneegyllensvaan
reneegyllensvaan / i3-scrot
Created November 7, 2017 14:05
i3wm config rows to keybind screen shotting
#depends: scrot, xclip
#mod+printscrn: take full screenshot, place in ~/img/scrot, copy to clipboard
bindsym --release $mod+Print exec "scrot 'scrot-%Y-%m-%d_%h-%m-%s_$wx$h.png' -e 'mv $f ~/img/scrot/ && xclip -t image/png ~/img/scrot/$f -sel clip'"
#mod+shift+printscrn: take selection screenshot, place in ~/img/scrot, copy to clipboard
bindsym --release $mod+Shift+Print exec "scrot --select 'scrot-%Y-%m-%d_%h-%m-%s_$wx$h_snip.png' -e 'mv $f ~/img/scrot/ && xclip -t image/png ~/img/scrot/$f -sel clip'"
@reneegyllensvaan
reneegyllensvaan / chart.svg
Last active January 16, 2018 14:10
ciu180 infoviz svg bar chart
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<template lang="pug">
textarea(ref="input" @input="changed" rows="1" style="height:1em;resize:none;" :id="id")
</template>
<script>
export default {
mounted() {
this.$refs.input.value = this.$options._renderChildren ? this.$options._renderChildren[0].text : ''
this.$refs.input.style.height = this.$refs.input.scrollHeight+'px'
},
cat <(echo 'my %p; sub PrintLineage($$) { my ($pid, $indent) = @_; printf("%s |_ %-8d %s\n", $indent, $pid, $p{$pid}{cmd}); foreach my $kpid (sort {$a<=>$b} @{ $p{$pid}{kids} } ) { PrintLineage($kpid, " $indent"); } } open(FD, "ps axo ppid,pid,command|"); while ( <FD> ) { my ($ppid,$pid,$cmd) = ( $_ =~ m/(\S+)\s+(\S+)\s(.*)/ ); $p{$pid}{cmd} = $cmd; push(@{ $p{$ppid}{kids} }, $pid); } PrintLineage(($ARGV[0]) ? $ARGV[0] : 1, "");' |perl) <(ps aux)

Keybase proof

I hereby claim:

To claim this, I am signing this object: