Skip to content

Instantly share code, notes, and snippets.

@qasimalyas
qasimalyas / webpack.config.js
Created January 13, 2020 20:53
webpack config
const path = require("path");
const webpack = require("webpack");
console.log(path.resolve(__dirname, "./Javascript/destnew"));
module.exports = {
mode: "development",
entry: {
main: "./Javascript/index.js"
},
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "10"
}
}
],
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "10"
}
}
],
@qasimalyas
qasimalyas / .eslintrc
Last active December 18, 2019 06:55
eslint with prettier and typescript support
{
"parserOptions": {
"ecmaVersion": 2019,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"extends": ["eslint:recommended", "eslint-config-prettier"],
"rules": {
@qasimalyas
qasimalyas / settings.json
Created October 31, 2019 22:17
VScode gist 🤙🏻
// fonts are here: https://www.typography.com/fonts/operator/styles
{
// "terminal.integrated.shell.windows": "C:\\Windows\\System32\\bash.exe",
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
"editor.formatOnSave": true,
"window.zoomLevel": 0,
// "editor.fontFamily": "Fira Code",
"editor.fontFamily": "Operator Mono, Menlo, Monaco, 'Courier New', monospace",
"editor.fontWeight": "300",
"editor.fontLigatures": true,

Agenda

  • Criteria
  • Data layer
  • Targeting
  • Google Ad Manager set-up
  • Testing
  • Debugging
[core]
symlinks = false
autocrlf = true
fscache = true
[color]
diff = auto
status = auto
branch = auto
interactive = true
[pack]

In order to configure the bitbucket hook we need two things: The user's API Token and the project token. In order to retrieve the first one whe should click on our username (on the top right corner of the page), click on configure and then click on "Show API Token". This API token will be used as password for our user.

For the project's token we need to go to the job configuration (/job/{job-name}/configure), "build triggers" and enable "trigger remote builds" and, there, input some random text as token.

Once we have these two tokens we can go to bitbucket, repo administration, hooks section, and add a new jenkins hook that we will configure like:

  • Endpoint: http://{username}:{APIToken}@{hostname}/{prefix_if_you_have_one}
  • Module name: Whatever (I usually leave this one blank)
  • Project name: The job name
  • Token: The project token
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@qasimalyas
qasimalyas / SassMeister-input-HTML.html
Created August 31, 2014 21:32
Generated by SassMeister.com.
<div id="container">
<div class="twocolumns">
<div class="column1">ONE</div>
<div class="column2">TWO</div>
</div>
</div>