Skip to content

Instantly share code, notes, and snippets.

View Ademking's full-sized avatar
🍪
Eating Cookies

Adem Kouki Ademking

🍪
Eating Cookies
View GitHub Profile
@Ademking
Ademking / README.md
Created July 10, 2024 13:38
OVH: Reset VPS password
sudo mkdir /mnt/sdb
sudo mount /dev/sdb1 /mnt/sdb
chroot /mnt/sdb"
passwd
@Ademking
Ademking / Certificate.tsx
Created March 19, 2024 07:24
Certificate
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/[email protected]/NotoSansArabic_400Regular.ttf",
});
Font.register({
family: "Work Sans",
@Ademking
Ademking / dark.css
Created February 17, 2024 00:31
Tlk.io Themes
header {
display: none;
}
.info {
display: none;
}
.button.button {
color: #999999;
@Ademking
Ademking / dark-theme.css
Last active February 11, 2024 05:17
tlk.io dark theme
/* 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));
@Ademking
Ademking / README.md
Last active September 16, 2023 02:45
Ag-grid (Angular) Go FullScreen without breaking modals and other elements

Ag-grid (Angular) Go FullScreen without breaking modals and other elements

The problem

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.

The solution

@Ademking
Ademking / sensitive.txt
Created September 7, 2023 06:56
List of sensitive files and directories
.sql
.sql.gz
.sql.tar
.sql.bzip2
.sql.bz2
.sql.zip
.sql.rar
.sql.7z
.bash_history
.bashrc
@Ademking
Ademking / README.md
Created June 22, 2023 21:57
Echarts - hide button in Treemap

image

breadcrumb: {
  show: false
}
@Ademking
Ademking / table.tex
Created May 22, 2023 01:25
Vertical alignment in longtable with figure in table
\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
@Ademking
Ademking / app.py
Created March 21, 2023 14:34
Get list of technologies and materials
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',
@Ademking
Ademking / README.md
Created February 2, 2023 09:17
Projet
Caractéristique Amazon Alibaba Shopify
Type de plateforme Plateforme de commerce électronique Plateforme de commerce électronique B2B et B2C Plateforme de commerce électronique
Focus Ventes au détail, tant en nom propre qu'en tiers Ventes en gros et au détail Petites et moyennes entreprises
Produits Large gamme de produits, notamment électroniques, livres, mode, etc. Large gamme de produits, notamment électroniques, mode, etc. Principalement axé sur la vente de produits physiques
Portée géographique Mondiale Mondiale avec un accent sur le marché asiatique Mondiale
Frais Frais d'abonnement mensuels, frais de recommandation pour les ventes en tiers Frais de transaction, frais d'adhésion pour les vendeurs Frais d'abonnement mensuels, frais de transaction
Options de paiement Cartes de crédit, Amazon Pay Alipay, virement bancaire, cartes de crédit Cartes de crédit, PayPal, Stripe