diff --git a/.gitignore b/.gitignore index d98373d..df06df0 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ vpn +shell/*fix.sh diff --git a/TODO.md b/TODO.md index be71e50..8f41004 100644 --- a/TODO.md +++ b/TODO.md @@ -1,16 +1,19 @@ Missing configs --------- - Cinnamon keyboard layout and shortcut config inc. Keyboard Layout Options -- How to save or automatically setup custom Cinnamon menu items - - See [how-to-add-shortcut-to-cinnamon-taskbar](https://unix.stackexchange.com/questions/205233/how-to-add-shortcut-to-cinnamon-taskbar) +- Variety: ~/.config/variety +- Guake pref Missing packages in list ------------------------ List of the packages considered to be added to packages.list +- PyCharm - gthumb - GRUB customizer - Node.js, npm - CUDA & cuDNN ? +- GIMP +- Variety Remove packages --------------- diff --git a/atom/.gitignore b/atom/.gitignore index adec130..5300408 100644 --- a/atom/.gitignore +++ b/atom/.gitignore @@ -9,3 +9,5 @@ packages recovery split-diff nohup.out +.atom-socket-secret* +*secret* diff --git a/atom/config.cson b/atom/config.cson index c85e8a2..0f904f6 100644 --- a/atom/config.cson +++ b/atom/config.cson @@ -1,10 +1,10 @@ "*": core: - telemetryConsent: "limited" - themes: [ - "one-light-ui" - "one-light-syntax" + autoHideMenuBar: true + disabledPackages: [ + "linter-pylint" ] + telemetryConsent: "limited" "dash-ui": themeColor: "White" editor: @@ -20,11 +20,18 @@ disableTimeout: true executablePath: "%p/.env/bin/pylint" "linter-shellcheck": {} + "linter-stylelint": + disableWhenNoConfig: false + showIgnored: true + useStandard: true "linter-ui-default": - panelHeight: 469 + panelHeight: 451 "markdown-preview": breakOnSingleNewline: true useGitHubStyle: true - "tree-view": {} + "split-diff": + ignoreWhitespace: true + "tree-view": + focusOnReveal: false welcome: showOnStartup: false diff --git a/atom/packages.list b/atom/packages.list index 3ceef32..51e64fb 100644 --- a/atom/packages.list +++ b/atom/packages.list @@ -1,16 +1,17 @@ -busy-signal@1.4.3 -highlight-selected@0.13.1 +busy-signal@2.0.1 +highlight-selected@0.17.0 intentions@1.1.5 -language-latex@1.1.1 +language-latex@1.2.0 latextools@0.8.5 -linter@2.2.0 -linter-eslint@8.4.1 -linter-htmlhint@1.4.0 -linter-jsonlint@1.3.0 -linter-markdown@5.2.2 +linter@2.3.1 +linter-eslint@8.5.5 +linter-htmlhint@1.6.3 +linter-jsonlint@1.4.0 +linter-markdown@5.2.11 linter-pylint@2.1.1 -linter-shellcheck@1.4.7 -linter-ui-default@1.7.1 -pdf-view@0.70.0 -split-diff@1.5.2 +linter-shellcheck@1.6.0 +linter-stylelint@4.4.11 +linter-ui-default@1.8.1 +pdf-view@0.72.0 +split-diff@1.6.1 diff --git a/autostart/keybase_autostart.desktop b/autostart/keybase_autostart.desktop new file mode 100644 index 0000000..1685c9b --- /dev/null +++ b/autostart/keybase_autostart.desktop @@ -0,0 +1,16 @@ +# This file is generated by Keybase, along with a sentinel +# file at ~/.config/keybase/autostart_created. As long as the sentinel exists, +# this file won't be changed automatically, so you can edit it or delete it +# as you like. + +# To toggle autostart on, run +# `keybase ctl autostart --enable` +# or to toggle off, +# `keybase ctl autostart --disable`. +# Note that this will overwrite any changes you have made. + +[Desktop Entry] +Name=Keybase +Comment=Keybase Filesystem Service and GUI +Type=Application +Exec=env KEYBASE_AUTOSTART=1 run_keybase diff --git a/autostart/mintwelcome.desktop b/autostart/mintwelcome.desktop new file mode 100644 index 0000000..d23042f --- /dev/null +++ b/autostart/mintwelcome.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=mintwelcome +Comment=Linux Mint Welcome Screen +Icon=mintwelcome +Exec=mintwelcome-launcher +Terminal=false +Type=Application +Categories= +X-GNOME-Autostart-enabled=false diff --git a/autostart/ownCloud.desktop b/autostart/ownCloud.desktop new file mode 100644 index 0000000..558b52d --- /dev/null +++ b/autostart/ownCloud.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=ownCloud +GenericName=File Synchronizer +Exec=/opt/owncloud-client.AppDir/AppRun +Terminal=false +Icon=owncloud +Categories=Network +Type=Application +StartupNotify=false +X-GNOME-Autostart-enabled=true +X-GNOME-Autostart-Delay=10 diff --git a/autostart/print-applet.desktop b/autostart/print-applet.desktop new file mode 100644 index 0000000..90d52fc --- /dev/null +++ b/autostart/print-applet.desktop @@ -0,0 +1,14 @@ +[Desktop Entry] +Name=Print Queue Applet +Comment=System tray icon for managing print jobs +Exec=system-config-printer-applet +Terminal=false +Type=Application +Icon=printer +NotShowIn=KDE;GNOME;Cinnamon;LXDE;Unity; +StartupNotify=false +X-GNOME-Autostart-Delay=30 +X-Ubuntu-Gettext-Domain=system-config-printer +X-Desktop-File-Install-Version=0.24 +Categories=System;Monitor;GTK; +X-GNOME-Autostart-enabled=false diff --git a/autostart/redshift-gtk.desktop b/autostart/redshift-gtk.desktop index efc1eeb..b42e4c7 100644 --- a/autostart/redshift-gtk.desktop +++ b/autostart/redshift-gtk.desktop @@ -46,9 +46,10 @@ Terminal=false Type=Application Categories=Utility; StartupNotify=true -X-GNOME-Autostart-enabled=true +X-GNOME-Autostart-enabled=false NoDisplay=false -Hidden=false +Hidden=true Name[en_US]=Redshift Comment[en_US]=Color temperature adjustment tool -X-GNOME-Autostart-Delay=0 +X-GNOME-Autostart-Delay=5 + diff --git a/autostart/variety.desktop b/autostart/variety.desktop new file mode 100644 index 0000000..1166d59 --- /dev/null +++ b/autostart/variety.desktop @@ -0,0 +1,14 @@ +[Desktop Entry] +Name=Variety +Comment=Variety Wallpaper Changer +Categories=GNOME;GTK;Utility; +Exec=/usr/bin/variety --profile /home/erkan/.config/variety/ +MimeType=text/uri-list;x-scheme-handler/variety;x-scheme-handler/vrty; +Icon=variety +Terminal=false +Type=Application +StartupNotify=false +Actions=Next;Previous;PauseResume;History;Preferences; +Keywords=Wallpaper;Changer;Change;Download;Downloader;Variety; +X-GNOME-Autostart-Delay=20 +StartupWMClass=Variety diff --git a/autostart/warpinator-autostart.desktop b/autostart/warpinator-autostart.desktop new file mode 100644 index 0000000..0fadd7f --- /dev/null +++ b/autostart/warpinator-autostart.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Type=Application +Name=Warpinator +Comment=Transfer files from one computer to another on the local network +Icon=warpinator +Exec=warpinator --autostart +Categories=GNOME;GTK;Utility; +X-GNOME-Autostart-enabled=false diff --git a/git/gitconfig b/git/gitconfig index b4038d4..8ab01a7 100644 --- a/git/gitconfig +++ b/git/gitconfig @@ -1,11 +1,14 @@ -[filter "hawser"] - clean = git hawser clean %f - smudge = git hawser smudge %f - required = true -[user] - name = Simge Ekiz - email = simgeekiz48@gmail.com [core] editor = nano [push] default = simple +[user] + email = erkan@basar.dev + name = Erkan Basar +[commit] + gpgsign = true +[filter "lfs"] + clean = git-lfs clean -- %f + smudge = git-lfs smudge -- %f + process = git-lfs filter-process + required = true diff --git a/guake/%gconf.xml b/guake/%gconf.xml deleted file mode 100644 index e69de29..0000000 diff --git a/guake/general/%gconf.xml b/guake/general/%gconf.xml deleted file mode 100644 index 72d372b..0000000 --- a/guake/general/%gconf.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - delete-sequence - - - ascii-delete - - - - - - - - - - atom %(file_path)s - - - - - - - - - - - diff --git a/guake/keybindings/%gconf.xml b/guake/keybindings/%gconf.xml deleted file mode 100644 index e69de29..0000000 diff --git a/guake/keybindings/global/%gconf.xml b/guake/keybindings/global/%gconf.xml deleted file mode 100644 index 48706fc..0000000 --- a/guake/keybindings/global/%gconf.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - <Primary><Alt>c - - diff --git a/guake/keybindings/local/%gconf.xml b/guake/keybindings/local/%gconf.xml deleted file mode 100644 index fb4ebef..0000000 --- a/guake/keybindings/local/%gconf.xml +++ /dev/null @@ -1,90 +0,0 @@ - - - - <Primary><Shift>l - - - <Primary><Shift>Up - - - <Primary><Shift>Down - - - disabled - - - <Primary><Shift>KP_Add - - - <Primary><Shift>KP_Subtract - - - F11 - - - disabled - - - disabled - - - disabled - - - disabled - - - disabled - - - disabled - - - disabled - - - disabled - - - disabled - - - disabled - - - <Primary><Shift>q - - - <Primary><Shift>h - - - <Primary><Shift>Right - - - <Primary><Shift>Left - - - <Primary>F2 - - - <Primary><Shift>w - - - <Primary><Shift>t - - - <Primary><Shift>v - - - <Primary><Shift>c - - - <Primary>KP_Subtract - - - <Primary>KP_Add - - - disabled - - diff --git a/guake/style/%gconf.xml b/guake/style/%gconf.xml deleted file mode 100644 index 3a6dfed..0000000 --- a/guake/style/%gconf.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/guake/style/background/%gconf.xml b/guake/style/background/%gconf.xml deleted file mode 100644 index 34e678e..0000000 --- a/guake/style/background/%gconf.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/guake/style/font/%gconf.xml b/guake/style/font/%gconf.xml deleted file mode 100644 index ada3037..0000000 --- a/guake/style/font/%gconf.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - Monospace 7 - - - Xterm - - - #000000000000:#cdcb00000000:#0000cdcb0000:#cdcbcdcb0000:#1e1a908fffff:#cdcb0000cdcb:#0000cdcbcdcb:#e5e2e5e2e5e2:#4ccc4ccc4ccc:#ffff00000000:#0000ffff0000:#ffffffff0000:#46458281b4ae:#ffff0000ffff:#0000ffffffff:#ffffffffffff:#ffffffffffff:#000000000000 - - - diff --git a/icons/dnd/d20-yellow-black.png b/icons/dnd/d20-yellow-black.png new file mode 100644 index 0000000..1630de3 Binary files /dev/null and b/icons/dnd/d20-yellow-black.png differ diff --git a/icons/dnd/d20-yellow.png b/icons/dnd/d20-yellow.png new file mode 100644 index 0000000..4a8434a Binary files /dev/null and b/icons/dnd/d20-yellow.png differ diff --git a/icons/folders/folder_sage..ico b/icons/folders/folder_sage.ico similarity index 100% rename from icons/folders/folder_sage..ico rename to icons/folders/folder_sage.ico diff --git a/icons/gmaps/flag-emirates.png b/icons/gmaps/flag-emirates.png new file mode 100644 index 0000000..b0cc399 Binary files /dev/null and b/icons/gmaps/flag-emirates.png differ diff --git a/icons/gmaps/flag-thailand.png b/icons/gmaps/flag-thailand.png new file mode 100644 index 0000000..3bc5317 Binary files /dev/null and b/icons/gmaps/flag-thailand.png differ diff --git a/icons/menu-apps/chat-kill.svg b/icons/menu-apps/chat-kill.svg deleted file mode 100644 index 68de577..0000000 --- a/icons/menu-apps/chat-kill.svg +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/icons/menu-apps/chat-open.svg b/icons/menu-apps/chat-open.svg deleted file mode 100644 index 1d79577..0000000 --- a/icons/menu-apps/chat-open.svg +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/icons/menu-apps/icon-google-calendar.png b/icons/menu-apps/icon-google-calendar.png deleted file mode 100644 index cb39983..0000000 Binary files a/icons/menu-apps/icon-google-calendar.png and /dev/null differ diff --git a/icons/menu-apps/icon-outlook.png b/icons/menu-apps/icon-outlook.png deleted file mode 100644 index b22bb97..0000000 Binary files a/icons/menu-apps/icon-outlook.png and /dev/null differ diff --git a/icons/spotify/spotify_cizbiz.jpg b/icons/spotify/spotify_cizbiz.jpg new file mode 100644 index 0000000..49a266d Binary files /dev/null and b/icons/spotify/spotify_cizbiz.jpg differ diff --git a/numlockx/numlockx b/numlockx/numlockx deleted file mode 100644 index c4ab3ba..0000000 --- a/numlockx/numlockx +++ /dev/null @@ -1,10 +0,0 @@ -# Configuration file for numlockx - -# State of numlog on start of X session -# Accepts following options: -# auto - turns numlock on unless ran on laptop -# on - turns numlock on -# off - turns numlock off -# keep - does not change numlock state -# toggle - toggles numlock state -NUMLOCK=on diff --git a/pidgin-purple/.gitignore b/pidgin-purple/.gitignore deleted file mode 100644 index 3dc7c3f..0000000 --- a/pidgin-purple/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -logs -accounts.xml -blist.xml -certificates diff --git a/pidgin-purple/accels b/pidgin-purple/accels deleted file mode 100644 index d9a646f..0000000 --- a/pidgin-purple/accels +++ /dev/null @@ -1,84 +0,0 @@ -; Pidgin GtkAccelMap rc-file -*- scheme -*- -; this file is an automated accelerator map dump -; -; (gtk_accel_path "
/Conversation/Send File..." "") -; (gtk_accel_path "/Accounts/ebasar@irc-lst.science.ru.nl (IRC)/View MOTD" "") -; (gtk_accel_path "
/Options/Enable Logging" "") -; (gtk_accel_path "
/Options/Enable Sounds" "") -; (gtk_accel_path "
/Conversation/Alias..." "") -; (gtk_accel_path "/Tools/Buddy Pounces" "") -; (gtk_accel_path "/Buddies/Sort Buddies/Alphabetically" "") -(gtk_accel_path "
/Conversation/Close" "Escape") -; (gtk_accel_path "/Buddies/Sort Buddies/By status" "") -; (gtk_accel_path "/Help/Online Help" "F1") -; (gtk_accel_path "
/Conversation/Insert Link..." "") -; (gtk_accel_path "/Accounts/Manage Accounts" "a") -; (gtk_accel_path "/Tools/Certificates" "") -; (gtk_accel_path "/Tools/Mute Sounds" "") -; (gtk_accel_path "/Accounts/ebasar@irc-lst.science.ru.nl (IRC)/Disable" "") -; (gtk_accel_path "/Buddies/Add Buddy..." "b") -; (gtk_accel_path "
/Conversation/Insert Image..." "") -; (gtk_accel_path "/Tools/Set Mood" "d") -; (gtk_accel_path "/Tools/Room List" "") -; (gtk_accel_path "/Buddies/Add Chat..." "") -; (gtk_accel_path "
/Conversation/Invite..." "") -; (gtk_accel_path "/Accounts/ebasar@irc-lst.science.ru.nl (IRC)/Edit Account" "") -; (gtk_accel_path "/Help/Plugin Information" "") -; (gtk_accel_path "/Help/Debug Window" "") -; (gtk_accel_path "/Help/Developer Information" "") -; (gtk_accel_path "/Buddies/Show/Offline Buddies" "") -; (gtk_accel_path "/Help/Translator Information" "") -; (gtk_accel_path "
/Options/sep0" "") -; (gtk_accel_path "
/Conversation/Get Attention" "") -; (gtk_accel_path "/Buddies/Sort Buddies/By recent log activity" "") -; (gtk_accel_path "
/Conversation/Media/Video Call" "") -; (gtk_accel_path "/Buddies/Show/Idle Times" "") -; (gtk_accel_path "/Accounts/ebasar@irc-lst.science.ru.nl (IRC)/No actions available" "") -; (gtk_accel_path "
/Conversation/Add..." "") -; (gtk_accel_path "/Help/Build Information" "") -; (gtk_accel_path "/Accounts/ebasar@irc-lst.science.ru.nl (IRC)" "") -; (gtk_accel_path "/Buddies/Sort Buddies/Manually" "") -; (gtk_accel_path "/Buddies/Show/Protocol Icons" "") -; (gtk_accel_path "
/Conversation/Unblock..." "") -; (gtk_accel_path "/Tools/Plugins" "u") -; (gtk_accel_path "/Buddies/Show/Buddy Details" "") -; (gtk_accel_path "
/Conversation/Remove..." "") -; (gtk_accel_path "/Help/sep2" "") -; (gtk_accel_path "/Buddies/sep1" "") -; (gtk_accel_path "
/Conversation/sep4" "") -; (gtk_accel_path "
/Options/Show Formatting Toolbars" "") -; (gtk_accel_path "/Buddies/Add Group..." "") -; (gtk_accel_path "/Tools/File Transfers" "t") -; (gtk_accel_path "
/Conversation/Media/Audio\\/Video Call" "") -; (gtk_accel_path "/Tools/Custom Smileys" "y") -; (gtk_accel_path "/Buddies/sep3" "") -; (gtk_accel_path "/Buddies/sep2" "") -; (gtk_accel_path "
/Conversation/Save As..." "") -; (gtk_accel_path "
/Conversation/View Log" "") -; (gtk_accel_path "/Buddies/Quit" "q") -; (gtk_accel_path "/Tools/sep3" "") -; (gtk_accel_path "/Tools/sep2" "") -; (gtk_accel_path "/Tools/Preferences" "p") -; (gtk_accel_path "
/Conversation/Clear Scrollback" "l") -; (gtk_accel_path "/Tools/Privacy" "") -; (gtk_accel_path "
/Conversation/Get Info" "o") -; (gtk_accel_path "/Help/sep1" "") -; (gtk_accel_path "
/Conversation/New Instant Message..." "m") -; (gtk_accel_path "
/Conversation/sep3" "") -; (gtk_accel_path "
/Conversation/sep2" "") -; (gtk_accel_path "
/Conversation/sep1" "") -; (gtk_accel_path "
/Conversation/Block..." "") -; (gtk_accel_path "
/Conversation/sep0" "") -; (gtk_accel_path "
/Conversation/Find..." "f") -; (gtk_accel_path "/Tools/System Log" "") -; (gtk_accel_path "
/Conversation/Add Buddy Pounce..." "") -; (gtk_accel_path "/Buddies/Get User Info..." "i") -; (gtk_accel_path "
/Options/Show Timestamps" "") -; (gtk_accel_path "/Buddies/View User Log..." "l") -; (gtk_accel_path "/Buddies/Show/Empty Groups" "") -; (gtk_accel_path "
/Conversation/Join a Chat..." "") -; (gtk_accel_path "
/Conversation/More/No actions available" "") -; (gtk_accel_path "
/Conversation/Media/Audio Call" "") -; (gtk_accel_path "/Buddies/New Instant Message..." "m") -; (gtk_accel_path "/Help/About" "") -; (gtk_accel_path "/Buddies/Join a Chat..." "c") diff --git a/pidgin-purple/prefs.xml b/pidgin-purple/prefs.xml deleted file mode 100644 index 7a114ed..0000000 --- a/pidgin-purple/prefs.xml +++ /dev/null @@ -1,458 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pidgin-purple/status.xml b/pidgin-purple/status.xml deleted file mode 100644 index 9c38c1a..0000000 --- a/pidgin-purple/status.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - away - I'm not here right now - - - available - - diff --git a/python-env/current-freeze.txt b/python-env/current-freeze.txt deleted file mode 100644 index 9c61cda..0000000 --- a/python-env/current-freeze.txt +++ /dev/null @@ -1,80 +0,0 @@ -astroid==1.6.1 -bleach==2.1.2 -cachetools==2.0.1 -certifi==2018.1.18 -chardet==3.0.4 -cycler==0.10.0 -decorator==4.2.1 -entrypoints==0.2.3 -google-api-core==1.1.0 -google-auth==1.4.1 -google-cloud-core==0.28.1 -google-cloud-language==1.0.2 -google-cloud-translate==1.3.1 -googleapis-common-protos==1.5.3 -grpcio==1.13.0 -html5lib==1.0.1 -idna==2.6 -ipykernel==4.8.2 -ipython==6.2.1 -ipython-genutils==0.2.0 -ipywidgets==7.1.2 -isort==4.3.4 -jedi==0.11.1 -Jinja2==2.10 -joblib==0.11 -json-lines==0.3.1 -jsonschema==2.6.0 -jupyter==1.0.0 -jupyter-client==5.2.2 -jupyter-console==5.2.0 -jupyter-core==4.4.0 -lazy-object-proxy==1.3.1 -MarkupSafe==1.0 -matplotlib==2.1.2 -mccabe==0.6.1 -mistune==0.8.3 -Morfessor==2.0.4 -nbconvert==5.3.1 -nbformat==4.4.0 -nltk==3.2.5 -notebook==5.4.0 -numpy==1.14.1 -pandas==0.22.0 -pandocfilters==1.4.2 -parso==0.1.1 -pexpect==4.4.0 -pickleshare==0.7.4 -Pillow==5.1.0 -pkg-resources==0.0.0 -polyglot==16.7.4 -prompt-toolkit==1.0.15 -protobuf==3.5.2.post1 -ptyprocess==0.5.2 -pyasn1==0.4.2 -pyasn1-modules==0.2.1 -pycld2==0.31 -Pygments==2.2.0 -PyICU==2.0.3 -pylint==1.8.2 -pyparsing==2.2.0 -python-dateutil==2.6.1 -pytz==2018.3 -pyzmq==17.0.0 -qtconsole==4.3.1 -requests==2.18.4 -rsa==3.4.2 -scikit-learn==0.19.1 -scipy==1.0.0 -Send2Trash==1.5.0 -simplegeneric==0.8.1 -six==1.11.0 -terminado==0.8.1 -testpath==0.3.1 -tornado==4.5.3 -traitlets==4.3.2 -urllib3==1.22 -wcwidth==0.1.7 -webencodings==0.5.1 -widgetsnbextension==3.1.4 -wrapt==1.10.11 diff --git a/python-env/python-packages.txt b/python-env/python-packages.txt index f6d49b1..0621022 100644 --- a/python-env/python-packages.txt +++ b/python-env/python-packages.txt @@ -1,12 +1,3 @@ -requests -numpy -jupyter -nltk -pandas -scipy -scikit-learn -polyglot pylint json-lines -joblib -matplotlib +jupyterlab diff --git a/redshift/redshift.conf b/redshift/redshift.conf index 3f79741..eb8bdd9 100644 --- a/redshift/redshift.conf +++ b/redshift/redshift.conf @@ -7,8 +7,8 @@ temp-night=2500 transition=1 ; brightness=0.8 -brightness-day=0.9 -brightness-night=0.7 +brightness-day=1 +brightness-night=0.8 ; Set the screen gamma (for all colors, or each color channel ; individually as gamma=0.8:0.7:0.8) diff --git a/scripts/chats.sh b/scripts/chats.sh index 7fdd3ff..0f1e32f 100755 --- a/scripts/chats.sh +++ b/scripts/chats.sh @@ -14,12 +14,12 @@ usage() { } if [ $1 == "-r" ]; then - # skypeforlinux &> /dev/null + skypeforlinux &> /dev/null pidgin & slack --disable-gpu -u &> /dev/null elif [ $1 == "-k" ]; then - # killall -9 skypeforlinux + killall -9 skypeforlinux killall -9 pidgin killall -9 slack diff --git a/scripts/gu.sh b/scripts/gu.sh index 7503028..9e74730 100755 --- a/scripts/gu.sh +++ b/scripts/gu.sh @@ -7,27 +7,38 @@ # sudo ln -sfn /path/to/folder/gu.sh /usr/bin/gu usage() { - echo "=========================== Manual ============================" + echo "=== Manual ===" echo "gu [e|s]" - echo "===============================================================" - exit + echo "==============" +} + +current() { + echo "=== Current Local User ===" + git config user.name + git config user.email + echo "==========================" } [ $# -eq 0 ] && { + echo + current + echo usage + exit } if [ $1 == "e" ]; then USERNAME="Erkan Basar" - USEREMAIL="erkan@mebasar.com" + USEREMAIL="erkan@basar.dev" elif [ $1 == "s" ]; then USERNAME="Simge Ekiz" USEREMAIL="simgeekiz48@gmail.com" else + usage exit fi; -git config --replace-all user.name "$USERNAME" +git config --local --replace-all user.name "$USERNAME" git config user.name -git config --replace-all user.email "$USEREMAIL" +git config --local --replace-all user.email "$USEREMAIL" git config user.email diff --git a/scripts/srunl.sh b/scripts/srunl.sh index 02f8ea1..45aa8e6 100755 --- a/scripts/srunl.sh +++ b/scripts/srunl.sh @@ -2,7 +2,7 @@ # Author: M. Erkan Basar # Website: http://www.mebasar.com -# Email: erkan@mebasar.com +# Email: erkan@basar.dev # GitHub: erkanbasar # Create a symlink to use it with a single command (as shown in Usage). @@ -70,6 +70,9 @@ elif [ $1 == "-a" ]; then elif [ $1 == "-f" ]; then SERVER="fluttershy" +elif [ $1 == "-l" ]; then + SERVER="lightning" + else while getopts ":s:p:" opt; do case "$opt" in @@ -81,7 +84,7 @@ fi shift $((OPTIND-1)) -USERNAME=sekiz +USERNAME= if [ -z "$USERNAME" ] ; then echo "ERROR: Username is not defined. Please set a username first." diff --git a/scripts/tunnel.sh b/scripts/tunnel.sh index 25862eb..744a3ba 100755 --- a/scripts/tunnel.sh +++ b/scripts/tunnel.sh @@ -2,7 +2,7 @@ # Author: M. Erkan Basar # Website: http://www.mebasar.com -# Email: erkan@mebasar.com +# Email: erkan@basar.dev # GitHub: erkanbasar # Create a symlink to use it with a single command (as shown in Usage). @@ -84,7 +84,7 @@ fi shift $((OPTIND-1)) -USERNAME=sekiz +USERNAME= if [ -z "$USERNAME" ] ; then echo "ERROR: Username is not defined. Please set a username first." diff --git a/setup/apt-packages.txt b/setup/apt-packages.txt index 2ec2b2f..7dc8ecc 100644 --- a/setup/apt-packages.txt +++ b/setup/apt-packages.txt @@ -5,20 +5,27 @@ git gedit guake imagemagick -numlockx openjdk-8-jre-headless openvpn -python-pip +openssh-server +python3-pip +python3-dev +python-is-python3 virtualenv redshift-gtk screen +tmux screenfetch shellcheck heroku -skypeforlinux -spotify-client -steam tree wget htop watch +timeshift +gimp +vlc +steam +spotify-client +python-is-python3 +xclip diff --git a/setup/bootstrap.sh b/setup/bootstrap.sh index 02c1f82..0fdaa8e 100755 --- a/setup/bootstrap.sh +++ b/setup/bootstrap.sh @@ -27,11 +27,9 @@ sudo ln -sfn $BASEDIR/scripts/chats.sh /usr/bin/chats sudo ln -sfn $BASEDIR/scripts/gu.sh /usr/bin/gu # Icons +sudo rm -r $HOME/.icons sudo ln -sfn $BASEDIR/icons/ $HOME/.icons -# Guake -#sudo ln -sfn $BASEDIR/guake/ $HOME/.gconf/apps/guake - # Redshift sudo ln -sfn $BASEDIR/redshift/redshift.conf $HOME/.config/redshift.conf @@ -44,10 +42,7 @@ sudo rm -rf $HOME/.config/autostart/ sudo ln -sfn $BASEDIR/autostart/ $HOME/.config/autostart # Pidgin -sudo ln -sfn $BASEDIR/pidgin-purple/ $HOME/.purple - -# Numlockx -sudo ln -sfn $BASEDIR/numlockx/numlockx /etc/default/numlockx +# sudo ln -sfn $BASEDIR/pidgin-purple/ $HOME/.purple printlog "Creating OpenVPN scripts" if [ ! -d $BASEDIR/vpn ]; then diff --git a/setup/deb-packages.txt b/setup/deb-packages.txt index 6c203f5..5535d88 100644 --- a/setup/deb-packages.txt +++ b/setup/deb-packages.txt @@ -1,2 +1,5 @@ -https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb google-chrome.deb https://atom.io/download/deb atom.deb +https://go.skype.com/skypeforlinux-64.deb skype.deb +https://zoom.us/client/latest/zoom_amd64.deb zoom.deb +https://downloads.slack-edge.com/linux_releases/slack-desktop-4.4.2-amd64.deb slack.deb +https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb google-chrome.deb diff --git a/setup/install.sh b/setup/install.sh index 2066751..2b9cfc8 100755 --- a/setup/install.sh +++ b/setup/install.sh @@ -14,35 +14,34 @@ printlog () { } printlog "Updating Aptitude package manager..." -sudo apt-get update +sudo apt update BASEDIR="$(pwd)" -SYSTEMPKGS="$(cat apt-packages.txt)" -DEBPKGS="deb-packages.txt" +SYSTEMPKGS="$(cat setup/apt-packages.txt)" +DEBPKGS="setup/deb-packages.txt" for package in $SYSTEMPKGS; do printlog "Installing $package" - if ! sudo apt-get -qq install $package; then + if ! which $package > /dev/null; then if [[ $package = "tlp" ]]; then - sudo apt-get remove laptop-mode-tools + sudo apt remove laptop-mode-tools sudo add-apt-repository -y ppa:linrunner/tlp - sudo apt-get update + sudo apt update elif [[ $package = "spotify-client" ]]; then - # source: https://www.spotify.com/nl/download/linux/ - sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys BBEBDCB318AD50EC6865090613B00F1FD2C19886 0DF731E45CE24F27EEEB1450EFDC8610341D9410 + # Do not install spotify from the Software manager + # The public key changes each time, consider checking the website + # source: https://www.spotify.com/download/linux/ + curl -sS https://download.spotify.com/debian/pubkey_0D811D58.gpg | sudo apt-key add - echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list - sudo apt-get update + sudo apt update - elif [[ $package = "skypeforlinux" ]]; then - # source: https://askubuntu.com/questions/887389/how-to-install-skype-for-linux-in-ubuntu-16-04-via-console-only/964195 - sudo apt-get install -y apt-transport-https - curl https://repo.skype.com/data/SKYPE-GPG-KEY | sudo apt-key add - - echo "deb https://repo.skype.com/deb stable main" | sudo tee /etc/apt/sources.list.d/skypeforlinux.list - sudo apt-get update + elif [[ $package = "timeshift" ]]; then + sudo add-apt-repository -y ppa:teejee2008/ppa + sudo apt update elif [[ $package = "heroku" ]]; then curl https://cli-assets.heroku.com/install.sh | sudo sh @@ -50,7 +49,7 @@ for package in $SYSTEMPKGS; do fi - sudo apt-get install -y $package || printerror "Unable to install $package" + sudo apt install -y $package || printerror "Unable to install $package" else echo "Already installed" @@ -59,40 +58,46 @@ for package in $SYSTEMPKGS; do done -DEBPATHS=$HOME/Downloads/deb_packages -if [ ! -d $DEBPATHS ]; then - mkdir $DEBPATHS -fi +if [ -f "$DEBPKGS" ]; then -printlog "Downloading .deb packages under $DEBPATHS/" -while IFS=' ' read -r url name -do - wget $url -O $DEBPATHS/$name || printerror "Unable to download $name" -done < "$DEBPKGS" + DEBPATHS=$HOME/Downloads/deb_packages + if [ ! -d $DEBPATHS ]; then + mkdir $DEBPATHS + fi -printlog "Installing downloaded .deb packages under $DEBPATHS/" -sudo dpkg -i $DEBPATHS/*.deb || printerror "Unable to install dowloaded .deb packages" + printlog "Downloading .deb packages into $DEBPATHS/" + while IFS=' ' read -r url name + do + wget $url -O $DEBPATHS/$name || printerror "Unable to download $name" + done < "$DEBPKGS" -printlog "Installing the missing dependencies (if there is any)" -sudo apt-get install -f + printlog "Installing downloaded .deb packages under $DEBPATHS/" + sudo dpkg -i $DEBPATHS/*.deb || printerror "Unable to install dowloaded .deb packages" + + printlog "Installing the missing dependencies (if there is any)" + sudo apt install -f + + echo + while true; do + read -p "Do you want to remove the downloaded .deb packages? [Y/n]: " yn + case $yn in + [Nn]* ) break;; + * ) rm -rf $DEBPATHS; break;; + esac + done + +fi -echo -while true; do - read -p "Do you want to remove the downloaded .deb packages? [Y/n]: " yn - case $yn in - [Nn]* ) break;; - * ) rm -rf $DEBPATHS; break;; - esac -done printlog "Updating & Upgrading & Autoremoving" -sudo apt-get update -sudo apt-get upgrade -sudo apt-get autoremove +sudo apt update +sudo apt upgrade +sudo apt autoremove +sudo apt clean printlog "Bootstrapping" -bash bootstrap.sh +bash setup/bootstrap.sh printlog "Creating Python virtual environment '.env' into $HOME" PYTHON=$(which python3) @@ -100,6 +105,7 @@ echo "Using version $($PYTHON --version 2>&1)" PKGS_PATH=$BASEDIR/python-env/python-packages.txt echo "Installing Python packages given in $PKGS_PATH" echo +# TODO: Replace virtualenv virtualenv --system-site-packages --python=$PYTHON $HOME/.env # shellcheck source=$HOME/.env/bin/activate source $HOME/.env/bin/activate diff --git a/shell/bash_aliases b/shell/bash_aliases index 686f00c..d70a2c8 100644 --- a/shell/bash_aliases +++ b/shell/bash_aliases @@ -1,21 +1,18 @@ #!/bin/bash -# Python -#alias python='python3.6' -#alias python3='python3.6' - # Environment Control -alias venv='virtualenv -p python3 .env' +alias venv='python3 -m venv .env' alias src='. .env/bin/activate' alias deac='deactivate' +alias pipup='pip install --upgrade pip' # Git aliases alias gadd='git add' -alias gaa='git add -A :/' alias gcom='git commit' alias gcam='git commit -am' alias gcek='git checkout' alias gsta='git status' +alias gdif='git diff' alias gbra='git branch' alias gpush='git push' alias gpus=gpush @@ -26,7 +23,7 @@ alias gclo=gclone alias gfetch='git fetch' alias gfet=gfetch -# Screen Control +# screen control alias scr='screen' alias scrs='screen -S' alias scrr='screen -r' @@ -36,24 +33,33 @@ killscr () { screen -X -S $1 quit } +# tmux control +alias tn='tmux new -t' +alias ta='tmux a -t' +alias tls='tmux ls' + # Folder Navigation; alias cd..='cd ..' alias ..=cd.. alias cddot='cd $HOME/.dotfiles' alias cdwork='cd $HOME/workspaces/' -alias cdsim='cd $HOME/workspaces/simge/' -alias cderk='cd $HOME/workspaces/erkan/' -alias cdflo='cd $HOME/workspaces/FloodTags/' -alias cddash='cd $HOME/workspaces/FloodTags/Data_Distribution/dashboard/' -alias cdneat='cd $HOME/workspaces/FloodTags/Enrichments/enrichment-neat/' +alias cdphd='cd $HOME/workspaces/PhD/' + +# Latex +alias overpull='xclip -sel c < $HOME/.overleaf.au | gpull' + +# Extras +alias please='sudo' +alias hist='history | grep' # Django alias pmr='python manage.py runserver' -# Jupyter Notebook -alias jnote='jupyter notebook' -alias jnotescr='screen -S jnote bash -c "source .env/bin/activate; jupyter notebook"' -alias jnotescreen=jnotescr +# Jupyter +alias jnote='jupyter notebook --no-browser' +alias jnotescr='screen -S jnote bash -c "source .env/bin/activate; jupyter notebook --no-browser"' +alias jlab='jupyter lab' +alias jlabscr='screen -S jlab bash -c "source .env/bin/activate; jupyter lab"' # ls and ls color alias ll='ls -l' @@ -67,10 +73,5 @@ if [ -x /usr/bin/dircolors ]; then alias egrep='egrep --color=auto' fi -# Start Radboud Science VPN in a screen; -alias ruvpn='screen -S ruvpn bash -c "sudo openvpn $HOME/.dotfiles/vpn/openvpn-science-ru-nl.ovpn"' -alias ftvpn='screen -S ftvpn bash -c "sudo openvpn $HOME/.dotfiles/vpn/openvpn-floodtags-basar.ovpn"' -alias flovpn=ftvpn - -# Add an "alert" alias for long running commands. Use like so: sleep 10; alert +# Add an "alert" alias for long running commands. Use like so: sleep 10; alert alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' diff --git a/shell/bash_profile b/shell/bash_profile index a207efd..0d357b4 100644 --- a/shell/bash_profile +++ b/shell/bash_profile @@ -8,5 +8,12 @@ if [ -n "$BASH_VERSION" ]; then fi fi -# set PATH so it includes user's private bin directories -PATH="$HOME/bin:$HOME/.local/bin:$PATH" +# set PATH so it includes user's private bin if it exists +if [ -d "$HOME/bin" ] ; then + PATH="$HOME/bin:$PATH" +fi + +# set PATH so it includes user's private bin if it exists +if [ -d "$HOME/.local/bin" ] ; then + PATH="$HOME/.local/bin:$PATH" +fi diff --git a/shell/bashrc b/shell/bashrc index d79aaed..fdefe8a 100644 --- a/shell/bashrc +++ b/shell/bashrc @@ -73,7 +73,4 @@ if [ -x /usr/bin/mint-fortune ]; then /usr/bin/mint-fortune fi -# To run cuDNN -export PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}} -export LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} -export CUDA_HOME=/usr/local/cuda-10.0 +export GPG_TTY=$(tty) diff --git a/shell/nvidia-fix.sh b/shell/nvidia-fix.sh deleted file mode 100644 index 5a22bde..0000000 --- a/shell/nvidia-fix.sh +++ /dev/null @@ -1,5 +0,0 @@ -# This is not a script to run, but to remember a solution to problem with linux kernel and ndivia driver. -# This solution works to run nvidia-390 with kernel 4.15-generic -sudo prime-select nvidia -sudo update-alternatives --config x86_64-linux-gnu_gl_conf # set to auto mode -glxinfo|egrep "OpenGL vendor|OpenGL renderer"