Skip to content

Instantly share code, notes, and snippets.

View Mebus's full-sized avatar
😀

Mebus Mebus

😀
View GitHub Profile
@resuscv
resuscv / git-annex_install_notes-Fedora.txx
Created May 29, 2011 08:24
Notes for setting up git-annex (http://git-annex.branchable.com/) on Fedora 14
# This is very similar to installing on OSX (unsurprisingly)
# Based on my gist https://gist.github.com/982148
# This is for version 86c5bd0
sudo yum install ghc cabal-install
sudo cabal update
sudo cabal install missingh
sudo cabal install utf8-string
sudo cabal install pcre-light
sudo cabal install quickcheck
@ruario
ruario / rpm4opera
Last active January 11, 2016 09:24
Converts Opera deb packages into rpm format
#!/usr/bin/env bash
available () {
command -v "$1" >/dev/null 2>&1
}
rpmcheck () {
if [ -e "$1" ]; then
echo "$1 is already present, delete it if you want to recreate it"
exit 0
@ev3rywh3re
ev3rywh3re / gist:2587766
Created May 3, 2012 18:10
Linux: grep command line notes
## Search for scary PHP stuff.
grep "((eval.*(base64_decode|gzinflate))|r57|c99|sh(3(ll|11)))" ./ -roE --include=*.php*
@haruyama
haruyama / godeb_workaround.sh
Last active October 29, 2018 18:01 — forked from mojotx/godeb_workaround.sh
Workaround for godeb issue generating errors, "corrupted filesystem tarfile - corrupted package archive"
#!/bin/bash
#####################################################################
# Work-around for godeb issue
# assumes godeb is available using $GOPATH
# You can specify version on the command line,
# or else it will try and grab the latest
#####################################################################
set -e
@DaveEveritt
DaveEveritt / Add field to an existing Django app with South
Created June 25, 2010 20:48
quickly add field(s) to existing Django models with South
====================================================================
Simple-as-possible instructions to add a field (or more) using South
to an existing Django model with existing data.
====================================================================
Two versions:
1. Super-condensed (the bare minimum - jfdi)
2. Detailed-but-brief (if you want more information).
Notes:
@eliasah
eliasah / Anaconda from Powershell.md
Last active December 14, 2018 08:46
Running Anaconda 4 from Powershell on Windows 10

To correctly work with Anaconda on Powershell :

  • Run the anaconda command :
C:\Users\elias\Anaconda3> cmd C:\Users\elias\Anaconda3\envs\py35\Scripts\activate.bat C:\Users\elias\Anaconda3\envs\py35\Scripts\activate.bat
Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.
  • Activate your env :
/* Space out content a bit */
body {
padding-top: 20px;
padding-bottom: 20px;
}
/* Everything but the jumbotron gets side spacing for mobile first views */
.header,
.marketing,
.footer {
@ork
ork / parseoui.awk
Last active February 20, 2022 23:17
Parse IEEE OUI vendor list to JSON
#!/usr/bin/awk -f
# Parse IEEE OUI vendor list to JSON
# http://standards.ieee.org/develop/regauth/oui/oui.txt
# ---
# Usage:
# $ chmod +x parseoui.awk
# $ wget http://standards.ieee.org/develop/regauth/oui/oui.txt
# $ ./parseoui.awk oui.txt > oui.json
BEGIN {
@josephspurrier
josephspurrier / sshclient.go
Last active September 10, 2022 02:23
Golang SSH Client
package main
import (
"bufio"
"io/ioutil"
"os/signal"
//"syscall"
"fmt"
"log"
"os"
@bbak
bbak / Predictable Network InterfaceNames.md
Last active February 10, 2023 10:12
Debian 9 / Stretch: Umstellung auf Predictable Network InterfaceNames

Warnung an alle, die dieses Gist finden: Ich habe hier nur dokumentiert, was ich im Rahmen einer Umstellung herausgefunden habe. Es gibt Garantie auf Richtigkeit der Informationen, Zusammenhänge oder ob das unter allen Umständen wie hier beschrieben funktioniert.

Predictable Network InterfaceNames

Debian stellt auf ein anderes System von Namen für Netzwerkinterfaces um. In Debian 9 gehen noch die alten, manuell festgelegten - was der Standard ist, wenn man von Debian 8 aktualisiert.
Ab Debian 10 wird dieses System, welches mit udev und systemd zusammen hängt, zum Standard.

Mit zless /usr/share/doc/udev/README.Debian.gz kann man Debian-spezifische Informationen zu dem Thema finden.
Unter anderem auch, dass (und wie) man diesen Mechanismus in Debian 9 Stretch umgehen kann.