Skip to content

Instantly share code, notes, and snippets.

View fosstodon.css
@-moz-document url-prefix("https://fosstodon.org") {
div.status {
border: 0px;
border-color: #b7b7b7;
border-style: none;
margin: 5px;
padding-bottom: 5px;
background-color: #fff;
border-radius: 5px;
}
@Surendrajat
Surendrajat / config.json
Last active Oct 28, 2021
A Clean & Customizable Weather module for Waybar
View config.json
"custom/weather": {
"exec": "python ~/.config/waybar/scripts/weather.py",
"restart-interval": 300,
"return-type": "json",
"on-click": "xdg-open https://weather.com/en-IN/weather/today/l/$(location_id)"
// "format-alt": "{alt}",
},
View fedora-sway-setup.org

remove gnome apps

sudo dnf remove gnome-tour gnome-abrt gnome-calculator gnome-calendar gnome-maps gnome-weather \
    rhythmbox gnome-contacts totem gnome-logs gnome-photos gnome-clocks gedit gnome-system-moniter \
    gnome-user-docs gnome-screenshot gnome-remote-desktop

remove fedora chromium policies

sudo dnf remove fedora-chromium-config
@Surendrajat
Surendrajat / config.yml
Last active Oct 20, 2020
fusuma multitouch gesture config for elemetary OS
View config.yml
swipe:
3:
left:
command: 'xdotool key alt+Left'
right:
command: 'xdotool key alt+Right'
up:
command: 'xdotool key ctrl+t'
threshold: 1.5
down:
View ColorOS apps
package:com.coloros.backuprestore
package:com.coloros.phonenoareainquire
package:com.coloros.wirelesssettings
package:com.coloros.gamespace
package:com.coloros.simsettings
package:com.coloros.healthcheck
package:com.coloros.weather.service
package:com.coloros.providers.downloads.ui
package:com.coloros.athena
package:com.coloros.blacklistapp
@Surendrajat
Surendrajat / elementaryos.md
Last active Dec 2, 2021 — forked from suberb/elementaryos.md
elementaryOS | Things I Do After Installing elementary OS Hera
View elementaryos.md

First Things First

  • Enable PPA

     sudo apt update
     sudo apt install software-properties-common apt-transport-https curl
  • Install apt-fast [Yes! it's really fast]

View repo_without_latest_release.sh
#!/bin/bash
user=
pass=
latest_version=TWRP-3.2.3
###### file containing github links for all device trees
file=all.url
curl -u "$user:$pass" -s "https://api.github.com/users/TwrpBuilder/repos?per_page=1000" | grep -w clone_url | grep -o '[^"]\+://.\+.git' > $file
View rename_repos.sh
#!/bin/bash
user=
pass=
###### file containing github links for all device trees
file=clone_device.url
while IFS= read -r line; do
View update_twrpbuilder_repos.sh
tb=$(pwd) ; for device in `ls -l device/*/* -d | cut -d : -f 2 | cut -d " " -f 2`; do echo $tb/$device && cd $tb/$device;
#sed -i 's/yshalsager/surendrajat/g' ./.travis.yml
#sed -i 's/cyanogenmod/twrp-builder/g' ./.travis.yml
# sed -i '/^\ \ -\ cd/s/android_device_/android_device_samsung_/g' ./.travis.yml
# sed -i '/repo:/s/android_device_/android_device_samsung_/g' ./.travis.yml
sed -i 's/device_generic_twrpbuilder/android_device_generic_twrpbuilder/g' ./.travis.yml
git commit -a -m "CI: updated repo name for twrp-builder dt"
View ns3_installation.txt
To install ns3....
1.
sudo apt-get install aptitude
2.
sudo aptitude install gcc g++ python python-dev mercurial bzr gdb valgrind gsl-bin libgsl0-dev libgsl0ldbl flex bison tcpdump sqlite sqlite3 libsqlite3-dev libxml2 libxml2-dev libgtk2.0-0 libgtk2.0-dev uncrustify doxygen graphviz imagemagick texlive texlive-latex-extra texlive-generic-extra texlive-generic-recommended texinfo dia texlive texlive-latex-extra texlive-extra-utils texlive-generic-recommended texi2html python-pygraphviz python-kiwi python-pygoocanvas libgoocanvas-dev python-pygccxml
3.
wget https://www.nsnam.org/release/ns-allinone-3.27.tar.bz2