- Write into
/etc/wsl.conf
[automount]
options = "metadata"
- Restart WSL (Go to powershell and write
wsl --shutdown
, then reopen WSL2 terminal) - Execute these commands below:
$ cd ~/
$ ln -s /mnt/c/Users//.ssh .ssh
$x = file_get_contents("compress.zlib://php://input"); |
<?php | |
define("TIMEINTERVAL", 60); // define the interval in seconds | |
//we have a session, so I call it | |
session_start(); | |
// if the user have not visited a page under an interval of 60 seconds, destroy the session | |
if ( (time() - $_COOKIE['session_time']) > TIMEINTERVAL ) { | |
<?php | |
function getTerminalCols() | |
{ | |
$cols = 0; | |
if (defined('PHP_WINDOWS_VERSION_BUILD')) { | |
$cmdHandler = popen('more', 'r'); | |
$cmdInfo = fread($cmdHandler, 2096); | |
pclose($cmdHandler); | |
$cmdInfo = explode("\n", $cmdInfo); | |
$cols = trim(substr($cmdInfo[9], -4, 4)); |
#!/bin/sh | |
printf "Downloading metadata...\n" | |
url=$(curl -s "http://c.brightcove.com/services/mobile/streaming/index/master.m3u8?videoId=4677882746001" | grep http | tail -1) | |
i=0 | |
curl -s "$url" | grep http > TSList.m3u8 | |
cat TSList.m3u8 | while read -r line; do | |
printf -v out "fragment_%05d.ts" $i | |
printf "Downloading fragment %d / 494\r" $i | |
curl -s "$line" -o $out | |
i=$((i+1)) |
{ | |
"always_show_minimap_viewport": true, | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme", | |
"detect_intendation": false, | |
"font_face": "Roboto Mono", | |
"font_size": 12, | |
"highlight_line": true, | |
"ignored_packages": |
sudo dnf remove libreoffice* rhythmbox evolution gnome-calculator gnome-calendar cheese gnome-clocks gnome-contacts gnome-maps gnome-weather | |
sudo dnf update | |
sudo dnf install binutils gcc gcc-c++ patch bison cmake flex python perl-ExtUtils-MakeMaker perl-Thread-Queue vim | |
sudo reboot |
#!/usr/bin/bash | |
# Copyright 2018 Giovanni Grieco <[email protected]> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# |
import hashlib | |
in = b'My beautiful input string' | |
hashlib.md5(in).hexdigest() | |
# '0b78bf24d7128899723fb0e5cf7648b6' |
# List Installed Appx (Metro/Store/Modern Apps) | |
#Get-AppxPackage | Select Name | |
# Appx I do not need | |
# More info: https://docs.microsoft.com/it-it/windows/application-management/apps-in-windows-10 | |
$AppxToRemove = @( | |
'Microsoft.Windows.Photos', | |
'Microsoft.WindowsCamera', | |
'Microsoft.WindowsStore', | |
'microsoft.windowscommunicationsapps', |
/etc/wsl.conf
[automount]
options = "metadata"
wsl --shutdown
, then reopen WSL2 terminal)$ cd ~/
$ ln -s /mnt/c/Users//.ssh .ssh