Skip to content

Instantly share code, notes, and snippets.

View AdrianKoshka's full-sized avatar
🦉
Focusing

Adrian Lucrèce Céleste AdrianKoshka

🦉
Focusing
View GitHub Profile
@AdrianKoshka
AdrianKoshka / curl API output
Created July 18, 2015 23:25
Stikked curl API output for encrypted paste.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Freedom of speech with encrypted pastes - Stikked</title>
<link rel="shortcut icon" href="http://paste.scratchbook.ch/favicon.ico" />
<link type="text/css" rel="stylesheet" href="http://paste.scratchbook.ch/static/asset/1422360278af9c4884aaa89b249e8c4a2e366f107b.css" media="screen" />
<link type="text/css" rel="stylesheet" href="http://paste.scratchbook.ch/static/asset/1412081190c333a9d41fdb00f9462ec9dc65f32f57.css" media="print" />
<script type="text/javascript">
@AdrianKoshka
AdrianKoshka / setup.sh
Last active October 6, 2015 00:06
Quick and dirty Vyos setup
#!/bin/vbash
source /opt/vyatta/etc/functions/script-template
configure
set interfaces ethernet eth0 address dhcp
set interfaces ethernet eth0 description 'OUTSIDE'
set interfaces ethernet eth0 duplex 'auto'
set interfaces ethernet eth0 speed 'auto'
set interfaces ethernet eth1 address '10.0.0.1/24'
@AdrianKoshka
AdrianKoshka / dice.png
Last active November 17, 2015 01:36
Basic guide for setting up / making presentations in sent.
dice.png
@AdrianKoshka
AdrianKoshka / sent.1
Last active November 17, 2015 03:09 — forked from professorjamesmoriarty/sent.1
sent manpage
.TH SENT 1 November 2015 User Commands
.SH NAME
sent \- manual page for sent 0.1
.SH DESCRIPTION
usage: sent FILE1 [FILE2 ...]
.PP
Simple plaintext presentation tool.
.SH SEE ALSO
The full documentation for
.B sent
@AdrianKoshka
AdrianKoshka / create_repo.sh
Last active November 18, 2015 01:29 — forked from adampats/create_repo.sh
Create GitHub repo from command line and push
# Personal Access Token required - go here: https://github.com/settings/tokens
repo="newrepo"
gh_user="adriankoshka"
gh_token="mytoken"
curl -u "$gh_user:$gh_token" https://api.github.com/user/repos -d '{"name":"'$repo'"}'
@AdrianKoshka
AdrianKoshka / style.css
Last active November 29, 2015 18:53
Twily's Powerline Firefox CSS w/ URL bar showing.
@namespace html url(http://www.w3.org/1999/xhtml);
@namespace xul url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
/*
Author: Twily
Description: Minimal flat styled tabs for Australis
Compitability: Firefox Nightly v31.0a1 - v32.0a1 (Australis)
CSS Variables were introduced to Firefox in v29.0a1
Website: http://twily.info/
License: CC BY-NC-SA
@AdrianKoshka
AdrianKoshka / sort.sh
Last active January 25, 2016 00:08
sort your stuff!
#!/usr/bin/env bash
for i in $(ls -1 scrubbed*); do
echo "hostname: $i"
cat $i | grep -e "MACAddress" | sed -e "s/^.*MACAddress=//g" -e "/^\s*$/d"
done
@AdrianKoshka
AdrianKoshka / wou.sh
Created February 1, 2016 02:35
A little WoL script for doing updates.
#!/usr/bin/env bash
BCAST_IP="your broadcast IP here"
MAC_ADDR="your mac address here"
wakeonlan -i $BCAST_IP $MAC_ADDR #send magic packet to computer
echo "Waiting for boot"
sleep 2m # this is just filler, waits two minutes for computer to boot.
ssh everyone@192.168.0.6 -t "sudo apt-get update; sudo apt-get upgrade; sudo poweroff"
#runs commands, then shuts computer down
@AdrianKoshka
AdrianKoshka / specs.md
Last active February 3, 2016 01:49
Some specs of the pogoplug series 4

lspci -vvnn

$ lspci -vvnn

00:00.0 Host bridge [0600]: Marvell Technology Group Ltd. 88F6281 [Kirkwood] ARM SoC [11ab:6281] (rev 03)
	Subsystem: Marvell Technology Group Ltd. Device [11ab:11ab]
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0, Cache Line Size: 32 bytes