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
from frappeclient import FrappeClient | |
import psycopg2 | |
import psycopg2.extras | |
import unicodedata | |
import traceback | |
import datetime | |
print "logging in..." | |
client = FrappeClient("https://XXXXXXXXXXXXXXXXXX", "XXXXXXXXXXX", "XXXXXXXXXXXXXXXXX") | |
conn = psycopg2.connect(dbname="odoo_dbname", user="odoo_dbuser", host="odoo_dbhost", port="odoo_dbport", password="odoo_dbpwd") |
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
/* | |
JPA (Java Persistence API) | |
Transaction Management with an Entity-Mananger: | |
--- | |
entityManager.getTransaction().begin(); | |
entityManager.persist(<some-entity>); | |
entityManager.getTransaction().commit(); | |
entityManager.clear(); |
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
***NOTICE OF ACCOUNT CLOSURE*** | |
Greetings, | |
Account: [email protected] | |
Account Action: Account Closure - Overwatch Account | |
Offense: Unauthorized Cheat Programs ("Hacks") | |
Recent activity on this account shows the use of an unauthorized cheat program, also known as a "hack.", which harms the intended player experience. |
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
#include <netinet/in.h> | |
#include <sys/socket.h> | |
#include <unistd.h> | |
#include <arpa/inet.h> | |
- (void)sendBroadcastPacket { | |
// Open a socket | |
int sd = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP); | |
if (sd<=0) { | |
NSLog(@"Error: Could not open socket"); |