Skip to content

Instantly share code, notes, and snippets.

View andrzejressel's full-sized avatar

​Andrzej Ressel andrzejressel

View GitHub Profile
@andrzejressel
andrzejressel / upgrade.yaml
Created November 24, 2021 13:56
Simple Ansible playbook for updating linux machines
---
- hosts: all
become: true
tasks:
- name: Update package information
apt:
update_cache: true
- name: Upgrade the OS
apt:
upgrade: dist
@andrzejressel
andrzejressel / build.sh
Created June 22, 2019 14:18
Deterministic cloud-init iso creation
#!/bin/bash
set -e
# Requirements:
# xorriso installed
# user-data and meta-data files in directory
# https://lists.gnu.org/archive/html/bug-xorriso/2015-06/msg00007.html
timestamp="2015060415363300"
diff --git a/packages/xo-web/src/xo-app/about/index.js b/packages/xo-web/src/xo-app/about/index.js
index f0c2538fa..7133a17ca 100644
--- a/packages/xo-web/src/xo-app/about/index.js
+++ b/packages/xo-web/src/xo-app/about/index.js
@@ -65,7 +65,7 @@ export default class About extends Component {
{process.env.XOA_PLAN > 4 ? (
<div>
<Row>
- <Col>
+ {/* <Col>
@andrzejressel
andrzejressel / optics.java
Created January 27, 2018 12:04
[at]optics
/**
* Java, because kotlin doesn't allow fields for annotations
*/
public @interface optics {
Type[] value() default {};
public enum Type {
ISO, //data class
LENS, //data class
@andrzejressel
andrzejressel / getalldata.sh
Last active May 11, 2016 19:42
Optymalizacja dyskretna skrypty
#!/bin/bash
#Aby przenieść do schowka: <skrypt> | xclip
if [ "$#" -ne 2 ]; then
echo "USAGE: <python script> <folder with results' folder>"
exit -1
fi
SCRIPT=$1
RESULTS=$2
@andrzejressel
andrzejressel / slim_pie.xml
Created September 8, 2015 16:13
SLIM PIE
<?xml version="1.0"?>
<change name="PIE (Slim)">
<section>
<file repo="frameworks/base" name="packages/SystemUI/src/com/android/systemui/statusbar/pie/PieSliceContainer.java"/>
<file repo="frameworks/base" name="packages/SystemUI/src/com/android/systemui/statusbar/pie/PieView.java"
code=""/>
</section>
</change>
@andrzejressel
andrzejressel / script.sh
Last active August 29, 2015 14:27
Some useful stuff
#Check if versionCode was changed in latest commit
if [[ $(git rev-parse HEAD) == $(git blame -b -l app/build.gradle | grep "versionCode" | cut -d" " -f 1) ]]; then echo test; fi
@andrzejressel
andrzejressel / sprawdzarka.py
Last active August 29, 2015 14:17
Sprawdzarka
#!/usr/bin/env python3
import argparse
import os
import sys
import subprocess
import glob
import re
try:
@andrzejressel
andrzejressel / aria2
Created January 2, 2014 10:37
init.d file for aria2c daemon (debian)
#!/bin/sh
### BEGIN INIT INFO
# Provides: aria2
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: aria2c init script.