Skip to content

Instantly share code, notes, and snippets.

View arvati's full-sized avatar
💭
Studying online

Ademar Arvati arvati

💭
Studying online
View GitHub Profile
@arvati
arvati / firedemo.js
Created April 8, 2019 23:34 — forked from Easter-Egg/firedemo.js
Firebase client for Mithril
// mithrilFire usage demo
// using firebase database "dinosaur-facts"
var Dinosaurs = {
model: function() {
// return a firebase reference to our database
return new Firebase('https://dinosaur-facts.firebaseio.com');
},
controller: function() {
var data = Dinosaurs.model();
@arvati
arvati / gist:42df49d6abeccf103843e1a9358ee891
Last active April 9, 2019 11:49 — forked from julianlam/expose-directory-on-host-to-lxc-container.md
Exposing a directory on the host machine to an LXC container

Exposing a directory on the host machine to an LXC container

  1. Log into the container and create an empty directory, this will be the mount point
  2. Log out and stop the container.
  3. Open to your container's config file
    • For regular LXC containers: /var/lib/lxc/mycontainer/config
    • For unprivileged LXC containers: $HOME/.local/share/lxc/mycontainer/config
  4. Add a new line above the lxc.mount directive, that follows the format below. Substitute proper paths as necessary:
    • lxc.mount.entry = /path/to/folder/on/host /path/to/mount/point none bind 0 0
  • Both of these paths are relative to the host machine.
@arvati
arvati / onedrive.reg
Created June 10, 2019 23:19
registry key for one drive
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{018D5C66-4533-4307-9B53-224DE2ED1FE6}]
@="OneDrive"
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{E31EA727-12ED-4702-820C-4B6445F28E1A}]
@="Dropbox"
@arvati
arvati / SafeSignJCOP231Win64 w10.reg
Created June 10, 2019 23:17
SafeSign ATR JCOP231 win64 windows 10 registry key
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Calais\SmartCards\VERSION 3.0.124 (1200b28038e8)]
"ATR"=hex:3b,dd,18,00,81,31,fe,45,80,f9,a0,00,00,00,77,01,08,00,07,90,00,fe
"Crypto Provider"="SafeSign Standard Cryptographic Service Provider"
"ATRMask"=hex:ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff,ff
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Cryptography\Calais\SmartCards\VERSION 3.0.124 (1200b28038e8)]
"ATR"=hex:3b,dd,18,00,81,31,fe,45,80,f9,a0,00,00,00,77,01,08,00,07,90,00,fe
"Crypto Provider"="SafeSign Standard Cryptographic Service Provider"
@arvati
arvati / updategodaddy.sh
Created July 10, 2019 16:40
Script to Update GoDaddy DNS dynamic up client
#!/bin/bash
# This script is used to check and update your GoDaddy DNS server to the IP address of your current internet connection.
# Special thanks to mfox for his ps script
# https://github.com/markafox/GoDaddy_Powershell_DDNS
#
# First go to GoDaddy developer site to create a developer account and get your key and secret
#
# https://developer.godaddy.com/getstarted
# Be aware that there are 2 types of key and secret - one for the test server and one for the production server
@arvati
arvati / howto increase aws disk size.txt
Last active April 2, 2020 00:39
Increase disk size aws
aws --version
df -h
lsblk
cat /proc/mounts
sudo service mysql stop
sudo service apache2 stop
sudo service svnserve stop
sync
sudo umount -f /srv
@arvati
arvati / . prepare debian environment
Last active April 18, 2020 00:49
Prepare Debian Environment
sudo nano /etc/apt/apt.conf.d/70debconf
sudo nano /etc/apt/preferences.d/main
sudo nano /etc/apt/sources.list
sudo nano /etc/apt/sources.list.d/google-chrome.list
sudo nano /etc/apt/sources.list.d/microsoft-prod.list
sudo nano /etc/apt/sources.list.d/sid.list
sudo nano /etc/apt/preferences.d/systemd
sudo nano /etc/apt/preferences.d/nosystemd
sudo nano /etc/apt/apt.conf.d/100guiconf
@arvati
arvati / android_x86 howto.txt
Last active April 18, 2020 19:29
Android_x86 dual boot with Debian
cd ~/Downloads
wget https://osdn.net/dl/android-x86/android-x86_64-9.0-r2.iso
sudo mkdir /android-x86
sudo chown $USER:$USER /android-x86
mkdir /android-x86/data
sudo mkdir /mnt/iso
sudo mount -o loop android-x86_64-9.0-r2.iso /mnt/iso
cp /mnt/iso/initrd.img /android-x86/
cp /mnt/iso/kernel /android-x86/
cp /mnt/iso/ramdisk.img /android-x86/
@arvati
arvati / .\connect.sh
Last active April 26, 2020 19:03
Connect Bluetooth Alsa Device Openwrt
#!/bin/ash
echo "Choose Device to connect"
echo "Device 1: B28S"
echo "Device 2: PT-Music"
echo "Device 3: Memorex MW212"
echo "Device 4: ilink"
echo "Device 5: BT-163"
read -n 1 -s resp