#GIT Common troubleshooting
##How to cancel a local git commit
Just use git reset
without the --hard
flag:
git reset HEAD~1
# This is a sample build configuration for Other. | |
# Check our guides at https://confluence.atlassian.com/x/5Q4SMw for more examples. | |
# Only use spaces to indent your .yml configuration. | |
# ----- | |
# You can specify a custom docker image from Docker Hub as your build environment. | |
image: | |
name: pxdeployment/pipelines | |
username: $DOCKERHUB_USER_ALT | |
password: $DOCKERHUB_PASS_ALT | |
email: [email protected] |
Verifying my Blockstack ID is secured with the address 1Cppqfu9zB9gnK7HPU9kNobvH9pc5T5zLX https://explorer.blockstack.org/address/1Cppqfu9zB9gnK7HPU9kNobvH9pc5T5zLX |
server { | |
listen 8000; | |
server_name localhost; | |
root /Users/dmoore/projects/tutorials/angular-phonecat2/.build; | |
access_log "/Users/dmoore/projects/tutorials/angular-phonecat2/logs/hotili-net.access.log"; | |
error_log "/Users/dmoore/projects/tutorials/angular-phonecat2/logs/hotili-net.error.log"; | |
error_page 404 /app/404.html; | |
error_page 403 /app/403.html; |
<?php | |
// routing.php | |
if (preg_match('/\.(?:png|jpg|jpeg|gif|svg|html)$/', $_SERVER["REQUEST_URI"])) { | |
$isNotInPublicFoler = preg_match('/^((?!app|css).)*$/s', $_SERVER["REQUEST_URI"]); | |
if ($isNotInPublicFoler) { | |
$file_requested = $_SERVER["DOCUMENT_ROOT"] . $_SERVER["REQUEST_URI"]; | |
} else { | |
$file_requested = str_replace('/public', '', $_SERVER["DOCUMENT_ROOT"]) . $_SERVER["REQUEST_URI"]; |
#GIT Common troubleshooting
##How to cancel a local git commit
Just use git reset
without the --hard
flag:
git reset HEAD~1
/** | |
* Encapsulated JS Scripts | |
*/ | |
(function (window, angular, Hammer) { | |
'use strict'; | |
function exampleFunction (element) { | |
return 'something'; | |
} |
## Configure eth0 | |
# | |
# vi or nano /etc/sysconfig/network-scripts/ifcfg-eth0 | |
DEVICE="eth0" | |
NM_CONTROLLED="yes" | |
ONBOOT=yes | |
# Retrieve the current MAC address with: ifconfig | |
HWADDR=A4:BA:DB:37:F1:04 | |
TYPE=Ethernet |
1. replace @ with $ | |
Find: @ | |
Replace: $ | |
2. replace mixins | |
Find: \.([\w\-]*)\s*\((.*)\)\s*\{ | |
Replace: @mixin \1\(\2\)\n{ | |
3. replace includes | |
Find: \.([\w\-]*\(.*\)\s*;) |
/* ========================================================================== | |
Section comment block | |
========================================================================== */ | |
/* Sub-section comment block | |
========================================================================== */ | |
/** | |
* Short description using Doxygen-style comment format | |
* |