Skip to content

Instantly share code, notes, and snippets.

View seinecle's full-sized avatar
🤩
Working on nocodefunctions.com

Clement Levallois seinecle

🤩
Working on nocodefunctions.com
View GitHub Profile
upstream glassfish_server {
server 127.0.0.1:8080 fail_timeout=0;
}
server {
listen 80;
server_name berat.com;
return 301 https://$server_name$request_uri;
}
server {
@seinecle
seinecle / Form1.java
Created March 4, 2018 14:24
3 MultiButtons not fully visible
package net.clementlevallois.net.cookieclicker.ultimate;
import com.codename1.charts.util.ColorUtil;
import com.codename1.components.MultiButton;
import com.codename1.components.ScaleImageButton;
import com.codename1.ui.Component;
import com.codename1.ui.Container;
import com.codename1.ui.Font;
import com.codename1.ui.Image;
import com.codename1.ui.Label;
@seinecle
seinecle / ServerSecurization.java
Last active February 26, 2021 18:10
Secure your bare metal servers in 1 minute from your local Windows machine. Just needs a private / pub key ready. Tested on Debian for Hetzner servers.
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package net.clementlevallois.sshautomator.serversecurization;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
@seinecle
seinecle / TrollTwitterIdentifier.java
Created February 10, 2019 21:26
A simple script to identify an extended group of trolling accounts on Twitter, based on tweet posted by several accounts
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package net.clementlevallois.queriestwitterdata.controller;
import Twitter.MyOwnTwitterFactory;
import com.google.common.collect.HashMultiset;
import com.google.common.collect.Multiset;
@seinecle
seinecle / google-slides-java-api-example.java
Created February 25, 2019 09:00
How to create and edit a Google Slide via the Java API client
// login and credentials steps are skipped
// because it is such a mess
// I found no example anywhere of how to build and edit a new Google Slides presentation via the Java API client.
// So here you go: how to create two empty slides.
Presentation prezTemp = new Presentation();
prezTemp.setTitle("test_" + String.valueOf(Math.random()));
@seinecle
seinecle / network-32b503ae-e82
Created September 1, 2022 08:03
file sent from Gephi
mock up for a gexf file!!!
@seinecle
seinecle / network-9b926f43-f38.gexf
Last active September 1, 2022 13:04
file sent from Gephi
<?xml version='1.0' encoding='UTF-8'?>
<gexf xmlns="http://gexf.net/1.3" version="1.3" xmlns:viz="http://gexf.net/1.3/viz" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://gexf.net/1.3 http://gexf.net/1.3/gexf.xsd">
<meta lastmodifieddate="2022-09-01">
<creator>Gephi 0.9.3</creator>
<description></description>
</meta>
<graph defaultedgetype="directed" mode="static">
<nodes>
<node id="0">
<viz:size value="10.0"/>
@seinecle
seinecle / network-e763ffb5-d65
Created September 1, 2022 12:57
file sent from Gephi
<?xml version='1.0' encoding='UTF-8'?>
<gexf xmlns="http://gexf.net/1.3" version="1.3" xmlns:viz="http://gexf.net/1.3/viz" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://gexf.net/1.3 http://gexf.net/1.3/gexf.xsd">
<meta lastmodifieddate="2022-09-01">
<creator>Gephi 0.9.3</creator>
<description></description>
</meta>
<graph defaultedgetype="directed" mode="static">
<nodes>
<node id="0">
<viz:size value="10.0"/>
@seinecle
seinecle / network-63a949f2-1a7.gexf
Created September 1, 2022 13:42
file sent from Gephi
<?xml version='1.0' encoding='UTF-8'?>
<gexf xmlns="http://gexf.net/1.3" version="1.3" xmlns:viz="http://gexf.net/1.3/viz" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://gexf.net/1.3 http://gexf.net/1.3/gexf.xsd">
<meta lastmodifieddate="2022-09-01">
<creator>Gephi 0.9.3</creator>
<description></description>
</meta>
<graph defaultedgetype="directed" mode="static">
<nodes>
<node id="0">
<viz:size value="10.0"/>
@seinecle
seinecle / network-ce6c42b6-51f.gexf
Created September 1, 2022 13:58
file sent from Gephi
<?xml version='1.0' encoding='UTF-8'?>
<gexf xmlns="http://gexf.net/1.3" version="1.3" xmlns:viz="http://gexf.net/1.3/viz" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://gexf.net/1.3 http://gexf.net/1.3/gexf.xsd">
<meta lastmodifieddate="2022-09-01">
<creator>Gephi 0.9.3</creator>
<description></description>
</meta>
<graph defaultedgetype="directed" mode="static">
<nodes>
<node id="0">
<viz:size value="10.0"/>