cd my-repo
git checkout <branch>
This is the nuclear option. Have to be sure this is what is wanted! Substitute with the name of the file you want gone!
A command that lets you replace a word with another string. This let's you rename anything in your system and even lets you "make your own commands".
Well if you like writing the same string of commands over and over and you like to see your time just fly by just retyping commands then I suspect that you wouldn't care. But if you're like me and hate this then aliases are for you.
Let's seen some examples so you can see what I mean...
CORS is the way to share resources between different domains. while avoiding potential cross site scripting attacks. If you do not understand what CORS is or just want to learn more on it, I suggest you read one of the following or all if you're awesome:
An understanding of this will definitely help you in future projets.
-- Streaming | |
hs.hotkey.bind({"alt", "ctrl"}, "S", function() | |
local win = hs.window.focusedWindow() | |
local f = win:frame() | |
local screen = win:screen() | |
local max = screen:frame() | |
f.x = max.x | |
f.y = max.y | |
f.w = 1920 |
I hereby claim:
To claim this, I am signing this object:
from rest_framework.exceptions import NotFound | |
def not_available_api_version(excluded_api_versions=None): | |
def decorator(func): | |
@wraps(func) | |
def wrapper(x, request, *args, **kwargs): | |
if excluded_api_versions and request.version in excluded_api_versions: | |
raise NotFound(detail=None) | |
return func(x,request, *args, **kwargs) |
#!/usr/bin/env sh | |
# This code is based on https://eang.it/letsencrypt-with-amazon-cloudfront/ | |
export AWS_ACCESS_KEY_ID="" | |
export AWS_SECRET_ACCESS_KEY="" | |
bucket_name="" | |
region="" | |
distribution_id="" | |
domain="" |
const fetch = require('node-fetch'); | |
const encoding = require('encoding'); | |
fetch('https://open.gsa.gov/code.json') | |
.then(response => response.buffer()) | |
.then(json => { | |
let text = {}; | |
if(json.indexOf('\uFEFF', 0, 'utf16le') === 0 ) { | |
text = encoding.convert(json, 'utf8', 'utf16le'); |
Prompt one
Company: Acme computers
Version control platform(s): Many GitHub Enterprise instances installed throughout the company by different teams. Acme Computers is trying to standardize on GitHub Enterprise and consolidate their GitHub usage onto a single instance. The company has many instances of other Git hosting solutions installed as well. Some are fully supported applications. Other instances are on machines under people's desks.
Customer requests:
This guide on how to convert an SVN repository to a git repository was mostly taken from John Albin Wilkins post on Converting a Subversion repository to Git.