git diff --cached
git fetch --all
git reset --hard origin/<branch_name>
git fetch
| <!DOCTYPE html> | |
| <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
| <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
| <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | |
| <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <title></title> | |
| <meta name="description" content=""> |
| # Reference http://stackoverflow.com/a/10304316/3826642 | |
| # | |
| # Given list of users 'bobby.flay' and 'con.artist', I want to find which of these don't exist in my Table user_table in column user_name | |
| # 'user_namex' - can be anything you want | |
| # a derived table name in FROM subselect is required | |
| Select * from ( | |
| SELECT 'bobby.flay' user_namex UNION | |
| SELECT 'con.artist' | |
| ) derived_table_name_required |
| # Source: http://www.howtogeek.com/168147/add-public-ssh-key-to-remote-server-in-a-single-command/ | |
| cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat >> .ssh/authorized_keys' |
| # Reference: http://ss64.com/nt/syntax-variables.html | |
| # Startup Scripts Path | |
| # This path is not available in Win 10 | |
| Currently using this on Win7 | |
| C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup | |
| # Available to both Win7/10 | |
| %PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\StartUp |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Dirty script to check if any forks in ahead of master and open that branch commitlist | |
| Warning: Uses alot of api calls | |
| """ | |
| import requests | |
| from requests.auth import HTTPBasicAuth |
| #!/bin/sh | |
| # 404-check.sh - Script to test for 404s | |
| # author: lkptrzk | |
| # Usage: | |
| # Assuming a file named 'input' with one URL per line | |
| # the following command will output which files were 404s: | |
| # cat input | xargs 404-check.sh |
| # Checking for logs in /var/log | |
| # Clean up space | |
| # source http://www.omgubuntu.co.uk/2016/08/5-ways-free-up-space-on-ubuntu | |
| sudo apt-get autoremove --purge | |
| # Check space | |
| df -h |
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| import os | |
| import sys | |
| import argparse | |
| import datetime | |
| def main(): | |
| console_prefix = "$ " |
I hereby claim:
To claim this, I am signing this object: