Tutorial and tips for GitHub Actions workflows
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
-- => Header ---------------------- {{{ | |
-- Fie: init.lua | |
-- Author: Ammar Najjar <[email protected]> | |
-- Description: My neovim lua configurations file | |
-- }}} | |
-- => General ---------------------- {{{ | |
--- Change leader key to , | |
vim.g.mapleader = ',' | |
local editor_root=vim.fn.expand("~/.config/nvim/") |
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
################################# | |
# Corners # | |
################################# | |
# requires: https://github.com/sdhand/compton | |
corner-radius = 0.0; | |
rounded-corners-exclude = [ | |
#"window_type = 'normal'", | |
"class_g = 'awesome'", | |
"class_g = 'URxvt'", | |
"class_g = 'XTerm'", |
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
#define _POSIX_C_SOURCE 199309L | |
//#define DEBUG | |
#include <Imlib2.h> | |
#include <X11/Xatom.h> | |
#include <X11/Xlib.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> |
Git sees every file in your working copy as one of three things:
- tracked - a file which has been previously staged or committed;
- untracked - a file which has not been staged or committed; or
- ignored - a file which Git has been explicitly told to ignore.
Ignored files are usually build artifacts and machine generated files that can be derived from your repository source or should otherwise not be committed. Some common examples are:
- dependency caches, such as the contents of /node_modules or /packages
- compiled code, such as .o, .pyc, and .class files
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
#!/bin/bash | |
# output format is like this: | |
# upload: index.html to s3://$BUCKET/index.html | |
# | |
# so we grab the second item which is the file path and pass that via xargs to the | |
# cloudfront invalidation command | |
aws s3 sync --sse AES256 s3://$BUCKET/ site/ | awk '{print $2;}' | \ | |
xargs aws cloudfront create-invalidation --distribution-id $CF_DISTRO_ID --paths |
By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
You can run your Express app very easily inside your Electron app.
All you need to do is to:
- place all the files of your Express app inside a new app folder in
your_electron_app\resources\app
- reconfigure the
app.js
file - refactor some relative pathes in your Express app
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 useOldDownloadWay = false; | |
var Nightmare = require('nightmare'); | |
new Nightmare() | |
.goto('http://eprint.iacr.org/2004/152') | |
.evaluate(function ev(old){ | |
var el = document.querySelector("[href*='.pdf']"); | |
var xhr = new XMLHttpRequest(); | |
xhr.open("GET", el.href, false); | |
if (old) { |
NewerOlder