sudo add-apt-repository -y ppa:webupd8team/atom
sudo apt-get update
sudo apt-get -y install atom
This file contains hidden or 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
{ | |
"Lymhurst": { | |
"price_min": "800", | |
"price_max": "1200" | |
}, | |
"Caerleon": { | |
"city": "Caerleon", | |
"price_min": "900", | |
"price_max": "1300" | |
} |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
import random | |
def compare(all_read_pks, all_write_pks): | |
"""This function emulates a mathematical problem i try to solve. | |
I have primary keys from a SQL Table A and primary_keys in SQL Table B. | |
This function should compare B with A and sync all primary_keys changes to B. |
This file contains hidden or 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
package main | |
import ( | |
"github.com/codegangsta/cli" | |
"os" | |
"strings" | |
"github.com/lxc/lxd/shared/i18n" | |
) |
One click install/remove/activate and deactivate of the most packages below.
This file contains hidden or 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 | |
# -*- coding: utf-8 -*- | |
# Restarts aiccu if the given $IF is in $AICCU_RESTART_INTERFACES. | |
# The init/upstart/systemd script should check the rest. | |
# | |
# Copyright (c) 2014 by pcdummy <[email protected]> | |
# | |
# You need an array "AICCU_RESTART_INTERFACES" in /etc/default/aiccu, | |
# with the interfaces you want to restart on. | |
# |
This file contains hidden or 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 python | |
""" | |
Helper to create a Hetzner root server style Network. | |
At Hetzner the gateway blocks alls MAC's except the | |
one of the route server, this means you need to proxy_arp | |
your virtual hosts. | |
Known bugs: | |
- pingAll doesn't seem to work right with this. | |
""" |
This file contains hidden or 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
// Copyright 2013 René Kistl. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
package srpc | |
import ( | |
"errors" | |
"fmt" | |
"github.com/pcdummy/skynet2/rpc/bsonrpc" |
NewerOlder