Skip to content

Instantly share code, notes, and snippets.

View cocoa1231's full-sized avatar

Cocoa cocoa1231

View GitHub Profile
@cocoa1231
cocoa1231 / juliaset_splitcomplex.jl
Last active February 5, 2024 19:29
filled julia set with split complex numbers
### A Pluto.jl notebook ###
# v0.19.36
using Markdown
using InteractiveUtils
# This Pluto notebook uses @bind for interactivity. When running this notebook outside of Pluto, the following 'mock version' of @bind gives bound variables a default value (instead of an error).
macro bind(def, element)
quote
local iv = try Base.loaded_modules[Base.PkgId(Base.UUID("6e696c72-6542-2067-7265-42206c756150"), "AbstractPlutoDingetjes")].Bonds.initial_value catch; b -> missing; end
#!/usr/bin/env python
import os
users = [filename for filename in os.listdir('/var/cpanel/users') if os.path.isfile(filename)]
batches = ['server8.flaunt7.com', 'server9.flaunt7.com', 'server10.flaunt7.com']
def chunks(lst, n):
for i in range(0, len(lst), n):
yield lst[i:i+n]
@cocoa1231
cocoa1231 / lci_pyladies_irc_log_Tue_Dec_18_22:57:56_IST_2018.txt
Created December 18, 2018 17:28
LinuxChix India Delhi + PyLadies Delhi IRC Session log
[21:45:22] ! madmanwithabox joined
[21:58:42] ! 4 users joined or changed mode and topic
[21:58:56] <arcsaber> alright does this work
[21:58:59] <madmanwithabox> Yep
[21:59:03] ! rajudev joined
[21:59:09] <madmanwithabox> Welcome rajudev
[21:59:10] <arcsaber> sweet
[21:59:52] * rajudev has joined from a phone. might get disconnected anytime
[22:00:34] <madmanwithabox> Alright. Just waiting for Shivani and Utkarsh
[22:01:10] ! 2 users quit or joined
@cocoa1231
cocoa1231 / encrypt_openssl.md
Created September 7, 2018 13:20 — forked from dreikanter/encrypt_openssl.md
File encryption using OpenSSL

Symmetic encryption

For symmetic encryption, you can use the following:

To encrypt:

openssl aes-256-cbc -salt -a -e -in plaintext.txt -out encrypted.txt

To decrypt:

OpenSSH_7.6p1, OpenSSL 1.1.0g 2 Nov 2017
debug1: Reading configuration data /home/cocoa/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: resolving "80.241.217.250" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 80.241.217.250 [80.241.217.250] port 22.
debug1: Connection established.
debug1: identity file /home/cocoa/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /home/cocoa/.ssh/id_rsa-cert type -1
In [1]: def x(object):
...: def __init__(self):
...: self.x = 12
...:
In [2]: print(x.x)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-2-a981fbbe4431> in <module>()
----> 1 print(x.x)
atom-editor-bin 1.14.1-1
ccsm 0.8.12.4-1
cerebro-git 0.2.6.r9.g5a3ffcc-1
chromium-widevine 1:1.4.8.962-1
compiz-bcop 0.8.12-2
compiz-core 0.8.12.3-3
compiz-fusion-plugins-main 0.8.12.2-1
compizconfig-python 0.8.12.1-1
cower 16-1
emerald 0.8.12.4-2
anthy 9100h-4
arc-gtk-theme 20170302-1
arc-icon-theme 20161122-1
arch-install-scripts 17-1
atom-editor-bin 1.14.1-1
autoconf 2.69-4
automake 1.15-2
bash 4.4.012-2
binutils 2.27-1
bison 3.0.4-2