Last active
April 8, 2024 20:23
-
-
Save pestophagous/4324290ad58bbe7e249877ac4058924b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone [email protected]:pestophagous/gists.git | |
git clone priv-dots.git | |
git clone [email protected]:pestophagous/emacs_d.git lisp | |
git clone [email protected]:pestophagous/xkb-symbols.git # /usr/share/X11/xkb/symbols | |
[email protected]:4324290ad58bbe7e249877ac4058924b.git # tweaks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -x # verbose script. show all commands as they are run | |
sudo apt-get purge libreoffice* | |
sudo apt-get purge thunderbird* | |
sudo apt-get purge rhythmbox* | |
sudo apt-get purge gnome-mines | |
sudo apt-get purge shotwell* | |
sudo apt-get purge totem* | |
sudo apt-get purge libtotem* | |
sudo apt-get purge unity-webapps-common | |
sudo apt-get purge ubuntu-web-launchers | |
sudo apt-get clean | |
sudo apt-get autoremove |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7c7 | |
< Depends: libc6 (>= 2.15), libcairo2 (>= 1.6.0), libcurl3 (>= 7.16.2-1), libgcc1 (>= 1:4.1.1), libgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.24.0), libgtk2.0-0 (>= 2.24.0), libpango1.0-0 (>= 1.18.0), libpng12-0 (>= 1.2.13-4), libsm6, libstdc++6 (>= 4.6), libuuid1 (>= 2.16), libx11-6, zlib1g (>= 1:1.1.4) | |
--- | |
> Depends: libc6 (>= 2.15), libcairo2 (>= 1.6.0), libgcc1 (>= 1:4.1.1), libgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.24.0), libgtk2.0-0 (>= 2.24.0), libpango1.0-0 (>= 1.18.0), libsm6, libstdc++6 (>= 4.6), libuuid1 (>= 2.16), libx11-6, zlib1g (>= 1:1.1.4) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# obtain the deb, such as diffmerge_4.2.0.697.stable_amd64.deb | |
username@Gamerbox-9400:~/Downloads$ mkdir sandbox_dir | |
username@Gamerbox-9400:~/Downloads$ cd sandbox_dir/ | |
username@Gamerbox-9400:~/Downloads/sandbox_dir$ cp ../diffmerge_4.2.0.697.stable_amd64.deb . | |
ar x diffmerge_4.2.0.697.stable_amd64.deb | |
tar xzf control.tar.gz | |
mv control.tar.gz movecontrol.tar.gz | |
patch control customize_diffmerge_control.patch | |
tar --ignore-failed-read -cvzf control.tar.gz post{inst,rm} md5sums control | |
ar rcs diffmerge_manhandled.deb debian-binary control.tar.gz data.tar.gz | |
sudo dpkg -i diffmerge_manhandled.deb # now the install should succeed, but it fails on launch | |
mkdir build_and_keep_from_src | |
cd build_and_keep_from_src | |
wget https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/libpng/1.2.54-1ubuntu1/libpng_1.2.54.orig.tar.xz | |
wget https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/curl3/7.58.0-2ubuntu2/curl3_7.58.0.orig.tar.gz | |
tar -xvf libpng_1.2.54.orig.tar.xz | |
tar -xvf curl3_7.58.0.orig.tar.gz | |
cd libpng-1.2.54/ | |
./configure | |
make | |
ls -l .libs/libpng12.so.0.54.0 | |
-rwxr-xr-x 1 username username 636360 Jul 28 22:10 .libs/libpng12.so.0.54.0 | |
cd .. | |
cd curl-7.58.0/ | |
./configure | |
make | |
ls -l lib/.libs/libcurl.so.4 | |
lrwxrwxrwx 1 username username 16 Jul 28 22:12 lib/.libs/libcurl.so.4 -> libcurl.so.4.5.0 | |
ls -l lib/.libs/libcurl.so.4.5.0 | |
-rwxr-xr-x 1 username username 427424 Jul 28 22:12 lib/.libs/libcurl.so.4.5.0 | |
cd /usr/bin/ | |
ls -l diffmerge | |
sudo mv diffmerge diffmerge_real | |
sudo touch diffmerge | |
sudo chmod 0755 diffmerge | |
sudo sh -c 'echo LD_PRELOAD=/opt/repositories/run_from_source/fordiffmerge/curl-7.58.0/lib/.libs/libcurl.so.4.5.0 diffmerge_real \"\$\@\" >> diffmerge' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://askubuntu.com/questions/1065568/block-outside-dns-fix-dns-leak-ubuntu-18-04 | |
edit /etc/dhcp/dhclient.conf | |
to add a line like: | |
prepend domain-name-servers 208.67.222.222; | |
or: https://askubuntu.com/a/1107828/231504 | |
supersede domain-name-servers 208.67.222.222,8.8.8.8,8.8.4.4; # replace with wanted DNS server | |
nmcli connection # lists connections | |
nmcli device show MYDEVICE | grep -i dns | |
nmcli device show enp7s0 | grep -i dns # see which dns server(s) is being used | |
sudo nmcli connection modify MYCONNECTION ipv4.ignore-auto-dns yes | |
sudo nmcli connection modify netplan-enp7s0 ipv4.ignore-auto-dns yes # prevent excepting the router's dns | |
https://askubuntu.com/questions/1098052/18-04-does-it-force-netplan-or-can-i-still-use-resolved-conf/1114904#1114904 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dark Night Mode by Dark Night Mode | |
https://addons.mozilla.org/en-US/firefox/addon/dark-night-mode/ | |
New Tab Override (WebExtension) by Sören Hentzschel | |
https://addons.mozilla.org/en-US/firefox/addon/new-tab-override/ | |
Read Aloud: A Text to Speech Voice Reader by Hai Phan | |
https://addons.mozilla.org/en-US/firefox/addon/read-aloud/ | |
Stylus by Stylus Team, Jeremy Schomery | |
https://addons.mozilla.org/en-US/firefox/addon/styl-us/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Chrome browser | |
(Sourcegear) Diffmerge (update PATH) | |
nmap-ncat | |
7zip (update PATH) | |
Dependency Walker | |
Process Explorer (sysinternals) | |
Emacs | |
- with my .emacs | |
update File Explorer options (show hidden files, etc) | |
My repos: | |
- endless bash history | |
- dotfiles | |
- .bashrc | |
- .gitconfig (test with diffmerge UI. test my git hooks) | |
- add homebinpath to PATH | |
- MAKE SURE all repos are (re-) "git init" with my own hooks | |
Python & GIT | |
enable symlinks | |
disable path size limit | |
be sure to use win system settings to enable DEVELOPER MODE | |
run python from git-bash? (winpty) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -x # verbose script. show all commands as they are run | |
set -e # strict. stop at first failure. | |
sudo apt install \ | |
build-essential \ | |
caffeine \ | |
clang \ | |
clang-format \ | |
clang-tidy \ | |
cmake \ | |
dconf-editor \ | |
doxygen \ | |
dpkg-dev \ | |
espeak \ | |
eterm \ | |
expect \ | |
expect-lite \ | |
feh \ | |
ffmpeg \ | |
g++ \ | |
gcc \ | |
gettext-el \ | |
gifsicle \ | |
git \ | |
git-svn \ | |
gitk \ | |
gpick \ | |
graphviz \ | |
htop \ | |
imagemagick \ | |
ipython3 \ | |
jq \ | |
make \ | |
mediainfo \ | |
net-tools \ | |
notify-osd \ | |
openssh-server \ | |
socat \ | |
source-highlight \ | |
splitpatch \ | |
sqlite \ | |
stress \ | |
tree \ | |
unity-tweak-tool \ | |
vlc \ | |
wmctrl \ | |
xclip \ | |
xterm | |
sudo apt install colorized-logs # to get ansi2txt (for stripping ansi color chars from txt) | |
# nautilus | |
gsettings set org.gnome.nautilus.preferences always-use-location-entry true | |
# disable 'military time' in system bar clock | |
#gsettings set org.gnome.desktop.interface clock-format 12h | |
# show the date next to the clock | |
#gsettings set org.gnome.desktop.interface clock-show-date true | |
# long-press the primary mouse button to make it do a right-click on release | |
#gsettings set org.gnome.desktop.a11y.mouse secondary-click-enabled true | |
# how long you have to hold it (in seconds?) to trigger the right-click on release | |
#gsettings set org.gnome.desktop.a11y.mouse secondary-click-time 1.2 | |
if grep 'quiet splash' /etc/default/grub ; then | |
# remove the quiet splash | |
sudo sed -i \ | |
"s/GRUB_CMDLINE_LINUX_DEFAULT=\"quiet splash\"/GRUB_CMDLINE_LINUX_DEFAULT=\"\"/" \ | |
/etc/default/grub | |
# check to make sure we don't still find it there | |
if grep 'quiet splash' /etc/default/grub ; then | |
echo 'failed to remove quiet splash in grub' | |
exit 1 | |
fi | |
fi | |
# putting this outside the above if-block because if run into partial failures | |
# and/or manual intervention, it could get confusing whether we will enter the | |
# above block in subsequent retries. meanwhile it is harmless to run this again: | |
sudo update-grub | |
# Keep this for last, so I notice the reminder. | |
#gsettings set org.gnome.desktop.peripherals.mouse left-handed true | |
#echo | |
#echo "###########################" | |
#echo "## LEFT HANDED MOUSE NOW ##" | |
#echo "###########################" | |
git machete | |
"delta" (for syntax highlights on command-line git diff) | |
startup apps: | |
flameshot | |
caffeine (seems to add itself?) | |
slack | |
gnome-terminal | |
gpg signing key | |
gimp | |
sudo apt install gimp-gmic # the extra filters for special effects | |
docker.io | |
xdotool | |
ubuntu/gnome dark UI | |
multiple google browser launchers. (one for dev with dev tools open) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment