Skip to content

Instantly share code, notes, and snippets.

View mymindwentblvnk's full-sized avatar
🪴

Michael Eichenseer mymindwentblvnk

🪴
View GitHub Profile
@mymindwentblvnk
mymindwentblvnk / iso_to_usb.sh
Last active December 14, 2017 21:04
ISO to USB
# Find out what the USB drive is named
df -h
# Unmount it
umount /dev/sdb1
# Unmount this too if needed
umount /dev/sdb2
# Copy ISO
sudo dd bs=4M if=LINK_TO_ISO of=/dev/sdb
@mymindwentblvnk
mymindwentblvnk / install.sh
Last active September 15, 2018 10:37
Installation Script
sudo apt install vim
sudo apt install silversearcher-ag
sudo apt install git
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
sudo apt install python3-dev
sudo apt install python-virtualenv
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/
# generate server.xml with the following command:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
# run as follows:
# python simple-https-server.py
# then in your browser, visit:
# https://localhost:4443
import BaseHTTPServer, SimpleHTTPServer
import ssl
  1. First get into terminal and type sudo vim /etc/default/grub.

  2. Next, the grub.cfg file should pop up. Find GRUB_CMDLINE_LINUX="" and within the quotes type in i8042.reset i8042.nomux i8042.nopnp i8042.noloop.

  3. So it should look like this: GRUB_CMDLINE_LINUX="i8042.reset i8042.nomux i8042.nopnp i8042.noloop"

  4. Hit save.

  5. Next, you need to open up another terminal window and update grub by typing in sudo update-grub and finally restart.

@mymindwentblvnk
mymindwentblvnk / spin-up-a-local-postgres.sh
Created January 4, 2022 14:47
Spin Up a Local Postgres
mkdir ${HOME}/postgres-data/
docker run -d --name postgres -e POSTGRES_PASSWORD=postgres -v ${HOME}/postgres-data/:/var/lib/postgresql/data -p 5432:5432 postgres
@mymindwentblvnk
mymindwentblvnk / Creator.java
Created February 16, 2022 12:48 — forked from shardulm94/Creator.java
ORC Sample file creator
import java.io.IOException;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.hive.ql.exec.vector.BytesColumnVector;
import org.apache.hadoop.hive.ql.exec.vector.LongColumnVector;
import org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch;
import org.apache.orc.CompressionKind;
import org.apache.orc.OrcFile;
import org.apache.orc.TypeDescription;
bild.de
deutschlandfunk.de
faz.net
imgur.com
mzee.com
news.google.com
reddit.com
spiegel.de
sueddeutsche.de
welt.de

Django GraphQL Notes

Debugging

Put this in settings.py to see executed SQL queries

LOGGING = {
    'version': 1,
    'filters': {
deutschlandfunkkultur.de
linkedin.com
whatsapp.com
youtube.com
golem.de
heise.de