Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View KannarFr's full-sized avatar
💭
🦆

kannar KannarFr

💭
🦆
View GitHub Profile
Given
```
[sources.files]
type = "file"
include = ["/home/kannar/git/cc/conf/vector/logs_cargo.test"]
ignore_older = 86400 # seconds
start_at_beginning = true
import React from 'react';
import {
Button,
Div,
Text,
Icon,
Input,
Select,
Modal,
} from 'react-native-magnus';
mysql --database="mysql" --execute="GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '$(cat .my.cnf | tail -n1 | cut -d'=' -f2)' WITH GRANT OPTION; FLUSH PRIVILEGES;"
cryptsetup open /dev/nvme0n1p2 btrpool
mount -t btrfs -o subvol=/exherbo /dev/mapper/btrpool /mnt/exherbo
mkdir /mnt/exherbo
mount -t btrfs -o subvol=/exherbo /dev/mapper/btrpool /mnt/exherbo
mount -o rbind /dev/ /mnt/exherbo/dev/
mount -o bind /sys/ /mnt/exherbo/sys/
mount -t proc none /mnt/exherbo/proc/
mount /dev/nvme0n1p1 /mnt/exherbo/boot
chroot /mnt/exherbo/ su -
[root@localhost ~]# cryptsetup open /dev/nvme0n1p2 btrpool
Enter passphrase for /dev/nvme0n1p2:
[root@localhost ~]# mount /dev/mapper/btrpool /mnt/exherbo/
[root@localhost ~]# mount -o rbind /dev /mnt/exherbo/dev/
[root@localhost ~]# mount -o bind /sys/ /mnt/exherbo/sys/
[root@localhost ~]# mount -t proc none /mnt/exherbo/proc/
[root@localhost ~]# cp /etc/resolv.conf /mnt/exherbo/etc/resolv.conf
[root@localhost ~]# chroot /mnt/exherbo/
localhost / # ls
bin boot dev etc exherbo home kannar lib lib64 media mnt opt proc root run sbin srv sys tmp usr var
@KannarFr
KannarFr / ihme
Created September 26, 2017 17:08
public class Main {
final static char[] x = {'A','C','G','T','C','G','A','C','G'};
final static char[] y = {'A','C','T','C','A','C','G'};
final static int INS = -1;
final static int DEL = -1;
public static void main(String[] args) {
int n = y.length;
int p = x.length;
int[][] table = new int[n + 1][p + 1];

Keybase proof

I hereby claim:

  • I am kannarfr on github.
  • I am kannar (https://keybase.io/kannar) on keybase.
  • I have a public key whose fingerprint is C15B 6296 6645 44E6 7306 95CF 7B11 19D4 7482 8122

To claim this, I am signing this object: