Skip to content

Instantly share code, notes, and snippets.

View Frozen-byte's full-sized avatar
🐧

Frozen_byte Frozen-byte

🐧
View GitHub Profile
#!/bin/bash
ECOFOLDER=EcoLinux
FILENAME=$(xidel -s https://s3-us-west-2.amazonaws.com/eco-releases -e "/ListBucketResult/Contents[LastModified = max(/ListBucketResult/Contents[contains(Key, 'EcoLinux')]/LastModified/xs:dateTime(.))]/Key")
cd $ECOFOLDER
if [ -f $FILENAME ] ; then
./Eco.x86_64
else
rm -rf *
wget "https://s3-us-west-2.amazonaws.com/eco-releases/$FILENAME"
7z x $FILENAME
@Frozen-byte
Frozen-byte / gist:5ae3a88a2cf0acd149a6adf4a230ecca
Created July 7, 2018 14:06
Angular2+ GermanNumberDirective
import { Directive, ElementRef, forwardRef, HostListener, Optional, Renderer2 } from "@angular/core";
import { ControlValueAccessor, NG_VALUE_ACCESSOR, NgModel } from "@angular/forms";
export const GERMAN_NUMBER_VALUE_ACCESSOR: any = {
// multi: true,
provide: NG_VALUE_ACCESSOR,
useExisting: forwardRef(() => NxGermanNumberDirective),
};
@Directive({
@Frozen-byte
Frozen-byte / loadouts.hpp
Created January 12, 2020 21:43
OPT Loadouts
class CfgCLibLoadouts {
class BaseCollection {
uniform[] = {};
vest[] = {};
headgear[] = {};
goggle[] = {};
backpack[] = {};
primaryWeapon[] = {};
primaryWeaponOptic[] = {};