This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.foreign.Arena | |
import java.lang.foreign.MemorySegment | |
import java.lang.foreign.ValueLayout.ADDRESS | |
import java.lang.foreign.ValueLayout.JAVA_BYTE | |
import java.nio.charset.StandardCharsets | |
fun convertToC(arena: Arena, args: List<String>): Pair<Int, MemorySegment> { | |
val argc = args.size | |
val argv = arena.allocateArray(ADDRESS, argc.toLong()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
become: true | |
tasks: | |
- name: Update package information | |
apt: | |
update_cache: true | |
- name: Upgrade the OS | |
apt: | |
upgrade: dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Java, because kotlin doesn't allow fields for annotations | |
*/ | |
public @interface optics { | |
Type[] value() default {}; | |
public enum Type { | |
ISO, //data class | |
LENS, //data class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import os | |
import sys | |
import subprocess | |
import glob | |
import re | |
try: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. |