Skip to content

Instantly share code, notes, and snippets.

@apzentral
apzentral / utilities.css
Last active June 9, 2023 16:11
CSS: Utility Styles
/**
* Width
*/
.width-100-percent {
width: 100%;
}
/**
* divider
@apzentral
apzentral / component.js
Last active January 1, 2018 14:55
ReactJS: Skeleton for React component
/**
* @jsx React.DOM
*/
'use strict';
/**
* Libraries
*/
var React = require('react');
@apzentral
apzentral / store.js
Last active August 29, 2015 14:15
ReactJS: Skeleton for Store
/**
* Your Store
*/
'use strict';
/**
* Libraries
*/
var AppDispatcher = require('../dispatcher/AppDispatcher');
var EventEmitter = require('events').EventEmitter;
@apzentral
apzentral / component-es6.js
Last active January 16, 2018 23:46
ReactJS: Skeleton for React component in ES6
import React, { Component } from "react";
// Component
class ComponentClass extends Component {
constructor(props) {
super(props);
this.state = {};
}
@apzentral
apzentral / build.xml
Last active April 19, 2023 19:18
ANT: scp template
<!-- Build Script for ANT -->
<project basedir="." default="" name="Build Script">
<property name="username" value="username"/>
<property name="passwd" value="passwd"/>
<property name="keyfile-path" value="/path-to-private-key"/>
<property name="applicationFolder" value="/var/www/html/"/>
<property name="sandboxRoot" value="${basedir}"/>
@apzentral
apzentral / starting-script.py
Last active March 4, 2024 15:45
Python: starting script
# -*- coding: utf-8 -*-
"""
Summary:
"""
import inspect
import logging
import os
import pathlib
@apzentral
apzentral / ant-sshexec-build.xml
Last active April 11, 2023 18:00
ANT: sshexec template
<!-- Build Script for ANT -->
<project basedir="." default="" name="Build Script">
<property name="username" value="username"/>
<property name="passwd" value="passwd"/>
<property name="keyfile-path" value="/path-to-private-key"/>
<property name="applicationFolder" value="/var/www/html/"/>
<property name="sandboxRoot" value="${basedir}"/>
@apzentral
apzentral / .bash_aliases
Last active February 2, 2024 16:33
aliases file
###################################
# Utilities
###################################
alias b="brew"
alias c="clear && reset"
alias re="reset"
alias e="exit"
alias s="sudo su"
alias m="make"
alias n="node"
@apzentral
apzentral / bash-remove-old-kernels.sh
Created July 11, 2018 15:54
Bash one-liner to delete only old kernels
dpkg -l linux-{image,headers}-* | awk '/^ii/{print $2}' | egrep '[0-9]+\.[0-9]+\.[0-9]+' | grep -v $(uname -r | cut -d- -f-2) | xargs sudo apt-get -y purge
@apzentral
apzentral / starting-script-jupyter.py
Last active February 2, 2024 16:41
Python: starting script for Jupyter
# -*- coding: utf-8 -*-
"""
Summary:
"""
from IPython.display import display, HTML
import inspect
import logging
import os