Skip to content

Instantly share code, notes, and snippets.

Louis Borsu satblip

Block or report user

Report or block satblip

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View angular-partial-cache-busting
* Decide on your cache-busting strategy. In this example, we use the current timestamp, which will
* force a change every time the app is visited, but not every time the partial is loaded within a
* visit. Even better would be to use a hash of the file's contents to ensure that the file is always
* reloaded when the file changes and never reloaded when it isn't.
var cacheBustSuffix =;
// Optionally, expose the cache busting value as a constant so other parts of your app can use it.
ngModule.constant("cacheBustSuffix", cacheBustSuffix);
View 01papertrail.config
# See
mode: "00644"
owner: root
group: root
View gist:9512ad6262098d3aaa94
<div class="interview">
<p class="prelude">{{{ content.prelude }}}</p>
<p class="question">{{ question }}</p>
<p class="reponse">{{ reponse }}</p>
satblip / Merging two JSON.rb
Last active Dec 20, 2015
Merging two JSON
View Merging two JSON.rb
#How I retrieve my JSON :
class CoursesController < ApplicationController
require 'net/https'
require "uri"
require "json"
# List with the courses'information from several sources
def list
# Option 2
satblip / Json_except.rb
Last active Dec 20, 2015
Exception with JSON Rendering in Rails
View Json_except.rb
# I use this code to render the JSON
format.js { render :json => @courses_list.to_json( :except => [ :account_id, :default_view, :public_syllabus, :storage_quota_mb, :apply_assignment_group_weights, :calendar ] )}
# But it still give me this as result :
"course_code":"Audio Mastering 101 - 0913",
View example.js
var json;
json = [
foo: {
bar: ['ka', 'boom']
}, {
foo: {
bar: ['sna', 'fu']
View An-Anonymous-Pen.markdown
satblip / gist:e743a1f0d43399936deedd084e8946f3
Created Sep 13, 2018 — forked from Iristyle/gist:5005653
Configure HAProxy for userlists
View gist:e743a1f0d43399936deedd084e8946f3

Create SHA512 passwords

# make sure to use a leading space so that the command is not stored in your bash history!!
 mkpasswd -m sha-512 password1
# generates -> $6$yMgsow58.g/Z$mBjHfdVzqcF/LN.iwV23Eyqg.yGPTsp9pOwaStsJ6c4I4zL7BhucVVAkv5guf7OVRr8Pw0mHF4NrWBRCG5ci7/
 mkpasswd -m sha-512 password2
# generates -> $6$RZ86vRkQ$aRKN1HOsk6bDHBbMhS7jSo/p1NGFl4PvwY3KpU.72i./LvITi41nL84EkxOFXl.6Bmhynj/L7pYbfF0rUHtOB0
You can’t perform that action at this time.