Skip to content

Instantly share code, notes, and snippets.

@tosunkaya
tosunkaya / firefox_dark_background.md
Created July 8, 2022 19:19 — forked from gmolveau/firefox_dark_background.md
Firefox dark background / theme for new tab and loading screen

Firefox Dark Background

  • How to change the background on Firefox to a dark one on new tab / loading screen ?

Procedure

  • Type about:config in the URL bar
  • Search toolkit.legacyUserProfileCustomizations.stylesheets and double-click the field to set it to true
  • Type about:support in the URL bar
  • Look for Profile folder field and click on the open button next to it.
@tosunkaya
tosunkaya / clean.sh
Created July 8, 2022 19:54 — forked from Iman/clean.sh
Free up disk space on Ubuntu - clean log, cache, archive packages/apt archives, orphaned packages, old kernel and remove the trash
#!/bin/sh
#Check the Drive Space Used by Cached Files
du -sh /var/cache/apt/archives
#Clean all the log file
#for logs in `find /var/log -type f`; do > $logs; done
logs=`find /var/log -type f`
for i in $logs
@tosunkaya
tosunkaya / copy-repo.md
Created July 11, 2022 10:00
Copy a repo without forking

How to copy a GitHub repo without forking

GitHub only lets you fork a repo once, if you want to make more than one copy of a project here's how you can do it. Useful for starter code.

  1. Create a new empty folder for your project and initialize git

    cd where-you-keep-your-projects

mkdir your-project-name

@tosunkaya
tosunkaya / clone.bash
Created July 11, 2022 10:02 — forked from milanboers/clone.bash
Clone all repositories of a Github user
curl -s https://api.github.com/users/milanboers/repos | grep \"clone_url\" | awk '{print $2}' | sed -e 's/"//g' -e 's/,//g' | xargs -n1 git clone
@tosunkaya
tosunkaya / forkAllGitHubRepos.js
Created July 11, 2022 10:04 — forked from techpavan/forkAllGitHubRepos.js
Fork all repositories from a user on GitHub
var totalForkCount;
var curForkCount=0;
var errorForkArray = new Array();
function initProcess(){
var user = window.location.pathname.split('/')[1];
var pageNo = 1;
var hrefArray = new Array();
while(hrefArray.length % 30 == 0){
var resp = sendSyncAjax("https://github.com/"+user+"?tab=repositories&page="+pageNo);
@tosunkaya
tosunkaya / sugh.sh
Created July 11, 2022 10:15 — forked from erdincay/sugh.sh
su GitHub (downloading all repositories from a given user)
#!/bin/bash
if [ -z "$1" ]; then
echo "waiting for the following arguments: username + max-page-number"
exit 1
else
name=$1
fi
if [ -z "$2" ]; then
#!/bin/bash
# Clone all github.com repositories for a specified user.
if [ $# -eq 0 ]
then
echo "Usage: $0 <user_name> "
exit;
fi
@tosunkaya
tosunkaya / userChrome.css
Created July 14, 2022 15:23 — forked from urbanhusky/userChrome.css
Firefox 95 ultra-compact multirow tabs on top, context line below tab & compact menus - urbanhusky's ugly hack YMMV :)
/* Hi, urbanhusky here.
This is cobbled together from various sources.
One of those sources is: https://github.com/MrOtherGuy/firefox-csshacks
*/
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/multi-row_tabs.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
/* Makes tabs to appear on multiple lines */
/* Tab reordering will not work and can't be made to work */
@tosunkaya
tosunkaya / userChrome.css
Last active July 14, 2022 17:10
Firefox Remove Tab Bar Spaces CSS - firefox how to remove active tab white outline
/* Tab - Connect to window */
.tab-background,.tab-content,.tab-stack {
border-radius: 0 !important;
margin-top: 0 !important;
margin-bottom: 0 !important;
}
/* dark background*/
tabbrowser tabpanels { background-color: rgb(19,19,20) !important; }
browser { background-color: #131314 !important; }
@tosunkaya
tosunkaya / vpn.md
Created July 15, 2022 14:05 — forked from joepie91/vpn.md
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.