Skip to content

Instantly share code, notes, and snippets.

View ramayac's full-sized avatar
🏠
Working from home.

ramayac ramayac

🏠
Working from home.
View GitHub Profile
@nathanchan631
nathanchan631 / open_terminal.ahk
Created October 13, 2020 06:20
Open Terminal with AutoHotKey
openWT(asAdmin:=false) {
; If Terminal is Already Open
if WinExist("ahk_exe WindowsTerminal.exe") {
WinActivate
Return
}
; If File Explorer is Active (Source: https://www.winhelponline.com/blog/open-command-prompt-current-folder-keyboard-shortcut)
if WinActive("ahk_class CabinetWClass") || WinActive("ahk_class ExploreWClass") {
WinHWND := WinActive()
//PIXELBOY BY @WTFMIG EAT A BUTT WORLD BAHAHAHAHA POOP MY PANTS
// - edited by @Nothke to use screen height for #LOWREZJAM
using UnityEngine;
using System.Collections;
[ExecuteInEditMode]
[AddComponentMenu("Image Effects/PixelBoy")]
public class PixelBoy : MonoBehaviour
{
public int h = 64;
@TiagoGouvea
TiagoGouvea / curlwrap_v2.php
Created November 4, 2015 09:44
AgileCRM PHP Api Wrap with some fixes
<?php
define("AGILE_DOMAIN", "tiagogouvea");
define("AGILE_USER_EMAIL", "yourEmail");
define("AGILE_REST_API_KEY", "yourApiKey");
function curl_wrap($entity, $data, $method)
{
$agile_url = "https://" . AGILE_DOMAIN . ".agilecrm.com/dev/api/" . $entity;
$agile_php_url = "https://" . AGILE_DOMAIN . ".agilecrm.com/core/php/api/" . $entity . "?id=" . AGILE_REST_API_KEY;
var elsalvador = {
"ahuachapan": {
label: "Ahuachapán",
municipios: {
"ahuachapan":"Ahuachapán",
"jujutla": "Jujutla",
"atiquizaya": "Atiquizaya",
"concepciondeataco":"Concepción de Ataco",
"elrefugio": "El Refugio",
"guaymango": "Guaymango",
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@ramayac
ramayac / Grep.java
Last active August 28, 2024 18:07
Simple and personal implementation for making Grep on zip files in a folder, this is specialy useful for massive log searches. I'm trying to keep it in a single file (yes, it's on purpose!!! and smaller than 1000 loc).
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.FilenameFilter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.RandomAccessFile;
@grantslatton
grantslatton / hngen.py
Last active September 27, 2021 11:07
A program that uses Markov chains to generate probabilistic Hacker News titles.
import urllib2
import re
import sys
from collections import defaultdict
from random import random
"""
PLEASE DO NOT RUN THIS QUOTED CODE FOR THE SAKE OF daemonology's SERVER, IT IS
NOT MY SERVER AND I FEEL BAD FOR ABUSING IT. JUST GET THE RESULTS OF THE
CRAWL HERE: http://pastebin.com/raw.php?i=nqpsnTtW AND SAVE THEM TO "archive.txt"
anonymous
anonymous / gist:7186832
Created October 27, 2013 19:27
void setup() {
size(500, 500);
noFill();
strokeWeight(3);
strokeJoin(BEVEL);
}
float th1, th2, r, x, y, t;
int N = 16;
@jvns
jvns / Makefile
Created October 8, 2013 03:24
A simple kernel module that printk's "Hello, packet" when it intercepts a packet. Uses netfilter.
obj-m += hello-packet.o
all:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean

Your Vision

What is a vision?

Your vision answers the question "What do I want?" A clear vision help you communicate why you're here and what impact you're going to have.

Your vision should be aligned with the company vision, with your manager's V2MOM, and it should be personal. It should be an honest reflection of your own vision for your own work.

If you manage a team, it should be reflective of the purpose of the team and your collective impact.