Skip to content

Instantly share code, notes, and snippets.

@dbiesecke
dbiesecke / docker-compose.yml
Created November 26, 2019 10:37
c9 / c50ide
services:
cloud9:
image: cs50/ide
container_name: cloud9
environment:
- PGID=${PGID}
- PUID=${PUID}
- TZ=${TZ}
# - PORT=80
# - IP=178.254.3.20
@dbiesecke
dbiesecke / README.md
Created October 25, 2019 20:41
Go - Headless Browser with gotk3

#Go - Headless Browser with gotk3

  • gotk3 | go-webkit2
  • On Ubuntu 14/16/18+ sudo apt-get install -y libglib2.0-dev libcairo2-dev libgtk-3-dev xvfb

go get -tags gtk_3_10 github.com/gotk3/gotk3/gtk

#!/usr/bin/perl
# use Carp;
# require Exporter;
# require DynaLoader;
# require 5.006;
my $hostname = `hostname | xargs echo -n`; # bot will get here machine name
my $name = getlogin."\@".$hostname;
@dbiesecke
dbiesecke / KodiScriptImporter.py
Last active October 2, 2019 20:18
Kodi Server Test
# -*- coding: utf-8 -*-
'''
Created on 9/05/2014
@author: pybquillast
'''
import sys
import os
@dbiesecke
dbiesecke / Lircmap.xml
Created September 30, 2019 18:59
Kodi / Libreelect LIRC Config - Example on Trongle X3 - Amlogic S905X
<?xml version="1.0" encoding="UTF-8"?>
<!-- ~/.kodi/userdata/Lircmap.xml -->
<!-- This file contains the mapping of LIRC keys to XBMC keys used in Keymap.xml -->
<!-- -->
<!-- How to add remotes -->
<!-- <remote device="name_Lirc_calls_the_remote"> -->
<!-- -->
<!-- For the commands the layout following layout is used -->
<!-- <XBMC_COMMAND>LircButtonName</XBMC_COMMAND> -->
@dbiesecke
dbiesecke / README.md
Last active June 21, 2019 11:07
Remaster Linux ISO / create own live linux

GRML

  • remaster mit grml-live: grml-live -g gr -c GRMLBASE,GRML_FULL,AMD64 -i ../../../home/user/grml_0.0-1.iso -v 0.0-1 -I /tmp/chroot_add/ -N

  • now remaster your CHROOT

  • after youre fine, build it all with: grml-live -g gr -c GRMLBASE,GRML_FULL,AMD64 -i ../../../home/user/grml_0.0-1.iso -v 0.0-1 -I /tmp/chroot_add/ -u

  • add files to iso: xorriso -outdev output.iso -indev grml_0.0-1.iso -blank as_needed -map ./config.bz2 /config.tbz -boot_image isolinux partition_table=on -boot_image isolinux dir=/boot/isolinux

*DEFAULT_BOOTOPTIONS="persistence service=autofs netscript=home.forward.pw/grml/test.pl netconfig=home.forward.pw/grml/config.tbz ssh=yeah12ha lang=de nobeep noeject vnc=yeah12ha startkde"

@dbiesecke
dbiesecke / README.md
Last active December 21, 2018 23:23
Crypto Coin API's

Crypto REST Api Calls

       curl 'https://www.kraken.com/ajax'   -H 'accept-language: de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7,mt;q=0.6' -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.80 Safari/537.36' -H 'content-type: application/x-www-form-urlencoded; charset=UTF-8' -H 'accept: text/plain, */*; q=0.01' -H 'referer: https://www.kraken.com/u/trade' -H 'authority: www.kraken.com' -H 'x-requested-with: XMLHttpRequest' -H 'dnt: 1' --data 'dataflag%5Bacc%5D=967&dataflag%5Bpub%5D=40&orderlistflag=3&positionlist%5Bpos%5D=0&positionlist%5Breqid%5D=0&positionlist%5Bgroup%5D=1&orderlistclose%5Bpos%5D=0&orderlistclose%5Breqid%5D=1&tradelist%5Bpos%5D=0&tradelist%5Breqid%5D=1&ledger%5Bpos%5D=0&ledger%5Breqid%5D=1&pair=XMREUR&rate%5Breqid%5D=0&rate%5Bkv%5D=false&depth%5Breqid%5D=0&a=fetch' --compressed | jq  '.data.rate.rate'


curl --request GET                                   

--url https://api.bitfinex.com/v1/pubticker/eth

@dbiesecke
dbiesecke / README.md
Created December 15, 2018 23:35
Cross Compile with Musl

Docker and Musl-Multiarch

Cross-Building-and-Running-Multi-Arch-Docker-Images

   https://github.com/multiarch/crossbuild

    $ docker run --rm -v $(pwd):/workdir -e CROSS_TRIPLE=arm-linux-gnueabihf multiarch/crossbuild make helloworld

cc helloworld.c -o helloworld

@dbiesecke
dbiesecke / README.md
Created November 13, 2018 16:58
Anime Tips Crunchyroll
  GTO - The Animation
  Mobile Suit GUNDAM Iron Blooded Orphans
  Tokyo ESP
  Golden Time
  Big Order
  Bungo Stray Dogs
  Berserk
  ReLIFE
  Izetta

Interview with Monster Girl

@dbiesecke
dbiesecke / README.md
Created October 4, 2018 21:58
Speed Reinigen

Reinigung eines Amphetaminsalzes(4 Methoden)

Zur Einführung:

Ich Stelle nun 4 Reinigungs-Methoden vor, dabei hat Jede Vor- und Nachteile und einige davon funktionieren sogar mit jedem Amphetaminsalz, egal ob Sulfat, 'HCl, Phosphat, Citrat ect.. Allerdings steigt damit auch der präparative Aufwand, die Anzahl der benötigten frei verfügbaren Chemiekalien und Gerätschaften (=einmalige Anschaffungskosten).