Skip to content

Instantly share code, notes, and snippets.

View MinmoTech's full-sized avatar
:octocat:
Beep Boop, working correctly

MinmoTech MinmoTech

:octocat:
Beep Boop, working correctly
  • Migaku
View GitHub Profile
@MinmoTech
MinmoTech / Portainer quick.PNG
Last active October 23, 2018 13:31
dockstarter config
Portainer quick.PNG
@MinmoTech
MinmoTech / install.txt
Last active November 30, 2021 15:33
Arch Install Guide
#check network
wifi-menu
ip link
ping archlinux.org
# ensure proper system clock
timedatectl set-ntp true
# list partitions
lsblk
@MinmoTech
MinmoTech / main.py
Created July 18, 2019 18:14
Python game test
import random
def rand_x():
return random.randint(0, 9)
def rand_y():
return random.randint(0, 39)
def print_first_element_from_sublist(list):
for sublist in list:
print(sublist[0])
list = [[0,1],[3,4]]
print_first_element_from_sublist(list)
@MinmoTech
MinmoTech / .gitignore
Last active May 7, 2020 17:00
deezer downloadlinks
./*
*
@MinmoTech
MinmoTech / defaultbrowser.txt
Created October 29, 2019 09:38
Set default browser
xdg-mime default browser.desktop x-scheme-handler/http
xdg-mime default browser.desktop x-scheme-handler/https
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i5-4460 CPU @ 3.20GHz
CPU Family: 0x6
@MinmoTech
MinmoTech / back.txt
Created January 5, 2020 13:46
MIA Japanese Anki Template
<div class="tags">
例文{{#Tags}}|{{/Tags}}{{Tags}}</span>
</div>
{{#Audio on Front}}<span class="expression-field">{{Audio}}</span><hr>{{/Audio on Front}}
<span class="expression-field"><div display-type="coloredkanjireading" class="wrapped-japanese">{{Expression}}</div></span>
{{^Audio on Front}}<hr>{{/Audio on Front}}
{{^Audio on Front}}<div class="meaning-field"><div display-type="coloredhover" class="wrapped-japanese">{{Meaning}}</div></div>{{/Audio on Front}}
{{#Audio on Front}}<div class="meaning-field padded-top"><div display-type="coloredhover" class="wrapped-japanese">{{Meaning}}</div></div>{{/Audio on Front}}
{{^Audio on Front}}{{Audio}}{{/Audio on Front}}
@MinmoTech
MinmoTech / lastpass2gopass.py
Last active April 19, 2020 15:27
Lastpass to gopass export script. Export lastpass database as csv and put it next to the script. Then execute.
#!/usr/bin/env python
import csv
from itertools import islice
import os
with open('lastpass_export.csv', newline='') as f:
reader = csv.reader(f)
for row in islice(reader, 1, None):
url = row[0]
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "Boot from second disk and see it as first disk" {
set root=(hd1)
drivemap -s hd0 hd1
chainloader +1