Skip to content

Instantly share code, notes, and snippets.

@Apurer
Apurer / hello_world.md
Last active March 7, 2020 11:48
Hello World Examples

Run ruby hello_world.rb or python hello_world.py to print Hello World!!!

#!/bin/sh
# For debugging use iptables -v.
IPTABLES="/sbin/iptables"
IP6TABLES="/sbin/ip6tables"
MODPROBE="/sbin/modprobe"
RMMOD="/sbin/rmmod"
ARP="/usr/sbin/arp"
@Apurer
Apurer / CreatePrivateKey.go
Last active May 21, 2020 00:45
Golang snippet of code for creating private key for AES encryption.
package main
import (
"crypto/rsa"
"encoding/pem"
"crypto/elliptic"
"crypto/ecdsa"
"crypto/rand"
"crypto/x509"
"errors"
@Apurer
Apurer / client.go
Created July 4, 2020 03:07 — forked from spikebike/client.go
TLS server and client
package main
import (
"crypto/tls"
"crypto/x509"
"fmt"
"io"
"log"
)
#include <iostream>
using namespace std;
int main () {
unsigned int T;
unsigned long int N;
unsigned long int K;
unsigned long int AI;
package main
import (
"crypto/tls"
"fmt"
"net"
"time"
"io/ioutil"
"log"
#!/bin/bash
mkdir ~/Development/
cd ~/Development/
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh -P ~/Development/
bash ~/Development/Miniconda3-latest-MacOSX-arm64.sh -b -p $HOME/miniconda
source ~/miniconda/bin/activate
conda install -c apple tensorflow-deps
python -m pip install tensorflow-macos
python -m pip install tensorflow-metal
python -m pip install numpy --upgrade
package main
import "fmt"
// Product contains the information about a product
type Product struct {
Name string
Price int
Quantity int
}
package main
import (
"fmt"
"net/http"
"sync"
"time"
)
type Task struct {
package main
import (
"fmt"
"net"
"net/http"
"sync"
"time"
)