Skip to content

Instantly share code, notes, and snippets.

View gatlinnewhouse's full-sized avatar
🔍
looking for work

Gatlin Newhouse gatlinnewhouse

🔍
looking for work
View GitHub Profile
@gatlinnewhouse
gatlinnewhouse / gdb results
Created December 31, 2019 11:56
M&B:W config debugging results
➜ gdb ./mbw_config_linux
GNU gdb (GDB) 8.3.1
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
@gatlinnewhouse
gatlinnewhouse / gdb results
Created December 31, 2019 11:54
M&B:W debugging
➜ gdb ./mb_warband_linux
GNU gdb (GDB) 8.3.1
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
-- Logs begin at Sun 2019-10-13 12:19:42 CEST, end at Sun 2019-10-13 15:15:18 CEST. --
Oct 13 14:03:16 rhizome systemd-journald[421]: Missed 572 kernel messages
Oct 13 14:03:16 rhizome kernel: calling cgwb_init+0x0/0x29 @ 1
Oct 13 14:03:16 rhizome kernel: initcall cgwb_init+0x0/0x29 returned 0 after 0 usecs
Oct 13 14:03:16 rhizome kernel: calling percpu_enable_async+0x0/0xa @ 1
Oct 13 14:03:16 rhizome kernel: initcall percpu_enable_async+0x0/0xa returned 0 after 0 usecs
Oct 13 14:03:16 rhizome kernel: calling kcompactd_init+0x0/0x97 @ 1
Oct 13 14:03:16 rhizome kernel: initcall kcompactd_init+0x0/0x97 returned 0 after 0 usecs
Oct 13 14:03:16 rhizome kernel: calling init_user_reserve+0x0/0x40 @ 1
Oct 13 14:03:16 rhizome kernel: initcall init_user_reserve+0x0/0x40 returned 0 after 0 usecs
package main
import (
"fmt"
"io"
"log"
"os"
)
var target_path string
#/bin/bash
#-- Script to automatically convert all git remotes to HTTPS from SSH
# Script will change all the git remotes.
# If you didn't intend to do that, run the other script in this repo.
# Original 1: https://gist.github.com/m14t/3056747
# Original 2: https://gist.github.com/chuckbjones/9dc6634fe52e56ba45ac
# Original 3: https://gist.github.com/icyflame/532edee5422baeabac56d111f642bd73
# Thanks to @m14t, @michaelsilver and @chuckbjones.
ssh_to_https(){
@gatlinnewhouse
gatlinnewhouse / to_https_gitlab.sh
Last active August 6, 2017 02:57 — forked from icyflame/to_https.sh
Convert all GitLab git remotes to SSH or HTTPS.
#/bin/bash
#-- Script to automatically convert all git remotes to HTTPS from SSH for gitlab repos
# Script will change all the git remotes.
# If you didn't intend to do that, run the other script in this repo.
# Original 1: https://gist.github.com/m14t/3056747
# Original 2: https://gist.github.com/chuckbjones/9dc6634fe52e56ba45ac
# Thanks to @m14t, @michaelsilver and @chuckbjones.
ssh_to_https(){
REPO_URL=`git remote -v | grep -m1 "^$1" | sed -Ene's#.*(git@gitlab.com:[^[:space:]]*).*#\1#p'`

Keybase proof

I hereby claim:

  • I am gatlinnewhouse on github.
  • I am gatlinnewhouse (https://keybase.io/gatlinnewhouse) on keybase.
  • I have a public key whose fingerprint is 42E1 B326 AA29 9246 EADB 9261 10DE B5A3 0BB4 0490

To claim this, I am signing this object: