I hereby claim:
- I am r0xsh on github.
- I am r0xsh (https://keybase.io/r0xsh) on keybase.
- I have a public key ASDOWveU0_7_BNwMo_E9fZs7zEBTYbSsPeyb33ThLx7pQAo
To claim this, I am signing this object:
## /etc/wpa_supplicant/wpa_supplicant-nl80211-wlo1.conf | |
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel | |
update_config=1 | |
p2p_disabled=1 | |
mac_addr=1 | |
rand_addr_lifetime=10 | |
preassoc_mac_addr=1 |
## /etc/X11/xorg.conf.d/ | |
Section "InputClass" | |
Identifier "Keyboard Layout" | |
MatchIsKeyboard "yes" | |
Option "XkbLayout" "fr" | |
Option "XkbVariant" "oss" | |
EndSection |
## /etc/X11/xorg.conf.d | |
Section "Monitor" | |
Identifier "eDP1" | |
Option "Primary" "true" | |
Option "PreferredMode" "1920x1080_60.05" | |
EndSection | |
Section "Monitor" | |
Identifier "DP2" | |
Option "LeftOf" "eDP1" |
## /etc/X11/xorg.conf.d | |
Section "Device" | |
Identifier "Intel Graphics" | |
Driver "Intel" | |
Option "AccelMethod" "sna" | |
Option "TearFree" "True" | |
Option "Tiling" "True" | |
Option "SwapbuffersWait" "True" | |
#Option "AccelMethod" "uxa" | |
EndSection |
#!/bin/sh | |
REPO_NAME=papers_database | |
GIT_DIR=$HOME/$REPO_NAME.git | |
WORK_DIR=$HOME/work/$REPO_NAME | |
mkdir -p $WORK_DIR | |
git --work-tree=$WORK_DIR --git-dir=$GIT_DIR checkout -f |
I hereby claim:
To claim this, I am signing this object:
extern crate ws; | |
use std::thread; | |
use ws::{listen, CloseCode, Sender, Handler, Message, Result}; | |
fn is_odd(n: ws::Message) -> String { | |
match n.into_text() { | |
Ok(e) => { | |
match e.as_ref() { |
DEVICE="/dev/sda" | |
KEYMAP="fr-pc" | |
# Clean du disk et convert to GPT format | |
sgdisk -og $DEVICE > /dev/null | |
# Define les sizeblocks | |
ST_EFI=2048 | |
EN_EFI=$(((512 * 2 * 1024) + $ST_EFI)) |
public static byte[] readUri(Context context, Uri uri) throws IOException { | |
ParcelFileDescriptor pdf = context.getContentResolver().openFileDescriptor(uri, "r"); | |
assert pdf != null; | |
assert pdf.getStatSize() <= Integer.MAX_VALUE; | |
byte[] data = new byte[(int) pdf.getStatSize()]; | |
FileDescriptor fd = pdf.getFileDescriptor(); | |
FileInputStream fileStream = new FileInputStream(fd); | |
fileStream.read(data); |
xrandr --listactivemonitors | grep '+\*' | awk '{print $4}' |