Skip to content

Instantly share code, notes, and snippets.

View Antoine007's full-sized avatar
🙂

Antoine Magny Antoine007

🙂
View GitHub Profile
// Copy paste this script on your console
var disabled = false;
var r = confirm('Start the Autolike on this page?');
var min_time_to_decide = 300;
var max_additional_time_to_decide = 1000;
var time_to_decide = function() {
additional_time_to_decide = Math.floor(Math.random() * max_additional_time_to_decide);
return min_time_to_decide + additional_time_to_decide;
@Jonalogy
Jonalogy / handling_multiple_github_accounts.md
Last active May 17, 2024 00:12
Handling Multiple Github Accounts on MacOS

Handling Multiple Github Accounts on MacOS

The only way I've succeeded so far is to employ SSH.

Assuming you are new to this like me, first I'd like to share with you that your Mac has a SSH config file in a .ssh directory. The config file is where you draw relations of your SSH keys to each GitHub (or Bitbucket) account, and all your SSH keys generated are saved into .ssh directory by default. You can navigate to it by running cd ~/.ssh within your terminal, open the config file with any editor, and it should look something like this:

Host *
 AddKeysToAgent yes

> UseKeyChain yes

@mixin for-phone-only {
@media (max-width: 599px) { @content; }
}
@mixin for-tablet-portrait-up {
@media (min-width: 600px) { @content; }
}
@mixin for-tablet-landscape-up {
@media (min-width: 900px) { @content; }
}
@mixin for-desktop-up {
@vanakenm
vanakenm / killpumas.sh
Created March 31, 2016 11:07
How to kill your servers
ps -ax | grep puma
# Example result:
27212 pts/3 Sl+ 0:03 puma 3.2.0 (tcp://localhost:3000) [maily-restaurants]
27249 pts/3 Sl+ 0:04 puma: cluster worker 0: 27212 [maily-restaurants]
29574 pts/3 Sl+ 0:01 puma: cluster worker 1: 27212 [maily-restaurants]
32569 pts/9 S+ 0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=.cvs --exclude-dir=.git --exclude-dir=.hg --exclu
# Any line that starts with "puma" is a running server. To kill them, take their id and use the "kill" command:
@malarkey
malarkey / Contract Killer 3.md
Last active May 17, 2024 15:28
The latest version of my ‘killer contract’ for web designers and developers

When times get tough and people get nasty, you’ll need more than a killer smile. You’ll need a killer contract.

Used by 1000s of designers and developers Clarify what’s expected on both sides Helps build great relationships between you and your clients Plain and simple, no legal jargon Customisable to suit your business Used on countless web projects since 2008

…………………………