sudo mkdir /mnt/sdb
sudo mount /dev/sdb1 /mnt/sdb
chroot /mnt/sdb"
passwd
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 os | |
from pypdf import PdfReader | |
# Get all PDF files in the current directory | |
pdf_files = [f for f in os.listdir('.') if f.endswith('.pdf')] | |
for pdf_file in pdf_files: | |
# Create a PDF reader object | |
reader = PdfReader(pdf_file) | |
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 { Page, Text, View, StyleSheet, Document, Font, Image } from "@react-pdf/renderer"; | |
import { containsArabic } from "../utils/utils"; | |
Font.register({ | |
family: "Noto Sans Arabic", | |
src: "https://cdn.jsdelivr.net/npm/@expo-google-fonts/noto-sans-arabic@0.2.3/NotoSansArabic_400Regular.ttf", | |
}); | |
Font.register({ | |
family: "Work Sans", |
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
header { | |
display: none; | |
} | |
.info { | |
display: none; | |
} | |
.button.button { | |
color: #999999; |
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
/* tlk.io night theme */ | |
.button.button { | |
color: #999999; | |
border-color: rgba(0,0,0,0.4); | |
background-color: #3d4148; | |
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, rgba(255,255,255,0.05)), color-stop(100%, rgba(255,255,255,0))); | |
background-image: -webkit-linear-gradient(top, rgba(255,255,255,0.05), rgba(255,255,255,0)); | |
background-image: -moz-linear-gradient(top, rgba(255,255,255,0.05), rgba(255,255,255,0)); |
I was working with Ag-grid and Ng-zorro (Ant Design), and I needed to go set the data-table to full-screen mode, but I was having issues with the modals and other elements breaking. Modal not showing up, or dropdowns not working, etc.
I found a solution that worked for me, and I wanted to share it with you.
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
.sql | |
.sql.gz | |
.sql.tar | |
.sql.bzip2 | |
.sql.bz2 | |
.sql.zip | |
.sql.rar | |
.sql.7z | |
.bash_history | |
.bashrc |
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
\documentclass{article} | |
\usepackage{array, longtable} | |
\usepackage[export]{adjustbox} | |
\usepackage{graphicx} | |
\usepackage{lipsum} | |
\begin{document} | |
\begin{longtable}{|p{1in}| >{\raggedright}p{4.5in}|}\hline | |
p column & p column \tabularnewline \hline |
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 requests | |
def getTechnologies(): | |
url = "https://smartquote-server.fathommfg.com/api/technologies/" | |
payload={} | |
headers = { | |
'authority': 'smartquote-server.fathommfg.com', | |
'accept': 'application/json, text/plain, */*', | |
'accept-language': 'en-US,en;q=0.9,fr-FR;q=0.8,fr;q=0.7', | |
'cache-control': 'no-cache', |
NewerOlder