Skip to content

Instantly share code, notes, and snippets.

View artakvg's full-sized avatar

Artak artakvg

View GitHub Profile
#!/bin/bash
nodeVersion="v4.0.0"
## install libs
sudo apt-get -y update
sudo apt-get -y install build-essential
sudo apt-get -y install libssl-dev
sudo apt-get -y install libkrb5-dev
sudo apt-get -y install git
#!/bin/bash
# you can use "v4.0.0" for node 4.0.0 version
nodeVersion="v0.12.7"
## install libs
sudo apt-get -y update
sudo apt-get -y install build-essential
sudo apt-get -y install libssl-dev
sudo apt-get -y install libkrb5-dev
#!/bin/bash
nodeVersion="v5.7.0"
nvm install "$nodeVersion"
nvm alias default "$nodeVersion"
@artakvg
artakvg / optional-or-required-params-from-base.ts
Created March 14, 2019 18:40
some of parameters from original type - Typescript
type Diff<T, U> = T extends U ? never : T;
type OptionalExceptFor<T, TRequired extends keyof T> = Partial<T> & Pick<T, TRequired>;
type RequiredExceptFor<T, TOptional extends keyof T> = Pick<T, Diff<keyof T, TOptional>> & Partial<T>;

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 3.1 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd">
<score-partwise version="3.1">
<identification>
<encoding>
<software>MuseScore 2.2.1</software>
<encoding-date>2018-04-22</encoding-date>
<supports element="accidental" type="yes"/>
<supports element="beam" type="yes"/>
<supports element="print" attribute="new-page" type="yes" value="yes"/>
@artakvg
artakvg / How-to-build-frida-server-for-ios.md
Created February 25, 2023 20:41 — forked from miticollo/How-to-build-frida-server-for-ios.md
How to build frida server for iOS jailbroken devices

Choose this method ONLY if you have a full jailbreak (R/W on /).

Requirements

macOS

Build

@artakvg
artakvg / gist:dc36e2164f34d745d3819aed5d4da5f8
Last active December 29, 2023 12:05
If you ever wonder what has AWS EC2 Debian has as its initrams content
.
bin
conf
conf/arch.conf
conf/conf.d
conf/initramfs.conf
etc
etc/fstab
etc/ld.so.cache
etc/ld.so.conf
@artakvg
artakvg / gist:b97a78932a8c0f15e8e6411e3469d39d
Created December 29, 2023 13:17
cat /lib/systemd/system/systemd-networkd.service
# SPDX-License-Identifier: LGPL-2.1-or-later
#
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.