This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Try to remove git cache | |
git rm --cached -r dir/want/to/remove/cache |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C (chained with next rule) | |
CO=cookie (set specified cookie) | |
E=var:value (set environment variable var to value) | |
F (forbidden - sends a 403 header to the user) | |
G (gone - no longer exists) | |
H=handler (set handler) | |
L (last - stop processing rules) | |
Last rule: instructs the server to stop rewriting after the preceding directive is processed. | |
N (next - continue processing rules) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Css | |
.vcenter > [class*="col"]{ | |
display: inline-block; | |
float: none; | |
vertical-align: middle; | |
} | |
Use vcenter class beside bootstrap row class |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Clean installation mysql server | |
sudo dpkg -P mysql-server mysql-server-5.7 | |
sudo apt-get autoremove | |
sudo apt-get clean | |
dpkg -l | grep -i mysql | |
sudo rm -rvf /var/lib/mysql | |
# then install new mysql server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; | |
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; | |
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL'; | |
CREATE SCHEMA IF NOT EXISTS `survey_001_models_from_tables` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci ; | |
USE `survey_001_models_from_tables` ; | |
-- ----------------------------------------------------- | |
-- Table `survey_001_models_from_tables`.`organizations` | |
-- ----------------------------------------------------- |
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 24 columns, instead of 3 in line 9.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name,type,baseStr,strGrowth,maxStr,baseAgi,agiGrowth,maxAgi,baseInt,intGrowth,maxInt,totalBaseAttr,totalAttrGrowth,totalMaxAttr,moveSpeed,baseArmor,minDmg,maxDmg,range,baseAttackTime,attackPoint,attackBackswing,turnRate,regeneration | |
Abaddon,0,23,2.6,85.4,17,1.5,53,21,2,69,61,6.1,207.4,310,1.43,55,65,150,1.7,0.56,0.41,0.6,1.5 | |
Ancient Apparition,2,18,1.7,58.8,20,2.2,72.8,25,2.6,87.4,63,6.5,219,295,1.86,44,54,675,1.7,0.45,0.3,0.6,1.5 | |
Anti-Mage,1,22,1.5,58,22,2.8,89.2,15,1.8,58.2,59,6.1,205.4,310,2.14,49,53,150,1.45,0.3,0.6,0.5,1.5 | |
Axe,0,25,2.8,92.2,20,2.2,72.8,18,1.6,56.4,63,6.6,221.4,290,1.86,49,53,150,1.7,0.5,0.5,0.6,4.25 | |
Bane,2,23,2.4,80.6,23,2.4,80.6,23,2.4,80.6,69,7.2,241.8,310,4.29,60,66,400,1.7,0.3,0.7,0.6,1.5 | |
Batrider,2,23,2.7,87.8,15,1.5,51,24,2.5,84,62,6.7,222.8,290,2.14,38,42,375,1.7,0.3,0.54,1,3.25 | |
Beastmaster,0,23,2.5,83,18,1.6,56.4,16,1.9,61.6,57,6,201,310,4.57,64,68,150,1.7,0.3,0.7,0.5,1.5 | |
Bounty Hunter,1,17,2.1,67.4,21,3,93,19,2,67,57,7.1,227.4,315,6,45,59,150,1.7,0.59,0.59,0.6,2 | |
Bristleback,0,22 |
We can make this file beautiful and searchable if this error is corrected: It looks like row 10 should actually have 24 columns, instead of 1 in line 9.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name,type,baseStr,strGrowth,maxStr,baseAgi,agiGrowth,maxAgi,baseInt,intGrowth,maxInt,totalBaseAttr,totalAttrGrowth,totalMaxAttr,moveSpeed,baseArmor,minDmg,maxDmg,range,baseAttackTime,attackPoint,attackBackswing,turnRate,regeneration | |
ArcWarden,1,24,3,96,15,1.8,58.2,24,2.6,86.4,63,7.4,240.6,280,0.14,44,54,625,1.7,0.3,0.7,0.6,1.5 | |
Jakiro,2,25,2.6,87.4,10,1.2,38.8,28,2.8,95.2,63,6.6,221.4,290,2.43,53,61,400,1.7,0.4,0.5,0.5,1.5 | |
WinterWyvern,2,24,2.4,81.6,16,1.9,61.6,25,3.1,99.4,65,7.4,242.6,285,1.29,38,45,425,1.7,0.25,0.8,0.5,1.5 | |
Bloodseeker,1,23,2.7,87.8,24,3,96,18,1.7,58.8,65,7.4,242.6,285,3.43,57,63,150,1.7,0.43,0.74,0.5,1.5 | |
Phoenix,0,19,3.2,95.8,12,1.3,43.2,18,1.8,61.2,49,6.3,200.2,285,-0.29,45,55,500,1.7,0.35,0.633,1,1.5 | |
Io,0,17,2.2,69.8,14,1.6,52.4,23,1.7,63.8,54,5.5,186,295,0,43,52,575,1.7,0.15,0.4,0.7,1.5 | |
Leshrac,2,16,1.8,59.2,23,1.7,63.8,26,3,98,65,6.5,221,325,3.29,41,45,600,1.7,0.4,0.77,0.5,1.5 | |
OutworldDevourer,2,19,2.6,81.4,24,2,72,26,2.7,90.8,69,7.3,244.2,315,3.93,40,55,450,1.7,0.46,0.54,0.5,1.5 | |
Brewmas |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Docker command to remove only dangling images | |
docker rmi $(docker images --filter "dangling=true" -q --no-trunc) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --pretty=format:'%h : %s' --graph > log.log | |
cat log.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var script = document.createElement("script"); | |
script.setAttribute("src", "http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"); | |
script.addEventListener('load', function() { | |
var script = document.createElement("script"); | |
document.body.appendChild(script); | |
}, false); | |
document.body.appendChild(script); |