Skip to content

Instantly share code, notes, and snippets.

View weeebdev's full-sized avatar
㊙️
アニメを見ますよ

Adil Akhmetov weeebdev

㊙️
アニメを見ますよ
View GitHub Profile
@weeebdev
weeebdev / banner.png
Last active December 20, 2023 19:13 — forked from dominiklohmann/banner.png
yabai autoupdate
banner.png
@weeebdev
weeebdev / git-past-commit.sh
Last active March 3, 2022 16:28
Commit files in the past or any date you want. Supports human writable dates like '10 days ago'
#!/bin/bash
if DATE=$(date -d "$1"); then
echo $DATE;
else
exit 0;
fi
GIT_AUTHOR_DATE="$DATE" GIT_COMMITTER_DATE="$DATE" git commit "${@:2}";
sudo apt-get install virtualbox-guest-additions-iso
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install virtualbox-guest-x11
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome-stable_current_amd64.deb
@weeebdev
weeebdev / fix-git-line-endings
Created October 29, 2020 03:43 — forked from synsa/fix-git-line-endings
Forces all line endings to LF in your git repo.
#####################
#
# Use this with or without the .gitattributes snippet with this Gist
# create a fixle.sh file, paste this in and run it.
# Why do you want this ? Because Git will see diffs between files shared between Linux and Windows due to differences in line ending handling ( Windows uses CRLF and Unix LF)
# This Gist normalizes handling by forcing everything to use Unix style.
#####################
# Fix Line Endings - Force All Line Endings to LF and Not Windows Default CR or CRLF
@weeebdev
weeebdev / Recent activity
Last active August 28, 2020 17:06
Recent activity
❗️ Opened issue #1380 in github/markup
🎉 Merged PR #1 in AlphaKennyBudy/activity-box
🎉 Merged PR #4 in AlphaKennyBudy/onetech-react
🎉 Merged PR #1 in AlphaKennyBudy/AlphaKennyBudy.github.io
🎉 Merged PR #1 in AlphaKennyBudy/CHATBOT
@weeebdev
weeebdev / 🐱 GitHub Data
Last active August 28, 2020 00:38
GitHub Data
🏆 568 Contributions in year 2020
📦 Used 35 MB in GitHub's Storage
📜 7 Public Gists
🔑 0 Public Keys
💼 Opted to Hire
@weeebdev
weeebdev / 📊 Weekly development breakdown
Last active August 28, 2020 17:10
Weekly development breakdown
JavaScript 1 hr 1 min ████████▌░░░░░░░░░░░░ 41.0%
JSON 23 mins ███▎░░░░░░░░░░░░░░░░░ 15.9%
Markdown 22 mins ███▏░░░░░░░░░░░░░░░░░ 15.2%
Other 16 mins ██▎░░░░░░░░░░░░░░░░░░ 11.0%
Docker 14 mins ██░░░░░░░░░░░░░░░░░░░ 9.8%
@weeebdev
weeebdev / handle_file_upload.php
Last active June 9, 2020 13:28 — forked from ebidel/handle_file_upload.php
Uploading files using xhr.send(FormData) to PHP server
<?php
$fileName = $_FILES['afile']['name'];
$fileType = $_FILES['afile']['type'];
$fileContent = file_get_contents($_FILES['afile']['tmp_name']);
$dataUrl = 'data:' . $fileType . ';base64,' . base64_encode($fileContent);
$json = json_encode(array(
'name' => $fileName,
'type' => $fileType,
'dataUrl' => $dataUrl,
@weeebdev
weeebdev / gradient-text.css
Created May 30, 2020 06:20
gradient text
h1 {
background-image: linear-gradient(#EAEBF5 0%, #C7C8DB 100%);
color: transparent;
background-clip: text;
}