This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/s/g/p/openssh ((debian/1%9.8p1-8))> dpkg-source -b . | |
[1mdpkg-source: [0m[32minfo[0m: using source format '3.0 (quilt)' | |
dpkg-source: warning: upstream signing key but no upstream tarball signature | |
[1mdpkg-source: [0m[32minfo[0m: building openssh using existing ./openssh_9.8p1.orig.tar.xz | |
[1mdpkg-source: [0m[32minfo[0m: using patch list from debian/patches/series | |
patching file Makefile.in | |
Reversed (or previously applied) patch detected! Skipping patch. | |
3 out of 3 hunks ignored | |
patching file README.md | |
Reversed (or previously applied) patch detected! Skipping patch. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate datetime; | |
use std::env::args; | |
use std::{thread, time}; | |
use std::process::Command; | |
use datetime::{LocalDate, Month, DatePiece}; | |
const MINUTE: u64= 60; | |
fn main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# svg hell -- xml bomb generator for svg | |
# | |
# for educational use | |
# please don't allow svg on 8ch.net | |
# | |
# usage: python svghell.py > evil.svg | |
# | |
import random |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
CSRF_TOKEN=$(curl http://www.wifionice.de/de/|grep -oE 'value="[0-9a-f]{32}"' | cut -d = -f2|sed 's/"//g') | |
echo $CSRF_TOKEN | |
# This is what the website is going to request to the backend... | |
# POST /de/ HTTP/1.1 | |
# Host: www.wifionice.de | |
# User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- that is very similar to that of pandoc's HTML writer. | |
-- There is one new feature: code blocks marked with class 'dot' | |
-- are piped through graphviz and images are included in the HTML | |
-- output using 'data:' URLs. | |
-- | |
-- Invoke with: pandoc -t sample.lua | |
-- | |
-- Note: you need not have lua installed on your system to use this | |
-- custom writer. However, if you do have lua installed, you can | |
-- use it to test changes to the script. 'lua sample.lua' will |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def netmask_to_cidr(m_netmask): | |
return(sum([ bin(int(bits)).count("1") for bits in m_netmask.split(".") ])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tasklib.task | |
# https://tasklib.readthedocs.io/en/latest/#dealing-with-dates-and-time | |
from datetime import datetime, date, timedelta | |
tw = tasklib.TaskWarrior("/home/akendo/.task") | |
ldone_tasks = tw.tasks.filter(status='Completed') | |
#ldone_tasks[-1]['end'] |