Skip to content

Instantly share code, notes, and snippets.

View dejanr's full-sized avatar

Dejan Ranisavljević dejanr

View GitHub Profile
{
"requests":[
{
"id": "123458",
"name": "Josette",
"surname": "Charrier",
"home_city": "München",
"home_country": "Deutschland",
"handicap": 10
},
@dejanr
dejanr / index.ios.js
Created July 18, 2017 07:30 — forked from Jpoliachik/index.ios.js
ReactNative LayoutAnimation Example
'use strict';
import React, {
AppRegistry,
Component,
StyleSheet,
Text,
View,
TouchableOpacity,
LayoutAnimation,
} from 'react-native';
@dejanr
dejanr / kvm.nix
Created November 27, 2017 16:51 — forked from Nekroze/kvm.nix
NixOS Declarative KVM Guests
## Builder for NixOS configurations defined at the end of the file to be built into KVM VM's
{ system ? builtins.currentSystem }:
let
loadcfg = cfgfile: { config, pkgs, ...}: {
imports = [ <nixos/modules/virtualisation/qemu-vm.nix> cfgfile ];
config = {
networking.extraHosts = ''
176.32.0.254 template
'';
@dejanr
dejanr / eve-online-install.sh
Created November 19, 2018 23:47 — forked from Caffe1neAdd1ct/eve-online-install.md
Eve Online with Wine and Arch Linux
## enable multilib see https://wiki.archlinux.org/index.php/Multilib
sudo vim /etc/pacman.conf
## this is not a comprehensive list as installed on an existing system, look for errors in the terminal after running the Eve Launcher exe
sudo pacman -S wine wine_gecko winetricks q4wine wine-mono lib32-gnutls samba lib32-mpg123 lib32-sdl lib32-libldap lib32-libpulse
mkdir ~/Wine
cd ~/Wine
WINEARCH=win32 WINEPREFIX=~/Wine/win32 winecfg
@dejanr
dejanr / vsls
Created February 27, 2019 13:52 — forked from b333z/vsls
vccode live share nixos
#!/usr/bin/env bash
# TODO: Look at nixpkgs/pkgs/build-support/setup-hooks/auto-patchelf.sh
# https://ms-vsliveshare.gallery.vsassets.io/_apis/public/gallery/publisher/MS-vsliveshare/extension/vsliveshare/0.3.423/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage
set -eu
TOOLS="patchelf xsel"
DEPS="utillinux.out openssl.out icu zlib curl.out lttng-ust libsecret libkrb5"

Keybase proof

I hereby claim:

  • I am dejanr on github.
  • I am dejanr (https://keybase.io/dejanr) on keybase.
  • I have a public key ASD_ZnmyADuGJ8VRhAbUr9glgd3exzO2YFd0hZISMLxnHQo

To claim this, I am signing this object:

'use strict';
require('webpack');
const CopyAssets = require('copy-webpack-plugin');
const fs = require('fs');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const os = require('os');
const path = require('path');
const runMode = require('run-mode');
@dejanr
dejanr / gist.sh
Last active June 11, 2019 22:52
deploy github page
#!/usr/bin/env bash
setup() {
git stash push
git checkout gh-pages
}
cleanup() {
git checkout master
git stash pop
@dejanr
dejanr / nixos-encrypted-zfs.sh
Created November 8, 2019 15:12 — forked from dysinger/nixos-encrypted-zfs.sh
How I installed Encrypted ZFS root on NixOS
#!/bin/sh
# FIRST STOP THE zfs-zed SERVICE
systemctl stop zfs-zed
# FORCE UNLOAD ZFS KERNEL MODULES
lsmod | grep zfs | cut -d' ' -f1 | xargs rmmod -f
# NOW ADD THE FOLLOWING TO /etc/nixos/configuration.nix
#