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
#check network | |
wifi-menu | |
ip link | |
ping archlinux.org | |
# ensure proper system clock | |
timedatectl set-ntp true | |
# list partitions | |
lsblk |
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 random | |
def rand_x(): | |
return random.randint(0, 9) | |
def rand_y(): | |
return random.randint(0, 39) |
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 print_first_element_from_sublist(list): | |
for sublist in list: | |
print(sublist[0]) | |
list = [[0,1],[3,4]] | |
print_first_element_from_sublist(list) | |
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
./* | |
* |
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
xdg-mime default browser.desktop x-scheme-handler/http | |
xdg-mime default browser.desktop x-scheme-handler/https |
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
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 |
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
<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}} |
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 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] |
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
#!/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 |
OlderNewer