Skip to content

Instantly share code, notes, and snippets.

View Fred-Barclay's full-sized avatar
💭
On the way to Mars

Fred Barclay Fred-Barclay

💭
On the way to Mars
  • Bumping around in the bush.
View GitHub Profile
@Fred-Barclay
Fred-Barclay / atom-beta-update.sh
Created April 19, 2016 21:16 — forked from nihilismus/atom-beta-update.sh
atom-beta-update.sh: download & install in openSUSE the latest Beta version of Atom from GitHub
#!/bin/sh
# atom-beta-update.sh: download & install in openSUSE the latest Beta version
# of Atom from GitHub: https://atom.io/beta
# Copyright © 2016 Antonio Hernández Blas <hba.nihilismus@gmail.com>
# This work is free. You can redistribute it and/or modify it under the
# terms of the Do What The Fuck You Want To Public License, Version 2,
# as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
@Fred-Barclay
Fred-Barclay / make_fail
Created May 9, 2016 19:20
"Make" for xed fails on LMDE Betsy
fred@aussie ~/Downloads/xed-master $ ./autogen.sh
/usr/bin/gnome-autogen.sh
/usr/bin/yelp-build
checking for automake >= 1.9...
testing automake... found 1.14.1
checking for autoreconf >= 2.53...
testing autoreconf... found 2.69
checking for glib-gettext >= 2.2.0...
testing glib-gettextize... found 2.42.1
checking for intltool >= 0.25...
@Fred-Barclay
Fred-Barclay / diff1
Created May 13, 2016 20:57
diff between arch-4.5 and jessie-backports-4.5
3c3
< # Linux/x86 4.5.4-1 Kernel Configuration
---
> # Linux/x86 4.5.1 Kernel Configuration
57,58c57,58
< CONFIG_LOCALVERSION="-ARCH"
< CONFIG_LOCALVERSION_AUTO=y
---
> CONFIG_LOCALVERSION=""
> # CONFIG_LOCALVERSION_AUTO is not set
@Fred-Barclay
Fred-Barclay / .conkyrc_umate
Created May 22, 2016 18:24
Conky rc for Ubuntu MATE 16.04
# Conky sample configuration
#
# the list of variables has been removed from this file in favour
# of keeping the documentation more maintainable.
# Check http://conky.sf.net for an up-to-date-list.
# set to yes if you want Conky to be forked in the background
background no
# X font when Xft is disabled, you can pick one with program xfontsel
#include "taz.h"
#include "ui_taz.h"
#include <QFileDialog>
// May not be needed:
#include <QFile>
#include <QMessageBox>
#include <QTextStream>
// Depends on debugging and testing
@Fred-Barclay
Fred-Barclay / Remove all git tags
Created October 27, 2016 21:50 — forked from okunishinishi/Remove all git tags
Delete all git remote tags
#Delete local tags.
git tag -l | xargs git tag -d
#Fetch remote tags.
git fetch
#Delete remote tags.
git tag -l | xargs -n 1 git push --delete origin
#Delete local tasg.
git tag -l | xargs git tag -d
fred@lmde-beta ~ $ gufw
(gufw.py:4006): Gtk-CRITICAL **: gtk_list_store_iter_next: assertion 'priv->stamp == iter->stamp' failed
(gufw.py:4006): Gtk-CRITICAL **: /home/clem/Sandbox/gtk/./gtk/gtktreeview.c:5495 (gtk_tree_view_bin_draw): assertion `has_next' failed.
There is a disparity between the internal view of the GtkTreeView,
and the GtkTreeModel. This generally means that the model has changed
without letting the view know. Any display from now on is likely to
be incorrect.
function [ distance ] = GetDistanceTesting( subPT, vertPT, deg_Increment )
%UNTITLED2 Summary of this function goes here
% Detailed explanation goes here
tic
theta=(0:deg_Increment:(360-deg_Increment));
%Sets the value of theta from 0 degrees to the largest angle that is not
%coterminal with 0 degrees and <360 degrees.
numVert=(numel(vertPT))/2;
function [ distance ] = GetDistanceUnstable( subPT, vertPT, deg_Increment )
% Code originally written by Skylar Gay
% and W. Scott Ingram at the University
% of Texas M. D. Anderson Cancer
% Center, Houston, Texas. All copies of
% this code, even if modified, must
% contain this message.
% No warranty or fitness for duty is
% expressed or implied by the authors.
/*
* Copyright (C) 2017 Firejail Authors
*
* This file is part of firejail project
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*