This file contains hidden or 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 | |
# Function for colored logging | |
debug() { | |
local mode="$1" | |
local log="$2" | |
local color="$3" | |
case "$mode" in | |
fetch) echo -e "\e[1;36m[Fetch]\e[0m $log" ;; |
This file contains hidden or 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
<?xml version="1.0"?> | |
<FanControlConfigV2 xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<NotebookModel>HP Pavilion Gaming Laptop 15-ec1xxx</NotebookModel> | |
<Author>bLeDy</Author> | |
<EcPollInterval>1000</EcPollInterval> | |
<ReadWriteWords>false</ReadWriteWords> | |
<CriticalTemperature>68</CriticalTemperature> | |
<FanConfigurations> | |
<FanConfiguration> | |
<ReadRegister>88</ReadRegister> |
This file contains hidden or 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
gaps: | |
inner_gap: 2 | |
outer_gap: 4 | |
general: | |
# Whether to show floating windows as always on top. | |
show_floating_on_top: false | |
bar: | |
height: "30px" |
This file contains hidden or 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
# importing the required libraries. | |
import requests | |
from bs4 import BeautifulSoup | |
import re | |
# Requesting the HTML from the web page. | |
page = requests.get("https://books.toscrape.com/") | |
# Selecting the data. | |
soup = BeautifulSoup(page.content, "html.parser") |
This file contains hidden or 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
{"ip": "116.75.197.13"} |
This file contains hidden or 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 sys, json; | |
import urllib.request | |
import bs4 as bs; | |
ap=json.load(urllib.request.urlopen("https://codeforces.com/api/user.status?handle=18o3"))["result"]; | |
for i in ap: | |
phtml = bs.BeautifulSoup(urllib.request.urlopen( f'https://codeforces.com/contest/{i["contestId"]}/submission/{i["id"]}'), "html.parser"); | |
try: | |
out=""; | |
code = phtml.body.find('pre', attrs={'id':'program-source-text'}).text; | |
for lno in range(len(code.splitlines())-7, len(code.splitlines())): |
This file contains hidden or 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
struct IOPre { | |
static constexpr int TEN = 10, SZ = TEN * TEN * TEN * TEN; | |
std::array<char, 4 * SZ> num; | |
constexpr IOPre() : num{} { | |
for (int i = 0; i < SZ; i++) { | |
int n = i; | |
for (int j = 3; j >= 0; j--) { | |
num[i * 4 + j] = static_cast<char>(n % TEN + '0'); | |
n /= TEN; | |
} |
This file contains hidden or 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 socks | |
import socket | |
import requests | |
import os | |
import time | |
import json | |
import urllib2 | |
socks.setdefaultproxy(proxy_type=socks.PROXY_TYPE_SOCKS5, addr="127.0.0.1", port=9050) |
This file contains hidden or 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
-> boot into the disk installation through grub | |
-> systemctl start NetworkManager.service | |
-> nmcli device wifi list | |
-> nmcli device wifi connect <SSID> password <password> | |
-> sudo pacman -Syuu | |
-> sudo pacman -S base-devel | |
-> sudo pacman -S xorg xorg-xrandr xorg-server xorg-xinit picom rofi firefox kitty lightdm lightdm-gtk-greeter awesome git pulseaudio alsa alsa-utils thunar code | |
-> sudo pacman -S nvidia nvidia-utils nvidia-settings xorg-server-devel opencl-nvidia mesa mesa-demos xf86-video-amdgpu |
This file contains hidden or 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
{ | |
"bp": { | |
"prefix": "bp", | |
"body": [ | |
"#include <bits/stdc++.h>", | |
"#ifndef ONLINE_JUDGE", | |
"#include \"debug.h\"", | |
"#else", | |
"#define dbg(x...)", | |
"#endif", |