Skip to content

Instantly share code, notes, and snippets.

View agileone's full-sized avatar

Serge Simard agileone

  • Agilitae Services Conseils
  • Montréal
View GitHub Profile
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active August 3, 2025 19:22
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@jessfraz
jessfraz / boxstarter.ps1
Last active June 23, 2025 13:25
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Jess Frazelle <[email protected]>
# Last Updated: 2017-09-11
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
@supershabam
supershabam / goebpfhacks.go
Created July 10, 2017 05:55
ugly hot-off-the-experimentation-press golang to load a noop ebpf program (it just returns zero on a kprobe and isn't even attached to anything)
package main
import (
"bytes"
"encoding/binary"
"fmt"
"strconv"
"syscall"
"unsafe"
pragma solidity ^0.4.0;
import "SafeMath.sol";
import "IERC20Token.sol";
/**
* @dev Implements a capped token sale using a second-price auction.
*
* @author Nick Johnson <[email protected]>
*
@agileone
agileone / five_minutes.yml
Created March 14, 2017 05:28 — forked from ryane/five_minutes.yml
five_minutes.yml
---
- hosts: all
vars:
UBUNTU_COMMON_ROOT_PASSWORD: 'xxxxx'
UBUNTU_COMMON_DEPLOY_PASSWORD: 'xxxxx'
UBUNTU_COMMON_LOGWATCH_EMAIL: [email protected]
ubuntu_common_deploy_user_name: deploy
ubuntu_common_deploy_public_keys:
- ~/.ssh/id_rsa.pub
@agileone
agileone / reclaimWindows10.ps1
Created January 8, 2017 06:40 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)
##########
# Win10 Initial Setup Script
# Author: Disassembler <[email protected]>
# Version: 1.7, 2016-08-15
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# THIS IS A PERSONALIZED VERSION
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1
@bigsnarfdude
bigsnarfdude / tensorboard_demo.py
Last active November 2, 2016 15:23
[mnist] tensorboard demo
# if error writing `export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64"`
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
def init_weights(shape, name):
return tf.Variable(tf.random_normal(shape, stddev=0.01), name=name)
# Step 1 - Add some items to graph section of Tensorboard
@Digital-Daz
Digital-Daz / freeswitch.sql
Last active January 17, 2022 05:03
Postgres Freeswitch DB Schema for 1.6
CREATE TABLE json_store (
name varchar(255) not null,
data text,
name_uuid PRIMARY KEY default gen_random_uuid()
);
ALTER TABLE json_store OWNER TO fusionpbx;
CREATE TABLE agents (
name character varying(255),
@gastaldi
gastaldi / microservice.fsh
Last active May 26, 2022 19:10
JBoss Forge Script to create a WildFly Swarm Microservice and configuring as a KeyCloak client
#Install the required plugins
addon-install-from-git --url https://github.com/forge/wildfly-swarm-addon.git
addon-install-from-git --url https://github.com/forge/keycloak-addon.git
# Create the project and configure the WildFly Swarm maven plugin
project-new --named demo --stack JAVA_EE_7 --type wildfly-swarm
# Create the JPA entity
jpa-new-entity --named Customer