Skip to content

Instantly share code, notes, and snippets.

View guinslym's full-sized avatar

Guinslym guinslym

View GitHub Profile
@guinslym
guinslym / nginx-centos7.yml
Created April 3, 2021 11:52 — forked from icasimpan/nginx-centos7.yml
Sample ansible playbook to install nginx with sample page on CentOS7
## Credits to John Lieske - https://www.ansible.com/blog/getting-started-writing-your-first-playbook
---
- name: Install nginx
hosts: host.name.ip
become: true
tasks:
- name: Add epel-release repo
yum:
name: epel-release
@guinslym
guinslym / zoom.py
Created March 31, 2021 09:49
OpenCV Python Video Zoom Function by clicking mouse
# Author: Noche, Kaiseir Josephus B.
import numpy as np
import cv2
### DEFINED FUNCTIONS ################################
def mousecall(event,x,y,flags,param):
if event == cv2.EVENT_LBUTTONDBLCLK:
zoomin(x,y)
KLASS - Map Marye official music video!
https://youtu.be/wrrSzHft6Mo
GAZZMAN DISIP - Heartbreak & Misery official
https://youtu.be/dXeky5cXmLQ
Nu Look - Confessions
https://youtu.be/0HRtxSdXPP4
NU LOOK "What about Tmrw"
## my box VMs ##
[DigitialOceanExample]
PPP.PPP.PPP.PPP (redacted by author)
@guinslym
guinslym / 404-error-lost-and-alone-codepenchallenge.markdown
Created June 14, 2020 13:12
404 Error - Lost and Alone #CodePenChallenge

404 Error - Lost and Alone #CodePenChallenge

My take for this week's challenge featuring some simple SVG animation

A Pen by Janet Mendez on CodePen.

License.

@guinslym
guinslym / 404-makes-bear-sad.markdown
Created June 14, 2020 13:10
404 Makes bear sad 🐻😭

404 Makes bear sad 🐻😭

404 page put together for my new personal site using CSS variables for animation and positioning based on mouse movement. Uses sibling combinator to wipe away those tears when hovering over the link to get out of there!

Enjoy!

A Pen by Jhey on CodePen.

License.

@guinslym
guinslym / latency.markdown
Created May 17, 2020 16:05 — forked from hellerbarde/latency.markdown
Latency numbers every programmer should know

Latency numbers every programmer should know

L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns             
Compress 1K bytes with Zippy ............. 3,000 ns  =   3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns  =  20 µs
SSD random read ........................ 150,000 ns  = 150 µs

Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs

@guinslym
guinslym / latency.txt
Created May 17, 2020 16:04 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
import 'package:flutter/material.dart';
void main() => runApp(App());
class App extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Login Example',

tutorial: How to generate per_queue report for your School on Libraryh3lp

  1. Login to Dashboard of LibraryH3lp

  2. Select "Chat Reports" in the left Side bar (right)

    • 2.1 On the Select box beside Choose Report Select "Chat per queue"

    • 2.2 Select the start and end dates

    • 2.3 Set the Minimum Chat Duration to 0

    • 2.4 Unselect Queues

    • 2.5 Select Guelph

  • 2.5 Click on Generate