- základní instalace podle Wiki včetně GRUBu
- ještě v archrootu nainstaluj dialog a wpa_supplicant (nutné pro funkční
wifi-menu
po restartu) - start nového systému
- vytvoř běžného uživatele
useradd -m -g users -u NEWUID USERNAME
- nastav heslo nového uživatele
passwd USERNAME
- nainstaluj mc
- nainstaluj openssh
- nainstaluj sudo a přidej pomocí řádek visudo
USERNAME ALL=(ALL) ALL
- nainstaluj xorg-server
- nainstaluj lxde, lightdm, lightdm-gtk-greeter, light-locker (prostředí a login manager)
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
from random import randrange | |
tah_dict = {0: 'kámen', 1: 'nůžky', 2: 'papír'} | |
res_dict = {-2: 'hráč', -1: 'poč', 0: 'remíza', 1: 'hráč', 2: 'poč'} | |
def PC(): | |
return randrange(3) | |
def hrac(): |
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 gitlab | |
from gitlab.exceptions import GitlabError | |
class MainLogic(): | |
def open_gitlab(self): | |
try: | |
gl = gitlab.Gitlab('https://example.com', 'MyToken') | |
gl.auth() | |
log.error('Connected to GitLab.') | |
return gl |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/bash | |
sudo pacman -Sy | |
sudo pacman -S base-devel | |
wget https://aur.archlinux.org/cgit/aur.git/snapshot/package-query.tar.gz | |
tar -zxvf package-query.tar.gz | |
cd package-query ; makepkg ; cd .. |
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
int[] c = {30,120,180}; //default color | |
void setup() { | |
String[] args = {"ResultApplet"}; | |
ResultApplet ra = new ResultApplet(); | |
PApplet.runSketch(args, ra); | |
size(300, 256); | |
surface.setTitle("MixerApplet"); |
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
union { | |
uint16_t data; | |
struct { | |
uint8_t l; | |
uint8_t h; | |
} s; | |
} u; |
Dne 25. května jsem obdržel mail s informací o zrušení účtu na portálu le.cz a se slevovými vouchery. Celková hodnota voucherů neodpovídá zůstatku na účtu {{{mail}} ke dni zrušení.
Proto žádám o vyčíslení zůstatku včetně kompletní historie transakcí na účtu od počátku až ke dni zrušení a poskytnutí odpovídající kompenzace za chybějící kredit.
Jako alternativní řešení reklamace je pro mne též přijatelné kompletní obnovení účtu do stavu bezprostředně před zrušením.
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
//License:GPLv3 | |
#ifdef ARDUINO_ARCH_SAMD | |
#include <WiFi101.h> | |
#elif defined ARDUINO_ARCH_ESP8266 | |
#include <ESP8266WiFi.h> | |
#elif defined ARDUINO_ARCH_ESP32 | |
#include <WiFi.h> | |
#else | |
#error Wrong platform |
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
/* | |
* Just demo to test Telegram delivery | |
* | |
*/ | |
#include <ESP8266WiFi.h> | |
#include <WiFiClientSecure.h> | |
#include <TelegramBot.h> | |
const char* ssid = ""; |
NewerOlder