Skip to content

Instantly share code, notes, and snippets.

@raphaelchaib
raphaelchaib / docker.md
Last active May 23, 2020 21:50
Docker commands and nice tricks!

Docker commands

Build docker image

docker build -t <image-name:tag> <path|.>

Remove all running containers

docker rm $(docker ps -a -q)
@vkanevska
vkanevska / centos_bstick.sh
Last active September 23, 2024 05:19
Custom CentOS 7 bootable ISO / Support UEFI & Secure boot
#!/bin/bash
# create custom bootable iso for CentOS 7 with kickstart
if [ $# -lt 2 ]
then
echo "Usage1: $0 path2iso path2kickstart"
exit 1
else
if [ ! -f $1 ]
then
@vchuravy
vchuravy / amd_sdk.sh
Last active May 18, 2018 09:53
Script to download the AMD APP SDK
#!/bin/bash
# Original script from https://github.com/gregvw/amd_sdk/
# Location from which get nonce and file name from
URL="http://developer.amd.com/tools-and-sdks/opencl-zone/opencl-tools-sdks/amd-accelerated-parallel-processing-app-sdk/"
URLDOWN="http://developer.amd.com/amd-license-agreement-appsdk/"
NONCE1_STRING='name="amd_developer_central_downloads_page_nonce"'
FILE_STRING='name="f"'
@andyshinn
andyshinn / Dockerfile
Created December 24, 2015 19:07
BusyBox cron container example
FROM gliderlabs/alpine:3.3
COPY myawesomescript /bin/myawesomescript
COPY root /var/spool/cron/crontabs/root
RUN chmod +x /bin/myawesomescript
CMD crond -l 2 -f
@ebinnion
ebinnion / config.php
Created May 31, 2013 14:01
Dynamically set CodeIgniter Base URL
$root = "http://".$_SERVER['HTTP_HOST'];
$root .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);
$config['base_url'] = "$root";