Skip to content

Instantly share code, notes, and snippets.

View Xusifob's full-sized avatar
🏠
Working from home

Bastien Malahieude Xusifob

🏠
Working from home
View GitHub Profile
@Xusifob
Xusifob / error.log
Created August 1, 2022 15:17
Error in terraform
│ Error: PUT https://api.github.com/repos//my-org/repo/environments/staging: 404 Not Found []
│ with module.webapp.module.secret_keys.github_repository_environment.environment,
│ on ../../components/github_secrets/main.tf line 5, in resource "github_repository_environment" "environment":
│ 5: resource "github_repository_environment" "environment" {
2022-08-01T15:12:46.126Z [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/github/4.28.0/linux_amd64/terraform-provider-github_v4.28.0 pid=39
2022-08-01T15:12:46.126Z [DEBUG] provider: plugin exited
ERROR: 1
@Xusifob
Xusifob / export-kompass.js
Last active May 25, 2017 10:20
Export data from Kompass into a CSV file
// Clear the console to see better
clear();
// Add jQuery
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
console.log('Processing...');
@Xusifob
Xusifob / get-url-parameter.js
Last active May 10, 2017 10:15
Returns an query parameter
/**
*
* Get the url parameter
*
* @param parameter
* @returns {string|undefined}
*/
function getUrlParameter(parameter) {
var params_string = window.location.search.substr(1);
@Xusifob
Xusifob / CSVResponse.php
Created May 9, 2017 09:23
With this you can render CSV
<?php
/**
* CSV Response
*/
use Symfony\Component\HttpFoundation\Response;
/**
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php
*/
$args = array(