Skip to content

Instantly share code, notes, and snippets.

View tasinttttttt's full-sized avatar

Tayeb B. tasinttttttt

View GitHub Profile
@tasinttttttt
tasinttttttt / AppServiceProvider.php
Last active July 26, 2023 08:39
Lighthouse 6 validation is processed before guarding Fix
View AppServiceProvider.php
<?php
// app/Providers/AppServiceProvider.php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
@tasinttttttt
tasinttttttt / README.md
Created June 21, 2023 19:30 — forked from BoGnY/README.md
[WINDOWS] How to enable auto-signing Git commits with GnuPG for programs that don't support it natively
View README.md

[WINDOWS] How to enable auto-signing Git commits with GnuPG for programs that don't support it natively

This is a step-by-step guide on how to enable auto-signing Git commits with GPG for every applications that don't support it natively (eg. GitHub Desktop, Eclipse, Git Tower, ...)

Requirements

  • Install GPG4Win: this software is a bundle with latest version of GnuPG v2, Kleopatra v3 certificate manager, GNU Privacy Assistant (GPA) v0.9 which is a GUI that uses GTK+, GpgOL and GpgEX that are respectively an extension for MS Outlook and an extension for Windows Explorer shell
  • Install Git for Windows: so you can have a *nix based shell, this software is a bundle with latest version of Git which use MINGW environment, a Git bash shell, a Git GUI and an extension for Windows Explorer shell (Make sure your local version of Git is at least 2.0, otherwise Git don't have support for automatically sign your commits)
  • Verify
@tasinttttttt
tasinttttttt / tumblr_bookmarklet
Created February 16, 2023 16:52 — forked from voidfiles/tumblr_bookmarklet
Tumblr's Bookmarklet
View tumblr_bookmarklet
javascript: var d = document,
w = window,
e = w.getSelection,
k = d.getSelection,
x = d.selection,
s = (e ? e() : (k) ? k() : (x ? x.createRange().text: 0)),
f = 'http://www.tumblr.com/share',
l = d.location,
e = encodeURIComponent,
p = '?v=3&u=' + e(l.href) + '&t=' + e(d.title) + '&s=' + e(s),
View .zshrc
export ZSH="$HOME/.oh-my-zsh"
# Plugins
plugins=(
brew
colored-man-pages
copyfile
extract
git
osx
@tasinttttttt
tasinttttttt / screengrab.txt
Created May 6, 2021 11:13
windows ffmpeg screengrab
View screengrab.txt
Lossless capture - afterfx compatible
around 18.950 MB / second at 50fps
ffmpeg -video_size 1920x1080 -framerate 50 -f gdigrab -draw_mouse 0 -i desktop -crf 0 -pix_fmt yuv444p -preset ultrafast output.mp4
@tasinttttttt
tasinttttttt / blender_render_split_image.py
Last active February 9, 2021 22:04
blender render in splitted image for images that dont fit in ram
View blender_render_split_image.py
import bpy
import os
# Usage:
# blender -b FILE.blend -P blender_render_split_image.py
# Backup from
# https://stackoverflow.com/a/38223109
cut_into = 10
@tasinttttttt
tasinttttttt / HTTrack.md
Created December 1, 2019 23:30 — forked from tmslnz/HTTrack.md
Nice command line for HTTrack
View HTTrack.md

Commands

httrack example.com -O ./example.com -N100 −%i0 -I0 --max-rate 0 --disable-security-limits --near -v
httrack example.com -O ./example.com-3 -N100 -I0 -N "%p/%n%[month].%t" --max-rate 0 --disable-security-limits --near  -v
@tasinttttttt
tasinttttttt / Package Control.sublime-settings
Last active June 13, 2019 10:54
Package Control.sublime-settings
View Package Control.sublime-settings
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"A File Icon",
"All Autocomplete",
"AutoFileName",
View Preferences.sublime-settings
{
"color_scheme": "Packages/ayu/ayu-mirage.sublime-color-scheme",
"create_window_at_startup": false,
"ensure_newline_at_eof_on_save": true,
"ignored_packages":
[
"Vintage"
],
"theme": "ayu-mirage.sublime-theme",
"file_exclude_patterns": [
@tasinttttttt
tasinttttttt / position_swapper.py
Last active September 1, 2021 06:18
c4d position swap
View position_swapper.py
'''
Position Swapper 0.0.1
tbayri <tayeb.dev>
<Do cool shit with it> kinda license
'''
import c4d
from c4d import gui
# Unique id numbers for each of the GUI elements