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 / pomfload
Last active August 28, 2016 21:42 — forked from KittyKatt/pomf
#!/usr/bin/env bash
# pomf clone uploader
# requires: curl
# formerly known as 1339load
#1339.cf works, so does pomf.cat, if you test others and they work, tell me.
dest_url='https://pomf.cat/upload.php'
return_url='https://a.pomf.cat'
if [[ -n "${1}" ]]; then
@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 / 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 / dice.png
Last active November 17, 2015 01:36
Basic guide for setting up / making presentations in sent.
dice.png
@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 / youbeuter.md
Created January 24, 2016 04:24
Some instructions on managing youtube subs via newsbeuter

Getting your OPML file from youtube

  1. Go to youtube
  2. Go to Subscriptions
  3. Scroll down to bottom and press the Export Subscriptions button
  4. Download the file

or

  1. Just press THIS (should work)
@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