Skip to content

Instantly share code, notes, and snippets.

View Azer5C74's full-sized avatar
💭
I may be slow to respond.

Azer Taboubi Azer5C74

💭
I may be slow to respond.
View GitHub Profile
@Azer5C74
Azer5C74 / sh
Last active July 4, 2022 14:34
Command for Modifying path with fish shell
set -U fish_user_paths $HOME/.composer/vendor/bin
@Azer5C74
Azer5C74 / inputdata.json
Last active June 5, 2022 11:02
Recursively manipulate mock json server
[
{
"id": 0,
"title": "1",
"sublist": [
{
"id": 1,
"title": "1.1",
"sublist": [
{
@Azer5C74
Azer5C74 / main.ts
Last active June 5, 2022 11:02
Resizable image importation, in ReactJS using material ui components.
<Box
component="img"
sx={{
height: 233,
width: 350,
maxHeight: { xs: 233, md: 167 },
maxWidth: { xs: 350, md: 250 },
}}
alt="The house from the offer."
src="https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&w=350&dpr=2"
@Azer5C74
Azer5C74 / brightnessDown.txt
Last active May 8, 2022 10:25
Adjusting screen brightness on Linux Mint Mate
#!/bin/bash
B=$(xrandr --verbose | awk '/Brightness/ { print $2; exit }')
A=0.2
C=$(echo "$B - $A" | bc)
M=$(xrandr | grep " connected" | cut -f1 -d " ")
xrandr --output $M --brightness $C
@Azer5C74
Azer5C74 / redshift configuration for all day night mode
Last active August 30, 2022 13:55
redshift.conf - configuration file for redshift and gtk-redshift (works fine for me with Linux Mint Mate) with Tromsø, Norway Lon and Lat parameter, 3500k date and night screen temperatures. You pick your city's coordinates from http://www.geonames.org/.
; Global settings for redshift
[redshift]
; Set the day and night screen temperatures
temp-day=3500
temp-night=3500
; Disable the smooth fade between temperatures when Redshift starts and stops.
; 0 will cause an immediate change between screen temperatures.
; 1 will gradually apply the new screen temperature over a couple of seconds.
fade=1